linear_expression

(class from pyomo.core.expr.numeric_expr)

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

Bases: mutable_expression

Context manager for mutable linear sums.

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

Note

The preferred context manager is mutable_expression. linear_expression is an alias to mutable_expression provided for backwards compatibility.

__init__()

Methods

__init__()

Member Documentation