Reload not happening #4518
Replies: 4 comments 3 replies
-
The routing solver generates a very bad solution in this simple scenario. One truck could have visited all the places and total cost would have been a little over 1000 instead of the current 5000+. Linked issue: #4515 |
Beta Was this translation helpful? Give feedback.
-
try removing the line distance_dimension.SetGlobalSpanCostCoefficient(100) |
Beta Was this translation helpful? Give feedback.
-
@lperron @Mizux It is most definitely a bug. Please check the What did you expect to see section which proves that it is indeed a bug. |
Beta Was this translation helpful? Give feedback.
-
@lperron can anything be done? Or should I consider that this issue will remain in the foreseeable future? |
Beta Was this translation helpful? Give feedback.
-
What version of OR-Tools and what language are you using?
Version: v9.11
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