I would like to linearize a conditional constraint as follow:
0 <= x1 <= 1.
If 0 <= x1 < 1, then x2 = 1, else x2 = 0.
I find it very difficult because it is not a typical If...then constraint. Any suggestions or answers are greatly appreciated. Thanks!
JZ