I'm fairly new to routing. I want to build a model that works like this.
I have two trucks A and B. Truck A will pick up items to be delivered from the depot. It needs to pick up items from a 2nd depot as well. Due to time windows it may well make two deliveries after the initial pick-up before the 2nd pick-up location time windows.
Truck B picks up from the 1st depot should just go about delivering the items.
Clearly I need to create a relationship between the pick-up at depot 2 and the resulting deliveries so that jsprit does not try to allocate some of the 2nd depot items to Truck B. I also need to make sure that the deliveries are made after the pick-up.
It result would look something like:
TruckA P1 D1a D1b P2 D1c D2a D2b D1d etc
TruckB P1 D1a D1b D1c D1d...
I've spent a few hours trawling with my friend Google but have not found a solution.
It seems like it is something that would fit the Stackoverflow_RelatedJobs_13_and_21_inSameRoute_21_first model.
The example given is quite basic and deals with two jobs and one route. I need to deal with multiple routes and pickups with multiple deliveries.
I understand it will involve soft constraints etc but I don't know what they should be or how to create them.
Has anyone done this already and could offer some help?