Skip to main content

Making MIP converge faster

Answered

Comments

4 comments

  • Jonasz Staszek
    Community Moderator Community Moderator
    Gurobi-versary
    Thought Leader
    First Question

    Hi Tanvir,

    recently Matthias wrote a great note about the MIP Gap. It should be able to clarify most of your questions.

    Best regards
    Jonasz

    0
  • Krypt
    Investigator
    Gurobi-versary
    Conversationalist

    This helps indeed. However, I am still wondering if there is any way to terminate early, especially in cases where I know that the current optimal objective is good enough for me. I tried increasing the MIPGap for early termination, but it does not work. For example, in the above screenshot, I see that 44.5% gap gives me a good enough solution. So I tried MIPGap = 50% so that it terminates early. But it then gets stuck at 58% for a long time probably because the solver takes a different path according to the article you mentioned.

    Is there anything I can do to terminate early?

    0
  • Jonasz Staszek
    Community Moderator Community Moderator
    Gurobi-versary
    Thought Leader
    First Question

    Hi Tanvir,

    maybe changing MIPFocus to 1 could help?

    Best regards
    Jonasz

    0
  • Krypt
    Investigator
    Gurobi-versary
    Conversationalist

    Thank you Jonasz, I will try it.

    0

Please sign in to leave a comment.