Skip to main content

Weaker constraint returns worse solution

Awaiting user input

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    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.
  • Jaromił Najman
    • Gurobi Staff

    Hi Gabriel and Lovisa,

    Just from looking at the Coefficient statistics of your model, it is very likely that the algorithm runs into numerical issues and can as a result provide contradicting results. We provide a lot of details about scaling and good model formulations in our Guidelines for Numerical Issues. You should definitely try playing with the NumericFocus parameter.

    the model returns a worse solution than when this constraint was tighter.

    Did you try writing out the solution to a sol file and providing it as MIP Start for the other formulation? You can write the solution from command line via the ResultFile parameter or via the write method if you are using gurobipy.

    Best regards, 
    Jaromił

    0

Post is closed for comments.