How to utilise each vehicle in Vehicle Routing Problem #2392
Unanswered
dkwr22
asked this question in
Routing (and legacy CP) questions
Replies: 1 comment
-
|
Please indicate when you cross post with stack overflow. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to solve a capacitated pickup and delivery problem using ortools. Each vehicle has a capacity of 1 and, provided that the number of deliveries/jobs > number of vehicles, has to be utilised at least once. Of course, there has to be a solution but I am unable to find it. I have tried the approach described here as follows:
However, for the example below there is always one vehicle which is not utilised at all (often more than one vehicles for other examples). How can I force each vehicle to be used and still be able to find at least a good feasible solution? Perhaps by changing the search methods?
Reproducible Code:
Beta Was this translation helpful? Give feedback.
All reactions