From propositional logic we have: A⇒B⇔¬B⇒¬A This is called transposition [2].
From this, we can formulate:δ=0⇒x+y>5 If x or y is a continuous variable we can choose to write δ=0⇒x+y≥5.001 or just δ=0⇒x+y≥5 In the latter case we keep things ambiguous for x+y=5 which is in practice often a good choice.
If x and y are integers, we can do: δ=0⇒x+y≥6
This trick is quite useful to know when dealing with indicator constraints.
References
- inverted indicator constraint in gurobipy, https://stackoverflow.com/questions/50366433/inverted-indicator-constraint-in-gurobipy
- Transposition, https://en.wikipedia.org/wiki/Transposition_(logic)
No comments:
Post a Comment