Skip to content

Commit

Permalink
add warm_start_fixed_nlp config
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedongPeng committed May 12, 2024
1 parent 3f58bf6 commit e04a0e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyomo/contrib/mindtpy/algorithm_base_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -2663,7 +2663,10 @@ def initialize_subsolvers(self):
set_solver_mipgap(self.mip_opt, config.mip_solver, config)

set_solver_constraint_violation_tolerance(
self.nlp_opt, config.nlp_solver, config
self.nlp_opt,
config.nlp_solver,
config,
warm_start=config.warm_start_fixed_nlp,
)
set_solver_constraint_violation_tolerance(
self.feasibility_nlp_opt, config.nlp_solver, config, warm_start=False
Expand Down
8 changes: 8 additions & 0 deletions pyomo/contrib/mindtpy/config_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,14 @@ def _add_subsolver_configs(CONFIG):
doc='Which MIP subsolver is going to be used for solving the regularization problem.',
),
)
CONFIG.declare(
'warm_start_fixed_nlp',
ConfigValue(
default=True,
description='whether to warm start the fixed NLP subproblem.',
domain=bool,
),
)


def _add_tolerance_configs(CONFIG):
Expand Down

0 comments on commit e04a0e9

Please sign in to comment.