[Math] If-then constraints with binary variables in Linear Programming

linear programming

How can the constraint: If x1=1 then x2+x3>=1 be written in linear programming if the variables x1,x2,x3 are binary?

Best Answer

Here's a derivation via conjunctive normal form: \begin{equation} x_1 \implies (x_2 \lor x_3) \\ \neg x_1 \lor (x_2 \lor x_3) \\ (1 - x_1) + x_2 + x_3 \ge 1 \\ x_1 \le x_2 + x_3 \end{equation}