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
-
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
Please sign in to leave a comment.
Comments
1 comment