Skip to main content

Why does MIPGap not give me the actual optimality gap?



1 comment

  • Eli Towle
    Gurobi Staff Gurobi Staff

    This is a good question. The MIPGap parameter defines the relative optimality gap at which Gurobi will terminate the solve. The default value of this parameter is 0.0001 (0.01%). Parameters control the solver's behavior and are not changed during the optimization process.

    You are looking for the MIPGap attribute, which stores the relative optimality gap for the current solution:


Please sign in to leave a comment.