Loading [MathJax]/jax/output/CommonHTML/jax.js

Wednesday, May 16, 2018

Indicator constraints

In [1] a question is posed about how to implement the implication:x+y5δ=1 Here δ{0,1} is a binary variable. Indicator constraints are of the form:δ=0constraint or δ=1constraint The binary variable δ is sometimes called an indicator variable.

From propositional logic we have: AB¬B¬A This is called transposition [2].

From this, we can formulate:δ=0x+y>5 If x or y is a continuous variable we can choose to write δ=0x+y5.001 or just δ=0x+y5 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: δ=0x+y6

This trick is quite useful to know when dealing with indicator constraints.

References



No comments:

Post a Comment