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.

Return value:

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

Example usage:

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