Skip to main content

Wrong result after explicitly invoking presolve in Python

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff Gurobi Staff
    This post is more than three 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 why not try our AI Gurobot?.
  • Silke Horn
    • Gurobi Staff Gurobi Staff

    To solve a model, Gurobi applies presolve, then solves the presolved model and finally translates the solution from to presolved model back to the original one. However, when you use the presolve() method yourself, the resulting model will not contain the information about the original model or the necessary translation.

    As you can also see in the log for the first solve, presolve is able to remove all rows and columns. Hence the objective value will be 0.

    Please note that it is not recommend to call the presolve() method yourself.

    0

Post is closed for comments.