Skip to content

Commit

Permalink
enable warm_start for ipopth
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedongPeng committed May 21, 2024
1 parent 12688b2 commit e1860d4
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions pyomo/contrib/mindtpy/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,16 +602,15 @@ def set_solver_constraint_violation_tolerance(
'constr_viol_tol ' + str(config.constraint_tolerance)
)
if warm_start:
pass
# Ipopt warmstart options
# opt.options['add_options'].append(
# 'warm_start_init_point yes\n'
# 'warm_start_bound_push 1e-9\n'
# 'warm_start_bound_frac 1e-9\n'
# 'warm_start_slack_bound_frac 1e-9\n'
# 'warm_start_slack_bound_push 1e-9\n'
# 'warm_start_mult_bound_push 1e-9\n'
# )
opt.options['add_options'].append(
'warm_start_init_point yes\n'
'warm_start_bound_push 1e-9\n'
'warm_start_bound_frac 1e-9\n'
'warm_start_slack_bound_frac 1e-9\n'
'warm_start_slack_bound_push 1e-9\n'
'warm_start_mult_bound_push 1e-9\n'
)
elif config.nlp_solver_args['solver'] == 'conopt':
opt.options['add_options'].append(
'RTNWMA ' + str(config.constraint_tolerance)
Expand Down

0 comments on commit e1860d4

Please sign in to comment.