If then condition on mixed linear integer programming - MathOverflow most recent 30 from http://mathoverflow.net2013-05-26T03:46:15Zhttp://mathoverflow.net/feeds/question/104717http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://mathoverflow.net/questions/104717/if-then-condition-on-mixed-linear-integer-programmingIf then condition on mixed linear integer programmingashade2012-08-14T20:24:01Z2012-08-14T20:57:52Z
<p>Hi all. Let $a$ and $b$ be two real variables such that $0 \le a \le a_{max}$ and $0 \le b \le b_{max}$. I must write the following if-then-else condition with linear inequalities:</p>
<p>if $a < a_{max}$ then $b = 0$
else $b \ge 0$.</p>
<p>Is it possible by adding a single binary variable $y$?</p>
http://mathoverflow.net/questions/104717/if-then-condition-on-mixed-linear-integer-programming/104721#104721Answer by Gilead for If then condition on mixed linear integer programmingGilead2012-08-14T20:57:52Z2012-08-14T20:57:52Z<p>Yes.</p>
<p>$a_{\text{max}} y \leq a \leq (1-y)(a_{\text{max}} - \epsilon) + a_{\text{max}}y$</p>
<p>$0 \leq b \leq b_{\text{max}} y$</p>
<p>where $y \in \{{0,1\}}$ and $\epsilon$ is a small positive real.</p>