Skip to main content

Question about Fluctuations in Bounds with Benders Decomposition and Callback

Ongoing

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    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.
  • David Torres Sanchez
    • Gurobi Staff

    Hi,

    Which callback codes are you using to retrieve the \(\texttt{OBJBST}\) and \(\texttt{OBJBND}\)?

    You may want to employ the absolute value of the difference similar to What is the MIPGap?

    Cheers, 
    David

    0
  • Sten Jacobsen
    • Gurobi-versary
    • First Comment
    • First Question

    Thank you for the answer! Since I use Benders Decomposition I have been using the objective value of the subproblem and the estimated objective value of the subproblem in the master problem. If I would use OBJBST and OBJBND this would only give me the MIPGap for the master problem which is not relevant here? The code is:

    LB = master.cbGet(GRB.Callback.MIPSOL_OBJ) 
    UB = sub_model.ObjVal
    gap = np.absolute((UB-LB)/UB)
    0

Post is closed for comments.