Skip to main content

In Gurobi, the quadratic constraints do not work, meaning the optimization results do not satisfy the specified squared term constraints

Answered

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.

  • Ryuta Tamura
    • Gurobi Staff

    Hi,

    This article might help: How do I diagnose a wrong result?
    Also, I suggest you start by sorting out what the current situation is. For example:

    • What constraints are you trying to write?
    • What values do the variables take in the solution you want?
    • What is the actual solution obtained and how does it differ from the desired result?

    In addition, it may be useful to export the model to an LP file to verify that the model is constructed as expected. How do I export a model from Gurobi?

    Thanks,
    Ryuta

    0

Post is closed for comments.