Skip to main content

Can constraints speed up solving a model? (Or would there be a better way to introduce information?)

Answered

Comments

1 comment

  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    Hi Jack,

    If you can automatically determine additional model knowledge which would result in fixing some binary variables (or tightening the formulation), you should always definitely add this information to your model. The reason is that deducing such information from a solver's perspective may be very hard or even unachievable and the solver often has to do a lot of work in order to get the knowledge during a solution process.

    Using additional model knowledge and adding this as constraints usually helps the solution process as long as the constraints are not just linear combinations of all other constraints or almost parallel which may lead to numerical issues instead of actually helping the solution process.

    [...] or other means of speeding up the process?

    You could try finding specific solver parameters which might speed up the solution process. For this, please have a look at the Most important parameters for MIPs.

    Best regards, 
    Jaromił

    0

Please sign in to leave a comment.