We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8d1de7 commit 1e6e15bCopy full SHA for 1e6e15b
pyomo/gdp/disjunct.py
@@ -588,9 +588,11 @@ def set_value(self, expr):
588
continue
589
except AttributeError:
590
pass
591
- if _tmp_e in (Constraint.Feasible, Constraint.Infeasible):
592
- expressions.append(_tmp_e)
593
- continue
+ # Note: Constraint.(In)Feasible is now a full relational
+ # expression, so we don't need to check for it.
+ # LogicalConstraint.(In)Feasible is a BooleanConstant,
594
+ # so is not an expression and needs to be explicitly
595
+ # checked for.
596
if _tmp_e in (LogicalConstraint.Feasible, LogicalConstraint.Infeasible):
597
propositions.append(_tmp_e)
598
0 commit comments