I would like to write the following equation in my objective variable in AIMMS.
I cannot manage to insert a correct notation for the max argument that works. I want to pick the v with the highest value for Zkpv, and minimize this value. My current objective (without the max argument) variable looks like this at the moment.
Could somebody please help me?
Best answer by mohansxView original
Declare a variable as
with a constraint, forall (k, p, v)
max_OrderInTray(k, p) >= OrderInTray(k, p, v)
Now your objective function can be:
Min sum[(k,p), MultiPlicity(k) * max_OrderInTray(k, p)]
max_OrderInTray(k, p) will be greater than OrderInTray(k, p, v) across all v and because you are including this term in the minimization objective, it will be equal to the maximum value in OrderInTray(k, p, v).
Thank you very much for your time and effort to explain it so clearly to me.
I just implemented your suggested changes, and it works like charm.