Skip to content

Commit

Permalink
scaling change in the water rocket problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Moore authored and Kenneth Moore committed Aug 26, 2020
1 parent 03d308e commit 7333c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dymos/examples/water_rocket/phases.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def new_water_rocket_trajectory(objective):
if objective == 'height':
ballistic_ascent.add_objective('h', loc='final', ref=-1.0)
elif objective == 'range':
descent.add_objective('r', loc='final', scaler=-1.0)
descent.add_objective('r', loc='final', ref=-0.01)
else:
raise ValueError(f"objective='{objective}' is not defined. Try using 'height' or 'range'")

Expand Down

0 comments on commit 7333c59

Please sign in to comment.