Skip to content

Commit

Permalink
fix laxy constraint issue after changing _get_expr_from_pyomo_expr
Browse files Browse the repository at this point in the history
  • Loading branch information
quantresearch1 committed Aug 21, 2024
1 parent bfdd222 commit 6dce762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyomo/solvers/plugins/solvers/gurobi_persistent.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ def cbCut(self, con):
if is_fixed(con.body):
raise ValueError('cbCut expected a non-trivial constraint')

gurobi_expr, referenced_vars = self._get_expr_from_pyomo_expr(
gurobi_expr, referenced_vars, degree = self._get_expr_from_pyomo_expr(
con.body, self._max_constraint_degree
)

Expand Down Expand Up @@ -656,7 +656,7 @@ def cbLazy(self, con):
if is_fixed(con.body):
raise ValueError('cbLazy expected a non-trivial constraint')

gurobi_expr, referenced_vars = self._get_expr_from_pyomo_expr(
gurobi_expr, referenced_vars, degree = self._get_expr_from_pyomo_expr(
con.body, self._max_constraint_degree
)

Expand Down

0 comments on commit 6dce762

Please sign in to comment.