Skip to main content

Question about Fluctuations in Bounds with Benders Decomposition and Callback

Ongoing

Comments

2 comments

  • David Torres Sanchez
    Gurobi Staff 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

Please sign in to leave a comment.