I have seen comparable questions in other programming languages but haven't been able to solve the below in CPLEX.
I have two conditions that need to be met.
- Produced icecreams can only be used per flavoured batch of 60 and consumable for the same day.
forall(f in flavour, t in time) quantity of production quantity should be dividable by 60.
The code I tried below does not work.
forall(f in flavour, t in time) quantity[f][d] % 60 == 0;
- Outsourced icecreams can only be purchased per 5 units regardless of flavour
forall(t in time) quantity of outsourced ice creams should be dividable by 5
Can anyone help with one of the above functions?