Skip to main content

Callback function does not remember previous lazy constraints?



1 comment

  • Mario Ruthmair
    Gurobi Staff Gurobi Staff

    Hi Ans,

    Added (lazy) cut information is only propagated to all the solver components at specific synchronization points, especially when running multiple threads in parallel. Therefore, you may observe a solution in the lazy callback that does not respect previously added cuts. You need to consider each lazy callback independently without relying on previous calls. This might even result in adding the same lazy cut multiple times.

    Best regards,


Please sign in to leave a comment.