Can we reuse the presolve in a subsequent run?
AnsweredHi! I am wondering if it is possible to skip/reuse the presolve when solving the same model (with some objective function coefficient change) more than once? I am solving a model which has a very long presolve time but otherwise is efficient. As I solve it many times, I would like to speed up the presolve phase.
Thanks!
-
Official comment
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. -
Hi Gabrijela,
The aim of presolve is to reduce the model size while ensuring at least one optimal solution still remains. It may remove parts of the feasible region in doing so. The effect of the presolve is therefore related to your objective function and so it cannot be "reused" between models with different objective functions (or between models in general).
You can turn presolve off entirely by setting Presolve=0. You could also see whether Presolve=1 (conservative presolve) or setting PrePasses to a low value (perhaps try 0 or 1 initially) has the desired effect.
Also, if you're solving many models where only the objective function coefficients are changing then perhaps consider test-driving our Multi-Scenario functionality.
- Riley
0
Post is closed for comments.
Comments
2 comments