Utilities to Manage and Analyze Expressions

Functions

pyomo.core.expr.expression_to_string(expr[, ...])

Return a string representation of an expression.

pyomo.core.expr.decompose_term(expr)

A function that returns a tuple consisting of (1) a flag indicating whether the expression is linear, and (2) a list of tuples that represents the terms in the linear expression.

pyomo.core.expr.clone_expression(expr[, ...])

A function that is used to clone an expression.

pyomo.core.expr.evaluate_expression(exp[, ...])

Evaluate the value of the expression.

pyomo.core.expr.identify_components(expr, ...)

A generator that yields a sequence of nodes in an expression tree that belong to a specified set.

pyomo.core.expr.identify_variables(expr[, ...])

A generator that yields a sequence of variables in an expression tree.

pyomo.core.expr.differentiate(expr[, wrt, ...])

Return derivative of expression.

Classes

pyomo.core.expr.symbol_map.SymbolMap([labeler])

A class for tracking assigned labels for modeling components.