The value of one of the variable of my model (alpha_1) is given by a piecewise function. Each element of the piecewise depends on the value of some other binary decision variables (X1, x2, x3).
I'd like to know how I can express this piecewise function as some linear equations within the constraints to make sure that the right value has been chosen. Please below find the piecewise function.
Basically, the right hand side of the second and third statements at the if statement was not correct. i.e., x1 +x2 =2 and x1+x2+x3=1.
. It seems the modified picture does not change!! $\endgroup$