Skip to content

Commit

Permalink
change the sequence of bigm and detect fixed vars
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedongPeng committed Sep 8, 2024
1 parent 1144dc1 commit 49ea85c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyomo/contrib/gdpopt/ldsda.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def _solve_GDP_subproblem(self, external_var_value, search_type, config):
try:
with SuppressInfeasibleWarning():
try:
TransformationFactory('gdp.bigm').apply_to(subproblem)
fbbt(subproblem, integer_tol=config.integer_tolerance)
TransformationFactory('contrib.detect_fixed_vars').apply_to(
subproblem
Expand All @@ -188,7 +189,6 @@ def _solve_GDP_subproblem(self, external_var_value, search_type, config):
TransformationFactory(
'contrib.deactivate_trivial_constraints'
).apply_to(subproblem, tmp=False, ignore_infeasible=False)
TransformationFactory('gdp.bigm').apply_to(subproblem)
except InfeasibleConstraintException:
return False
minlp_args = dict(config.minlp_solver_args)
Expand Down

0 comments on commit 49ea85c

Please sign in to comment.