Skip to main content

Objective function tolerance

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff 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?.
  • Yuriy Zinchenko
    • Gurobi Staff Gurobi Staff

    To manage how you prune a node from a branch and bound tree you would need to define your own callback that would add a locally "valid" cutting plane that would render the node infeasible.  For more information on callbacks, a good point would be to go through our examples, e.g.,

    https://www.gurobi.com/documentation/9.0/examples/cb_py.html

     

    You can also try your luck building a much more crude alternative to this using the Cutoff parameter,

    https://www.gurobi.com/documentation/9.0/refman/cutoff.html

    but you would need to solve your model in sort of "stop-and-go" mode, stopping the solution process from time to time, updating the Cutoff, and re-starting.

     

    Hope this helps.

     

    1
  • Yauhen Yakimenka
    • Gurobi-versary
    • Conversationalist
    • Curious

    I will try my luck with callbacks :) Thanks!

    0

Post is closed for comments.