Why does Gurobi ignore the non-convex quadratic constraints?

Answered

Comments

2 comments

  • Jaromił Najman

    Hi Yuzhou,

    The documentation of the function Model.getConstrs() states

    Retrieve a list of all linear constraints in the model.

    Thus, it is expected that the quadratic constraints are not returned by this function.

    In order to retrieve all quadratic constraints you have to use the Model.getQConstrs() function.

    Best regards,
    Jaromił

    0
    Comment actions Permalink
  • Yuzhou Jiang

    Hi Jaromił,

    I see. Thank you very much for the clarification.

    Yuzhou

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk