Linear programming constraints

61 Views Asked by At

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\}$.

1

There are 1 best solutions below

0
On

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