I also would be interested in seeing this. I can't speak for bhack, but the scenario I would like to see is:
V: is a set of vehicles
R: Is a set of pickup and delivery requests
TW: Is a set of time window constraints on the pickup and delivery requests
This seems to be a use case for either the route locking functionality or the Preassignment, but the routes still allow intermediary nodes injected which seems to make locking not applicable and the fact that only some of the assignments are strict makes preassignment not quite right either? Is there a way to simply put the constraint that Location l must be serviced by V[i]?
We are using Ortools to model DVRP in production at Colisweb.
We found the Preassignment to be limited and are using a simple solution based on "already accepted" and "already refused deliveries".
To do so, we build the full model, as usual, and add a loop on nodes constraining the model.vehicleVar() (probably what @cwelton is looking for).
@lperron was this solved, if yes could you shed some light on it?
@pocman can you please elaborate?
I have a model of which a pickup and deliveries needs to be created dynamically.
Most helpful comment
@lperron was this solved, if yes could you shed some light on it?