Skip to content

Commit

Permalink
attempt to fix water rocket on latest
Browse files Browse the repository at this point in the history
  • Loading branch information
robfalck committed Nov 11, 2024
1 parent 35f0d36 commit cfea6eb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions dymos/examples/water_rocket/test/test_water_rocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ def test_water_rocket_height_for_docs(self):
traj = p.model.add_subsystem('traj', traj)

p.driver = om.pyOptSparseDriver(optimizer='IPOPT', print_results=False)
p.driver.opt_settings['print_level'] = 0
p.driver.opt_settings['mu_init'] = 1e-3
p.driver.opt_settings['max_iter'] = 500
p.driver.opt_settings['print_level'] = 0
p.driver.opt_settings['nlp_scaling_method'] = 'gradient-based' # for faster convergence
p.driver.opt_settings['alpha_for_y'] = 'safer-min-dual-infeas'
p.driver.opt_settings['mu_strategy'] = 'monotone'
p.driver.declare_coloring(tol=1.0E-12)

Expand Down Expand Up @@ -70,8 +73,11 @@ def test_water_rocket_range_for_docs(self):
traj = p.model.add_subsystem('traj', traj)

p.driver = om.pyOptSparseDriver(optimizer='IPOPT')
p.driver.opt_settings['mu_init'] = 1e-3
p.driver.opt_settings['max_iter'] = 500
p.driver.opt_settings['print_level'] = 0
p.driver.opt_settings['max_iter'] = 300
p.driver.opt_settings['nlp_scaling_method'] = 'gradient-based' # for faster convergence
p.driver.opt_settings['alpha_for_y'] = 'safer-min-dual-infeas'
p.driver.opt_settings['mu_strategy'] = 'monotone'
p.driver.declare_coloring(tol=1.0E-12)

Expand Down

0 comments on commit cfea6eb

Please sign in to comment.