diff --git a/pyomo/contrib/gdpopt/ldsda.py b/pyomo/contrib/gdpopt/ldsda.py index c5987dde574..002db30314f 100644 --- a/pyomo/contrib/gdpopt/ldsda.py +++ b/pyomo/contrib/gdpopt/ldsda.py @@ -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 @@ -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)