Skip to content

Commit

Permalink
Merge pull request Pyomo#3403 from bknueven/idaes_1520
Browse files Browse the repository at this point in the history
Catch catastrophic solver failure when building MIS
  • Loading branch information
blnicho authored Nov 7, 2024
2 parents 8e8280c + 57f5e06 commit 952e67b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyomo/contrib/iis/mis.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def _constraint_generator():
except:
results = None

if pyo.check_optimal_termination(results):
if (results is not None) and pyo.check_optimal_termination(results):
msg += "Could not determine Minimal Intractable System\n"
else:
deletion_filter = []
Expand Down

0 comments on commit 952e67b

Please sign in to comment.