Skip to content

Commit

Permalink
fix greybox cuts bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedongPeng committed Dec 7, 2023
1 parent baa816c commit d229461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyomo/contrib/mindtpy/cut_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ def add_oa_cuts_for_grey_box(
target_model_grey_box.inputs.values()
)
)
- (output - value(output))
)
- (output - value(output))
- (slack_var if config.add_slack else 0)
<= 0
)
Expand Down

0 comments on commit d229461

Please sign in to comment.