model.setParam(GRB.Param.MultiObjMethod, 2) model.setParam(GRB.Param.PoolSolutions, 10) model.optimize() Then I have used: gap = model.MIPGap #1 gap = abs(model.ObjVal - model.ObjBound) / abs(model.ObjVal) #2 best_bound = model.getObjective(index=0).getAttr('ObjBound') #3 best_bound = model.getAttr('ObjBound') #4 best_bound_0 = model.getAttr('ObjBoundN')[0] #5 But non of the codes works. How to retrieve the gap? Continue reading...