Model.getQCRow()

getQCRow ( qconstr )

Retrieve the left-hand side expression from a quadratic constraint. The result is returned as a QuadExpr object.

Arguments:

qconstr: The constraint of interest. A QConstr object, typically obtained from addQConstr or getQConstrs.

Return value:

A QuadExpr object that captures the left-hand side of the quadratic constraint.

Example usage:

  print(model.getQCRow(model.getQConstrs()[0]))