0
$\begingroup$

How can the constraint: if $x_1=1$ then $x_2+x_3\geq 1$ be written in linear programming if the variables $x_1,x_2,x_3$ are binary?

$\endgroup$

2 Answers 2

2
$\begingroup$

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}

$\endgroup$
1
$\begingroup$

$-x1 + x2 + x3 \geq 0 $

should be sufficient.

$\endgroup$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.