Documentation


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()