Skip to content

Commit

Permalink
catch catastrophic solver failure when building MIS
Browse files Browse the repository at this point in the history
  • Loading branch information
bknueven committed Nov 6, 2024
1 parent c463632 commit 57f5e06
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 57f5e06

Please sign in to comment.