Skip to main content

Wrong values of best incumbent objective value

Answered

Comments

4 comments

  • 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

Please sign in to leave a comment.