I have the following LP:
/* Objective function */ min: 1 w + 2 x + 0.5 y + z; /* Variable bounds */ w + x <= T1; w + y = U1; x + z = U2; T1 = 50; U1 = 70; U2 = 25;
In this case U1 + U2 > T1 and the optimal solution is y = 70 and z = 25. I want to enforce the condition that w and x variables be assigned values before assigning values to y and z. If U1 + U2 < T1, then I want only w and x to have values and y = z = 0. Is there a way to enforce such a constraint in an LP or an MILP?