DynamicVarLinker

(class from pyomo.contrib.mpc.interfaces.var_linker)

class pyomo.contrib.mpc.interfaces.var_linker.DynamicVarLinker(source_variables, target_variables, source_time=None, target_time=None)[source]

Bases: object

The purpose of this class is so that we do not have to call find_component or construct ComponentUIDs in a loop when transferring values between two different dynamic models. It also allows us to transfer values between variables that have different names in different models.

__init__(source_variables, target_variables, source_time=None, target_time=None)[source]

Methods

__init__(source_variables, target_variables)

transfer([t_source, t_target])

Member Documentation