Route optimizer doesn't return optimal solution #4688
Unanswered
arnabanimesh
asked this question in
Routing (and legacy CP) questions
Replies: 1 comment
-
the solver is approximate. It does not guarantee optimality. |
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.
-
What version of OR-Tools and what language are you using?
Version: v9.13
Language: Python
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
Routing Solver
What operating system (Linux, Windows, ...) and version?
Windows 11
What did you do?
Steps to reproduce the behavior:
Run this code:
The code is adapted from
cvrp_reload.py
What did you expect to see
One truck delivering all the orders reducing total fixed costs.
Case in point which proves that it is a bug: If I reduce the number of vehicles to 1 (i.e.
data['num_vehicles'] = 1
) then I get the proper output:What did you see instead?
This output:
Tried increasing the time limit to 30 seconds. Still the same thing.
Make sure you include information that can help us debug (full error message, model Proto).
NA
Anything else we should know about your project / environment
NA
Beta Was this translation helpful? Give feedback.
All reactions