Skip to content

Commit 1e6e15b

Browse files
committed
Update constraint processing to track change in Constraint.(In)Feasible
1 parent b8d1de7 commit 1e6e15b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pyomo/gdp/disjunct.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,9 +588,11 @@ def set_value(self, expr):
588588
continue
589589
except AttributeError:
590590
pass
591-
if _tmp_e in (Constraint.Feasible, Constraint.Infeasible):
592-
expressions.append(_tmp_e)
593-
continue
591+
# Note: Constraint.(In)Feasible is now a full relational
592+
# expression, so we don't need to check for it.
593+
# LogicalConstraint.(In)Feasible is a BooleanConstant,
594+
# so is not an expression and needs to be explicitly
595+
# checked for.
594596
if _tmp_e in (LogicalConstraint.Feasible, LogicalConstraint.Infeasible):
595597
propositions.append(_tmp_e)
596598
continue

0 commit comments

Comments
 (0)