Skip to main content

How can I inherit branching tree from previous optimization after adding continuous variables

Answered

Comments

2 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 why not try our AI Gurobot?.
  • Maliheh Aramon
    • Gurobi Staff

    Hi Yudi, 

    As long as you do not call the model.reset() method before adding the new variables and constraints, the next call to the model.optimize() method will have access to all the information that affected the solution process such as branching priorities, MIP starts from the previous call to the model.optimize() call. 

    Please be aware that depending on the model modifications done, the extent the previous history speeds the next optimization process varies. For example, if adding the new variables and the new constraints makes the previous optimal solution infeasible, Gurobi will discard the current optimal solution and will try to find a new incumbent feasible for the modified search space.

    0

Post is closed for comments.