gurobi python parallelization
Answeredi am running gurobi optimize in parallel with concurrent futures threadpoolexecutor with another function. if the other function finishes before the gurobi model optimization, how do i cancel the optimization and retrieve the suboptimal result?
0
-
Hi Tarun,
You can call the terminate function from any thread. This will stop the solver process. You should then retrieve the result from the thread/function that originally created the model to avoid issues with thread-safety.
Kind regards,
Ronald0
Please sign in to leave a comment.
Comments
1 comment