Gurobi with WorkLimit and pyomo
回答済みHi,
I am using gurobi with a defined WorkLimit to solve a pyomo MILP.
In case the MILP is infeasible I can nicely access the solver status, which indicates "termination condition: infeasibleOrUnbounded".
But in case gurobi stops because it hits the WorkLimit I could not figure out how to access any solver status. Pyomo just states: ValueError: Cannot load a SolverResults object with bad status: error
Is there any way to access in this case the gurobi solver status?
Thanks for your support.
Fabian
-
Which version of Pyomo are you using? I could reproduce that error with Pyomo 6.4.2, but not Pyomo 6.4.3 and later. It looks like Pyomo 6.4.3 fixed a bug with how Pyomo handled Gurobi's WORK_LIMIT status. See Pyomo/pyomo#2530.
0 -
Thanks a lot for this hint, this solved my issue!
0
サインインしてコメントを残してください。
コメント
2件のコメント