I am trying to solve a model with a constraints as follows:
We have a bunch of delivery jobs. Some of them have the same location but different time windows. Each job has a service time of 10 minutes. However, if a vehicle deliver two jobs at the same location, the first jobs still take 10 minutes but the second one will take only 5 minutes.
How could I implement the above constraint? Thanks.
Why not to have a dynamic service time, where we provide a handle/callback function to dynamically compute the service time. This gives more programming flexibility
@apoorv2203 The current Service time is not context dependent while it is fully dependent in that case. Moreover it depends if you consider this “setup time” as effectively an activity time, it could have its own cost. An entire dynamic service time could be good but need some breaking change in the core.