ams.core.model.Model#

class ams.core.model.Model(system=None, config=None)[source]#

Base class for power system dispatch models.

This class is revised from andes.core.model.Model.

__init__(system=None, config=None)[source]#

Methods

alter(src, idx, value)

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.

get_idx()

Return the index of the model instance.

idx2uid(idx)

Convert idx to the 0-indexed unique index.

list2array()

Convert all the value attributes v to 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

class_name

Return the class name