Requirement overview:
Trip route can have following type of task
Delivery only
Pickup only
Pickup from one location and deliver to another location
Condition: Once a trip starts from depo, it should come back only when the trip is completed. During the trip it shouldn’t come to depo.
As we understand, OR tools need delivery and pickup location for each order else it's giving issues.
Ref: https://groups.google.com/g/or-tools-discuss/c/WyEOZAv8IJs/m/PxWb7Lq7AwAJ
To overcome this, for all delivery orders we add depo as pick location and for all pick orders, we add depo as delivery location. This is working fine if all orders are for delivery. However if orders are having a mix of delivery and pick, in this scenario, during the trip if depo location is near to the last pick node, vehicle will go to depot if OR-tools is optimizing route based on location (considering last pick needs to be delivered at depo).
This leads to wrong route optimisation. Looking for help here. Also pls. advice if we are missing something or having wrong understanding.
--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/be4283a0-77df-4ea7-a924-fb0b2cd9d66dn%40googlegroups.com.