Skip to main content

Gurobi produces different result when .mps file contains objective offset

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • 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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Jaromił Najman
    • Gurobi Staff

    A constant in the objective function can drastically change the relative MIPGap. Especially if the objective value jumps from very big to very small (in absolute values). Moreover, the addition of an objective constant may change the solution path, see Is Gurobi Optimizer deterministic?

    If the rest of your model is well scaled and the objective constant is the only very big value, I would recommend to remove this constant from the objective and solve without it. You can always just add it after the optimization process has finished.

    0
  • Aisec Nory
    • Gurobi-versary
    • First Question
    • First Comment

    Jaromił Najman Thank you for the reply. I get it now.

    0

Post is closed for comments.