Sage9.3 get best_known_objective_bound() for Gurobi solver

asked 2021-08-12 04:26:37 +0100

Sim gravatar image

Hi, I'm using Gurobi as the solver, after a timeout, I want to see what is the best bound found so far

p = MixedIntegerLinearProgram(solver="Gurobi")
##add milp model to p##
p.solve()
upper_bound = p.get_objective_value()
lower_bound = p.best_known_objective_bound()

But I will get an error for best_known_objective_bound(), it works for GLPK so I'm wondering if there is a similar function for Gurobi solver as well.

edit retag flag offensive close merge delete