From 57f5e06d9549b58099f98b35072f35ded3f50419 Mon Sep 17 00:00:00 2001 From: Bernard Knueven Date: Wed, 6 Nov 2024 12:58:37 -0700 Subject: [PATCH] catch catastrophic solver failure when building MIS --- pyomo/contrib/iis/mis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyomo/contrib/iis/mis.py b/pyomo/contrib/iis/mis.py index 6b6cca8e29c..0141e615516 100644 --- a/pyomo/contrib/iis/mis.py +++ b/pyomo/contrib/iis/mis.py @@ -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 = []