Skip to main content

Why my model is not considered MIQCP?

Ongoing

Comments

2 comments

  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    Hi Lucas,

    If your model is nonconvex, i.e., you have to set the NonConvex parameter to 2 then, Gurobi classifies the model as a MIP. If you have quadratic constraints, then it should also be classified as an MIQCP.

    Could you share your model and a code snippet you are using to generate the output? Note that uploading files in the Community Forum is not possible but we discuss an alternative in Posting to the Community Forum.

    Best regards, 
    Jaromił

    0
  • LUCAS ZIMMERMANN
    Gurobi-versary
    First Comment
    First Question

    It is convex, I'm solving without setting NonConvex parameter.

    I'm posting my model in mathematical notation, I guess its simpler than posting the hole code due to the indices.

    Indices make no difference for this matter. Also I have painted out the fixed parameters. There is only one quadratic term, which is in the objective function. I highlighted it in red, as well as the main sequence of constraints leading this quadratic term to the constraint that uses a binary variable, b.

    Why it says that has quadratic constraints when, excplicitly, there is any? And why with a explicit quadratic term in the objective function; and constraints seen as quadratic by gurobi, it doesnt classifies the model as MIQCP or, at least, MIQP?

     

     

    0

Please sign in to leave a comment.