Skip to content
Discussion options

You must be logged in to vote

Hey bros,
I tried another approach, where you split the same point in half, for example, and you have two requirements: 1-3,1-4.
Then you put the loading point split into 1, 2, then you can be in accordance with the method of case 1-3, 2-4 join PickupandDelivery, like:

routing. AddPickupAndDelivery (1, 3),
routing. AddPickupAndDelivery (2, 4).

The last step is to add 1 and 2 to the same car,
routing.solver().Add(routing.VehicleVar(1) == routing.VehicleVar(2))
I have succeeded in this way. My English is not very good and I wonder if you can understand it. If there is any problem, we can communicate with each other.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@gabtorr
Comment options

@Mizux
Comment options

Mizux Jan 7, 2021
Maintainer

@gabtorr
Comment options

Answer selected by lperron
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants