メインコンテンツへスキップ

Extracting MIP Gap of my Hotstart Solution.

回答済み

コメント

1件のコメント

  • Maliheh Aramon
    Gurobi Staff Gurobi Staff

    Hi, 

    The MIPGap attribute is available when the optimization is terminated because of hitting a termination criterion or proving the optimality. This attribute reports the relative gap between the current best bound and the incumbent. 

    If you are interested in finding the gap between the initial start solution and the current best bound, you would need to calculate it yourself using the gap formula shared on the page linked above.

    • The current best bound can be queried using the ObjBound attribute.
    • The objective value of the initial start solution can be found by parsing the log file.

    Best regards,

    Maliheh

    1

サインインしてコメントを残してください。