Skip to content

Commit

Permalink
added suggestions from R. Parker to the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DLWoodruff committed May 1, 2024
1 parent f4f4b2c commit 21aa8c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyomo/contrib/iis/mis.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def compute_infeasibility_explanation(
A logger for messages. Uses pyomo.contrib.mis logger by default.
"""
# Suggested enhancement: It might be useful to return sets of names for each set of relaxed components, as well as the final minimal infeasible system

# hold the original harmless
modified_model = model.clone()
Expand Down Expand Up @@ -155,6 +156,9 @@ def compute_infeasibility_explanation(
# modeler to sift through. We could try to sort the constraints
# such that we look for those with linear coefficients `1` on
# some term and leave those be.
# Alternatively, we could apply this tool to a version of the
# model that has as many as possible of these constraints
# "substituted out".
# move the variable bounds to the constraints
_VariableBoundsAsConstraints().apply_to(modified_model)

Expand Down

0 comments on commit 21aa8c8

Please sign in to comment.