Lazy callback
AnsweredWhen I use a lazy constraint callback, when is the verification made whether a lazy constraint is violated or not?
Is it each time a new integer-feasible incumbent solution is found?
Or is it only when a better (than currently known) integer-feasible solution is found?
-
Official comment
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. -
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
Jonasz0 -
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.
Comments
3 comments