Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Sage9.3 get best_known_objective_bound() for Gurobi solver

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.