I am solving a mixed-integer linear programming (MILP) problem on matlab using the solver gurobi. During the iterations, I see information like:
Optimal solution found (tolerance 1.00e-04) Best objective 6.076620143590e+02, best bound 6.076620143590e+02, gap 0.0000%
My question is: how can access to the information on the gap? I would like to store it at every iteration in an array. However, if I just call X = gurobi(model);
, where model
contains my MILP model, I do not see information on the gap in X
.