Try our new documentation site (beta).
Filter Content By
Version
Text Search
${sidebar_list_label} - Back
Filter by Language
QuadExpr.getLinExpr()
getLinExpr ( )
A quadratic expression is represented as a linear expression, plus a list of quadratic terms. This method retrieves the linear expression associated with the quadratic expression.
Return value:
Linear expression from quadratic expression.
Example usage:
expr = x * x + 2 * y * y + z le = expr.getLinExpr()