Skip to main content

Quadratic equality constraints.

Answered

Comments

4 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.
  • Riley Clement
    • Gurobi Staff

    Hi Samuel,

    What was the result when you tested it?

    - Riley

    0
  • Samuel Mallick
    • Gurobi-versary
    • First Question
    • First Comment

    Hi Riley,

    We found that the optimization worked. The time required to solve was however drastically increased. 

    We are unsure if this increase is due to the increased complexity of the problem when adding quadratic equality constraints, or if it is due to the fact that Gurobi cannot handle this type of constraint naturally.

    The documentation on quadratic constraints contains examples only of inequality constraints. Of course an equality constraint can be converted to inequality with two inequality constraints, however we are unsure if this is what Gurobi does, and if it cause numerical issues.

    - Samuel

    0
  • Riley Clement
    • Gurobi Staff

    Hi Samuel,

    "...in fact, the great watershed in optimization isn't between linearity and nonlinearity, but convexity and nonconvexity."
    - R. Tyrrell Rockafellar, in SIAM Review, 1993 

    Nonlinear equality constraints are always nonconvex.  So adding them to a model, which was potentially convex prior, can greatly increase the difficulty to solve (and this is not specific to Gurobi).

    Of course an equality constraint can be converted to inequality with two inequality constraints

    You could do this, but the presolve routine would just convert them back into one equality.

    When you have time check out our Non-Convex Quadratic Optimization Webinar.

    - Riley

     

     

    0

Post is closed for comments.