andes.core.var.AliasAlgeb#
- class andes.core.var.AliasAlgeb(var, **kwargs)[source]#
Alias algebraic variable. Essentially
ExtAlgeb
that links to a a model's own variable.AliasAlgeb
is useful when the final output of a model is from a block, but the model must provide the final output in a pre-defined name. UsingAliasAlgeb
, A model can avoid adding an additional variable with a dummy equations.Like
ExtVar
, labels ofAliasAlgeb
will not be saved in the final output. When plotting from file, one need to look up the original variable name.Methods
link_external
(ext_model)Update variable addresses provided by external models
reset
()Reset the internal numpy arrays and flags.
set_address
(addr[, contiguous])Assigns address for equation RHS.
set_arrays
(dae[, inplace, alloc])Access
dae.h
ordae.i
for the RHS of external variables whene_str
exists..Attributes