Skip to main content

Presolve disabled leads to constraint violation




  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    Hi Max,

    My guess is that this could be due to my big-M, which is quite large and applies to all constraints and presolve cleans that up and thus no numerical errors show up.

    Yes, your guess is very likely correct. Presolve does not only reduce the number of columns and rows but it often improves the behavior of numerically difficult models by, e.g., scaling. Obviously, it is best to try to formulate a well-scaled model but Presolve can often handle some numerical issues.

    Our Guidelines for Numerical Issues are a good starting point to improve the numerical properties of a model.

    Best regards, 

  • Maximilian Roth
    First Comment
    First Question

    Thanks a lot Jaromił! :)


Please sign in to leave a comment.