Using jsprit to solve VRP with trailers

Hey @jie31best,

Thanks for the quick reply. That works actually, but I missed out one further constraint in my initial explanation. The vehicles will leave the trailer with the container after the job (i.e., after reaching the destination) so to do another job they would have to get another trailer.

Would there be any way to decrement the capacity again after reaching the destination? I’m thinking using a pickup at the destination of the shipment would do this. After a pickup does the algorithm look for a delivery location which would be another trailer location or do pickups result in heading back to the depot?

If the former is the case, then this would be a solution to my problem!

Cheers,
Nik

EDIT: I just tested whether pickups -> deliveries and it does not. Pickups result in returning to the depot by default. Is there any other way I can change reduce the capacity?