What is the difference between MIPSOL_OBJ and MIPSOL_OBJBST
AnsweredMy understanding is that, MIPSOL_OBJ (Objective value for new solution) is the currently found objective, and MIPSOL_OBJBST is the best obj before this currently found incumbent.
Thus MILSOL_OBJ provides the better obj, is that right?
-
Official comment
This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
In Gurobi's callback mechanism,
MIPSOL_OBJandMIPSOL_OBJBSTare two different attributes that you can query when you receive a MIPSOL (solution) callback. Here’s what each one represents:-
MIPSOL_OBJ: This attribute provides the objective value of the new integer feasible solution found by Gurobi. It gives you the actual objective value of the current solution that triggered the MIPSOL callback.
-
MIPSOL_OBJBST: This attribute represents the best objective value of any integer feasible solution found so far during the optimization process. Essentially, it's the objective value of the best solution found up to the point of the current callback.
The key difference is that
MIPSOL_OBJrefers to the objective value of the current solution being considered in the callback, whereasMIPSOL_OBJBSTrefers to the best (lowest or highest depending on the optimization sense) objective value found across all solutions up to that point in the optimization.0 -
Post is closed for comments.
Comments
2 comments