Skip to main content

Retrieving Objective Bound via Callback doesn't match Model.ObjBound

Answered

Comments

1 comment

  • Maliheh Aramon
    • Gurobi Staff Gurobi Staff

    Hi Moses, 

    If the primal problem is a minimization model, the current best objective values and the current best objective bound queried via the MIPSOL callback will always show a non-increasing and a non-decreasing trend, respectively. Furthermore, the MIPSOL_OBJBST value will always be greater than the MIPSOL_OBJBND. 

    The MIPSOL callback is only called once a new solution is found. Therefore, it is expected that the last MIPSOL_OBJBND might not equal to the final optimal objective value because further node exploration might be required to prove optimality. To have the OBJBST equal to the ObjBound, you need to query this value in MIPNODE callback which is called at each node of the search tree. 
     

    Best regards,

    Maliheh
     

    0

Please sign in to leave a comment.