Skip to main content

Meaning of "Lazy constraints" in the optimization log

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff

    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.

  • Jaromił Najman
    • Gurobi Staff

    Hi Tomas,

    The output means that there are 6 active lazy constraint at the optimal solution point.

    Or is it 6 because some of "missing" 4 constraints are already satisfied when pulling in some of the other 6, and as explained in the documentation, "With a value of 1, the constraint can be used to cut off a feasible solution, but it won’t necessarily be pulled in if another lazy constraint also cuts off the solution"?

    Correct, this is why you see 6 instead of 10.

    Best regards, 
    Jaromił

    0

Post is closed for comments.