Cuts added via Lazy callback are ignore
AnsweredHello
I have a pure binary problem. I solve relaxed problem and separate lazy cuts via callback.
I check every cut is violated by 1.
The control leaves callback, presumably applies them and re enters the callback.
I check the solution in callback, it is the same solution and I need to separate the same cut again.
This repeats 3 times until finally the solution changes suggesting that the cuts have been finally effective
Maybe I am missing something here?
I am in pything interface and have
Thank you in advance.
Shahin
-
Official comment
This post is more than two 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,
It can happen (due to multithreading) that the same solution comes up multiple times since newly added lazy cuts might not be synchronized among the threads yet. You have to make sure that you always add a lazy cut if the solution is infeasible even if you did it already before.
So what you are seeing is expected behavior.Best regards,
Mario0
Post is closed for comments.
Comments
2 comments