Dear Team,
I am facing one problem while writing a constraint. Let's say, I have three boxes with several items. Say box 1 has 4 items, box 2 has 6 items and box 3 has 9 items. I am processing the items day wise considering time as a constraint. I want that, if I am selecting a particular box, I will process all the items of that box 1st then will move to the next box. What I am getting that
Day1-box1- 2 items
Day1-box2-3 items
Day1-box3-2 items
Day2-box1-2 items.
I do not want it. I want, choose a box on day 1, process all the 4 items based on the available time. I have written a constraint to handle it, which is like
sumud, v(d, boxnumber)] >= p_items(boxnumber) - v_Penalty(boxnumber)
It means, I am trying to get the item number in a box while minimizing the penalty in the objective function.
Kindly help if I am doing anything wrong.