substitute_template_with_value

(function from pyomo.core.expr.template_expr)

pyomo.core.expr.template_expr.substitute_template_with_value(expr)[source]

A simple substituter to expand expression for current template

This substituter will replace all GetItemExpression / IndexTemplate nodes with the actual _ComponentData based on the current value of the IndexTemplate(s)