Originally posted by: 88Simon88
Hello everybody,
I want to linearize the following situation:
Itip: inventory
Xti: Binary decision variable
IAtip: Inventory after the decision has been done
Ytip: another binary variable
Note that for each t and i, there is only one value for I. See the below table.

Note that IA should be greater than zero and not greater than equal to zero. If Xti=1, then IAtip should be zero (for all p) and If X=0, then IAtip = Itip.
If IAtip > 0, then Ytip = 1 otherwise it should be zero, as you can find the above table.
I used the following equations, but sometimes it doesn't work, I mean sometimes the OPL decide X=1 so the IA should be zero, but the value for IA = 0.00001 (like epsilon) and consequently the Y=1 however, it should be zero.
How can I model this problem?
Thanks in advance for your help.
#CPLEXOptimizers#DecisionOptimization