GRBModel::addQConstr()

Add a quadratic constraint to a model. Multiple signatures are available.

Important note: Gurobi can handle both convex and non-convex quadratic constraints. The differences between them can be both important and subtle. Refer to this discussion for additional information.

GRBQConstr addQConstr ( const GRBQuadExpr& lhsExpr,
    char sense,
    const GRBQuadExpr& rhsExpr,
    string name="" )

GRBQConstr addQConstr ( const GRBQuadExpr& lhsExpr,
    char sense,
    GRBVar rhsVar,
    string name="" )

GRBQConstr addQConstr ( GRBTempConstr& tc,
    string name="" )