0
$\begingroup$

How do I formulate a linear constraint using LP for the following?

$$x_1 + x_2 + \cdots + x_n \geq 5$$ then $z$ takes a value of $1$, where $x_1, x_2, \dots, x_n, z \in \{0,1\}$.

$\endgroup$
  • $\begingroup$ Do you mean, if $x_1 + \cdots x_n \ge 5$ then $z$ should equal 1? $\endgroup$ – LarrySnyder610 Apr 13 at 1:37
1
$\begingroup$

For example $(n-4)z+4\geq\Sigma x_i$.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.