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

Extracting MIP Gap of my Hotstart Solution.

回答済み

コメント

2件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • Maliheh Aramon
    • 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

投稿コメントは受け付けていません。