Skip to content

Commit 57f5e06

Browse files
committed
catch catastrophic solver failure when building MIS
1 parent c463632 commit 57f5e06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyomo/contrib/iis/mis.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def _constraint_generator():
287287
except:
288288
results = None
289289

290-
if pyo.check_optimal_termination(results):
290+
if (results is not None) and pyo.check_optimal_termination(results):
291291
msg += "Could not determine Minimal Intractable System\n"
292292
else:
293293
deletion_filter = []

0 commit comments

Comments
 (0)