andes.core.var.AliasAlgeb#
- class andes.core.var.AliasAlgeb(var, **kwargs)[source]#
Alias algebraic variable. Essentially
ExtAlgebthat links to a a model's own variable.AliasAlgebis 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 ofAliasAlgebwill 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.hordae.ifor the RHS of external variables whene_strexists..Attributes