substitute_getitem_with_param
(function from pyomo.core.expr.template_expr
)
- pyomo.core.expr.template_expr.substitute_getitem_with_param(expr, _map)[source]
A simple substituter to replace _GetItem nodes with mutable Params.
This substituter will replace all GetItemExpression nodes with a new Param. For example, this method will create expressions suitable for passing to DAE integrators