Hi @jie31best, how are you doing?
I still haven't found a good solution for my issues regarding the load allocation in the compartments, and I have two additional constraints regarding how it should be done and no idea on how to handle those additional constraints combined:
1st, a truck often has asymmetrical compartments: meaning a 30m3 truck can have 6 x 5m3 compartments or 1 x 10m3 + 4 x 5m3 compartments, for instance or any other asymmetrical compartment layout.
2nd, the truck compartments must be filled in the order they will be delivered, from the trucks end towards the driver cabin, for security reasons. That wouldn`t be a problem if the truck compartments for a single truck were all equal, but since they often aren't, it poses a problem on job allocation, since placing a new job in a route can potentially void the fully loaded compartments and compartments filled in delivery order constraints in a truck with asymmetrical compartments.
Let me give and example on how these constraints combined are tricky to fulfill. Ex: A truck with the following compartments 5/5/10/10 currently has a route containing 2 customers with sizes 10 and 10 (ok since they would fill the 1st and 2nd compartment for the last customer to visit and the 3rd compartment for the 1st one), if the job insertion tries to insert a new customer with size 5 in the last trip of the route, it would void the previous allocation and violate the safety rules, since the new customer would fill the 1st compartment and the 2nd customer to visit would have his order of 10 split between the 2nd compartment (ok, completely filled) and 3rd compartment (not ok, as only 5 of it's capacity of 10 would be in use, and each compartment must be completely used by the same delivery, for safety reasons).
Would you have any insight that could aid me on finding a good solution for these issues? Thanks for the help.