CVRP Reload (multi trip) with CVRP collect and deliver #4300
Replies: 4 comments 2 replies
-
Hi guys, kindly let us know if you find any implementation of multi trip with some unlinked pickup and delivery nodes (that is the vehicle takes the load from the depot to fulfil dropoff order and picks up the pickup order and bring them to the depot). If we can avoid using non-zero slack that would be better as well. Thank you. |
Beta Was this translation helpful? Give feedback.
-
@Mizux @jmarca is there any official way of handling multi trip in ortools where our orders can be:
We have a solution for all these cases here (link) but its just not a multi trip solution. kindly let us know what will be the right way of doing so? Thank you |
Beta Was this translation helpful? Give feedback.
-
Facing similar problem, how can we address this? |
Beta Was this translation helpful? Give feedback.
-
Basically you want to have the "delivery" dimension to be equal to the "total load" dimension when leaving any refill station. TIPS: you can make |
Beta Was this translation helpful? Give feedback.
-
I want a vehicle to do pickups and deliveries, where for deliveries all the items to be delivered by a vehicle are to be picked up from the depot and should be delivered at the given locations. For pickup the items are just collected from the given locations and stored in the vehicle and brought back to the depot. This is solved here by @Mizux in vrp collect and deliver: link.
Now I want a vehicle to take multiple trips if the demand is not fullfilled in one trip because of the capacity constraint of the vehicle. Now here is cvrp reload link, but here we are just having positive demands and we have just created dummy reload nodes at depot, but in our case our demands are both positive and negative as well.
Here since we have two dimensions for deliveries and overall load, so in the dummy depot we cannot just keep negative of the vehicle's capacity. So, i tried creating two dummy depots where one has positive vehicle capacity and the other dummy depot has negative vehicle capacity. Now case 1 works with 0 or vehicle_capcity slack. But case 1 only works with a slack of vehicle capacity, but case 3 works with 0 slack only. I think that allowing slack in capacity leads to infeasible intermediate routes, if this can be achieved with zero slack that would be great. Cases 4 and 5 would require correct working of case 3. It would be really helpful if you could help me out here. PFA my source code for you reference. If there is some other better way of doing so please let me know. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions