Concepts
Features
Reference
Gurobi quadratic constraint object. Quadratic constraints are alwaysassociated with a particular model. You create a quadratic constraintobject by adding a constraint to a model (usingGRBModel::addQConstr), rather than by using aGRBQConstrconstructor.
The methods on quadratic constraint objects are used to get and setquadratic constraint attributes. For example, quadratic constraintright-hand sides can be queried by callingget(GRB_DoubleAttr_QCRHS). Note, however, that it is generally moreefficient to query attributes for a set of constraints at once. This isdone using the attribute query method on theGRBModel object(GRBModel::get).
The full list of attributescan be found in theAttributes section of thisdocument. Examples of how to query and set attributes can also be foundinthis section.
Query the value of a quadratic constraint attribute.
attr – The attribute being queried.
The current value of the requested attribute.
Set the value of a quadratic constraint attribute.
attr – The attribute being modified.
newvalue – The desired new value of the attribute.
Help and Feedback