Skip to content

Commit

Permalink
last tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth-T-Moore committed Jan 2, 2025
1 parent 3af381c commit 3d9f67c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def test_multiengine_static(self):
alloc_descent = prob.get_val('traj.descent.parameter_vals:throttle_allocations')

assert_near_equal(alloc_climb[0], 0.5, tolerance=1e-2)
assert_near_equal(alloc_cruise[0], 0.574, tolerance=1e-2)
assert_near_equal(alloc_descent[0], 0.75, tolerance=1e-2)
assert_near_equal(alloc_cruise[0], 0.593, tolerance=1e-2)
assert_near_equal(alloc_descent[0], 0.408, tolerance=1e-2)

@require_pyoptsparse(optimizer="SNOPT")
def test_multiengine_dynamic(self):
Expand Down Expand Up @@ -171,7 +171,7 @@ def test_multiengine_dynamic(self):
alloc_descent = prob.get_val('traj.descent.controls:throttle_allocations')

# Cruise is pretty constant, check exact value.
assert_near_equal(alloc_cruise[0], 0.576, tolerance=1e-2)
assert_near_equal(alloc_cruise[0], 0.595, tolerance=1e-2)

# Check general trend: favors engine 1.
self.assertGreater(alloc_climb[2], 0.55)
Expand Down

0 comments on commit 3d9f67c

Please sign in to comment.