Time taken to solve depends on the ordering of vehicle capacity #2554
-
|
What version of OR-Tools and what language are you using? Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi) What operating system (Linux, Windows, ...) and version? What did you do? I am sharing a colab notebook demonstrating a short example reproducing the problem: The quantities to deliver at each node are [0, 80, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1] I have 22 vehicles, 21 vehicles with capacity 25 and 1 vehicle with capacity 600. I am using Google OR Tools for the first time so I don't know if this was expected or not. I have tried adding Guided Local Search also but when I add a time limit to stop it stops without giving a solution. I have asked this question in Stack Overflow also. https://stackoverflow.com/q/67570171/8550821 I have also asked this question in the official mailing list. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
As per the suggestion given by Laurent Perron in the mailing list, I have tried using different first solution strategies. It works properly when using SAVINGS, PARALLEL_CHEAPEST_INSERTION, and LOCAL_CHEAPEST_INSERTION. |
Beta Was this translation helpful? Give feedback.
As per the suggestion given by Laurent Perron in the mailing list, I have tried using different first solution strategies.
It works properly when using SAVINGS, PARALLEL_CHEAPEST_INSERTION, and LOCAL_CHEAPEST_INSERTION.