jsprit
jsprit copied to clipboard
Capacity constraints
Use case: Sometimes, when a task is inserted, there should some capacity constraints be fullfilled. This is not a capacity requirement, doesn't change the size dimensions of the vehicle, but requires the size dimensions to match some rules. (For example, the value of the first dimension should be between 2 and 4.)
Proposal A new, built in activity level constraint which can be parameterized with some capacity rules. The constraint has to be honored by the whole process, including ruin.
Compatibility impact It would add a new constraint and can be implemented as a backward compatible feature.
Thanks for this proposal. Actually, I do not understand it entirely. Can you give me a real life example where this is required? Thanks.
Example 1: To leave the depot/warehouse, first you have to pick up at least X shipments. Example 2: To return to the depo, first you have to serve all shipments in your cargo. Example 3: You can't get to a location when your cargo is heavier than Y. (Road weight restrictions.)
All the situations when a job requires some constraint to match on cargo (current capacity data), but doesn't want to alter the settings.
Yes! that would good.