Skip to main content

How to maximize a quadratic Objective Function?

Answered

Comments

2 comments

  • Simranjit Kaur
    Gurobi Staff Gurobi Staff

    This error means that your quadratic objective function is not convex. To solve a model with a non-convex quadratic objective or constraints, please set the NonConvex parameter to 2. For more details, please refer to the article: ERROR 10020: Objective Q not PSD

    0
  • Álvaro Altamirano
    First Comment
    First Question

    This actually solves my question. And, indeed, I tried to solve the problem with the specified parameter set to 2, and it worked. I'll work on my objective function being non convex.

    Thank you very much! 

    0

Please sign in to leave a comment.