nonlinear_expression

(class from pyomo.core.expr.numeric_expr)

class pyomo.core.expr.numeric_expr.nonlinear_expression[source]

Bases: mutable_expression

Context manager for mutable nonlinear sums.

This context manager is used to compute a general nonlinear sum while treating the summation as a mutable object.

Note

The preferred context manager is mutable_expression, as the return type will be the most specific of SumExpression, LinearExpression, or NPV_SumExpression. This context manager will always return a SumExpression.

__init__()

Methods

__init__()

Member Documentation