ams.core.model.Model#
- class ams.core.model.Model(system=None, config=None)[source]#
Base class for power system scheduling models.
This class is revised from
andes.core.model.Model.Methods
alter(src, idx, value[, attr])Alter values of input parameters or constant service.
doc([max_width, export])Retrieve model documentation as a string.
get(src, idx[, attr, allow_none, default])Get the value of an attribute of a model property.
Return all the indexes of this model.
get_idx()Return the index of the model instance.
idx2uid(idx)Convert idx to the 0-indexed unique index.
Convert all the value attributes
vto NumPy arrays.set(src, idx, attr, value)Set the value of an attribute of a model property.
set_backref(name, from_idx, to_idx)Helper function for setting idx-es to
BackRef.Attributes
Return the class name