Solver throws error when run with ~15K locations/nodes #4018
Unanswered
ammark100
asked this question in
Routing (and legacy CP) questions
Replies: 3 comments 3 replies
-
Most likely an error in your code. Try adding try catch around your callbacks. Anyways with a report so vague, we cannot do anything. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Did you monitor the memory footprint when running the code ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Some further debugging led me to my function where I am calculating my distance matrix. That has O(n^2) complexity and that becomes a blocker. Below is the function. Any recommendations on how to find distance matrices?
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of OR-Tools and what language are you using?
Version: 9.7
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 and Linux both
What did you do?
Steps to reproduce the behavior:
I have a situation where I need to solve a problem with more than 15K node visits and approximately 1K vehicles. Even if I set the time to ~10 mins, the solver takes more than 10 mins (probably 11-12 mins) but then throws an error. It works perfectly fine if I just trim the same data to about 5K nodes but as soon as I increase the nodes, it doesn't solve. Can someone please help me?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions