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

Wrong values of best incumbent objective value

回答済み

コメント

5件のコメント

  • 正式なコメント
    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.
  • Marika Karbstein
    • Gurobi Staff

    Hi Ankan,

    We can reproduce what you described. Our development team will investigate this further. We will update you then.

    Thanks for your patience,
    Marika

    0
  • Ankan Mitra
    • Gurobi-versary
    • First Comment
    • First Question

    Thanks. Let me know. 

    0
  • Marika Karbstein
    • Gurobi Staff

    Hi Ankan,

    Thanks for pointing out this issue! Our developers fixed the bug. The fix will be part of the release 10.0.2 available probably in Q2 or Q3 of this year.
    As a workaround for the time being you might need to store the last objective by yourself

    def mycallback(model, where):
    if where == gp.GRB.Callback.MIPSOL:
    obj = model.cbGet(gp.GRB.Callback.MIPSOL_OBJ)
    # in case of lazy constraints, make sure they are all satisfied
    model._currentbest = obj

    Best regards,
    Marika

    0
  • Marika Karbstein
    • Gurobi Staff

    Hi Ankan,

    The new release 10.0.2 is now available on our website in which the issue is fixed.

    Best regards,
    Marika

    0

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