(function from pyomo.dae.simulator)
pyomo.dae.simulator
Substitute _GetItem nodes in an expression tree.
This substitution function is used to replace Pyomo _GetItem nodes with mutable Params.
templatemap – dictionary mapping _GetItemIndexer objects to mutable params
a new expression tree with all substitutions done