Skip to main content

Lazy callback

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.
  • Jonasz Staszek
    • Community Moderator
    • Gurobi-versary
    • Thought Leader
    • First Question

    Hi Pratim,

    based on this article in the Gurobi Support portal, it would appear to me that the callback is run every time a new integer feasible solution is found. Perhaps someone from Gurobi Support team could confirm this?

    Best regars
    Jonasz

     

     

    0
  • Jaromił Najman
    • Gurobi Staff

    Once you add a lazy constraint in a callback, it becomes part of the so-called "cut pool" and is handled as a normal constraint, i.e., every feasible point candidate is checked whether it satisfies the constraint or not. This also means that the point found in the respective callback is also directly checked whether it fulfills the lazy constraint just added in the same callback.

    Best regards, 
    Jaromił

    0

Post is closed for comments.