Gurobi sleeps in the middle of optimization
Awaiting user inputHello,
I run a very long process (lasts a few days) on a remote machine, that uses Gurobi for sequential solve of optimization problems, one by one.
I notices that after a few hours, the computation stuck on the same code line, exactly here: julia/packages/Gurobi/P8NrB/src/gen120/libgrb_api.jl:1196. I think Gurobi denies the service, just put the threads in sleep and starve the process without terminating.
I used SIGKILL to terminate the process, and this is how I figured where it stoped:
Stacktrace:
[1] GRBoptimize
@ ~/.julia/packages/Gurobi/P8NrB/src/gen120/libgrb_api.jl:1196 [inlined]
[2] optimize!(model::Gurobi.Optimizer)
@ Gurobi ~/.julia/packages/Gurobi/P8NrB/src/MOI_wrapper/MOI_wrapper.jl:2797
[3] optimize!
@ ~/.julia/packages/MathOptInterface/zRYzr/src/Bridges/bridge_optimizer.jl:367 [inlined]
[4] optimize!
@ ~/.julia/packages/MathOptInterface/zRYzr/src/MathOptInterface.jl:122 [inlined]
[5] optimize!(m::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}})
@ MathOptInterface.Utilities ~/.julia/packages/MathOptInterface/zRYzr/src/Utilities/cachingoptimizer.jl:321
[6] optimize!(model::Model; ignore_optimize_hook::Bool, _differentiation_backend::MathOptInterface.Nonlinear.SparseReverseMode, kwargs::@Kwargs{})
@ JuMP ~/.julia/packages/JuMP/xlp0s/src/optimizer_interface.jl:595
[7] optimize!(model::Model)
@ JuMP ~/.julia/packages/JuMP/xlp0s/src/optimizer_interface.jl:546
[8] macro expansion
@ ~/.julia/packages/MIPVerify/MqYtF/src/MIPVerify.jl:165 [inlined]
I know it is not related to my optimization problem runtime, because Gurobi sleeps for more than 12 hours, however when I terminate the process and re-execute the last optimization problem, it finishes after less than 10 minutes.
How can I fix this? I need the process to complete entirely.
Thanks in advance
-
Hi Saar,
Can you export the model to MPS (see this guide) and see if you can replicate the issue using Gurobi command line?
- Riley
0
Please sign in to leave a comment.
Comments
1 comment