get_summands

(function from pyomo.contrib.pyros.util)

pyomo.contrib.pyros.util.get_summands(expr)[source]

Recursively gather the individual summands of a numeric expression.

Parameters:

expr (native numeric type or NumericValue) – Expression to be analyzed.

Returns:

summands – The summands.

Return type:

list of expression-like