Skip to main content

Change solution strategy to standard (ImproveStartGap,ImproveStartNodes,ImproveStartTime)

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three 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 Ilya, 

    The parameters ImproveStartGap, ImproveStartNodes, and ImproveStartTime trigger solution improvement strategies where the Gurobi Optimizer only focuses on improving the incumbent to find a better feasible solution and essentially gives up on improving the best bound. For example, with the setting ImproveStartTime = 500, the Gurobi Optimizer starts with the default setting and after 500 seconds, it then just focuses on improving the incumbent. 

    I guess you would like to start with a parameter setting that does focus on improving the best bound (MIPFocus=3, for example) and then after reaching a certain gap, node counts, and/or time, switch back to the default setting. To do so, you can start the optimization with setting MIPFocus=3 and check the gap, node count, and/or time in the MIP callback. You can then terminate the optimization in the callback as soon as reaching the specified limits, reset the parameters to their default values, and continue the optimization. Please check out our article on How do I change parameters in a callback?.

     Best regards,

    Maliheh

    1
  • Ilya Tyuryukanov
    • Gurobi-versary
    • First Comment
    • First Question

    Thanks, this has worked. Very much appreciated.

    0

Post is closed for comments.