idaes.plugins package


idaes.plugins.variable_replace module

class idaes.plugins.variable_replace.ReplaceVariables(**kwds)[source]

Replace variables in a model or block with other variables.

Keyword arguments below are specified for the apply_to(instance, **kwargs) method.

Keyword Arguments:
 substitute – List-like of tuples where the first item in a tuple is a Pyomo variable to be replaced and the second item in the tuple is a Pyomo variable to replace it with. This transformation is not reversible.