Time_limit is not working #3568
Unanswered
LeoAlle
asked this question in
Routing (and legacy CP) questions
Replies: 2 comments 5 replies
-
If you enable the log search usually this limit is needed/used to stop the guided local search but in your case maybe the solver can't find a first solution and continue to search until it is out of memory... |
Beta Was this translation helpful? Give feedback.
3 replies
-
Maybe try changing the first solution strategies or adding disjunction constraints to make nodes droppable to get at least a partial initial solution that you can feed to GLS to get a complete solution. |
Beta Was this translation helpful? Give feedback.
2 replies
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: v9.4
Language: Python
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
ROUTING SOLVER (routing_enums_pb2)
What operating system (Linux, Windows, ...) and version?
Windows 10 Home 21H2
What did you do?
I've put a time_limit of 120 seconds with this line of code:
When I run, it doesn't stop after that time limit and then, after a while, it crashes.
Beta Was this translation helpful? Give feedback.
All reactions