I want to model the following constraint:
I want to code this constraint in Gams.
One way to do it is to enforce $$x(y-z) = 0$$ since this implies that $x=0$ or $y-z=0$. Note, however, that this is not a linear constraint...
$$\begin{array}{l} y-z\leq (1-x)M\\ z-y\leq (1-x)M \end{array} $$
where $M$ is a sufficiently large constant.
Copyright © 2021 JogjaFile Inc.
One way to do it is to enforce $$x(y-z) = 0$$ since this implies that $x=0$ or $y-z=0$. Note, however, that this is not a linear constraint...