smartgrid.agents.agent.Action¶
- class smartgrid.agents.agent.Action(grid_consumption, storage_consumption, store_energy, give_energy, buy_energy, sell_energy)¶
Bases:
tuple
An immutable (named) tuple containing action parameters.
Actions may be either intended (i.e., what the learning algorithm or agent’s policy would like to do) or enacted (i.e., what truly happened considering the physical constraints of the world).
- __init__()¶
Methods
__init__
()count
(value, /)Return number of occurrences of value.
index
(value[, start, stop])Return first index of value.
Attributes
Alias for field number 4
Alias for field number 3
Alias for field number 0
Alias for field number 5
Alias for field number 1
Alias for field number 2
- _asdict()¶
Return a new dict which maps field names to their values.
- classmethod _make(iterable)¶
Make a new Action object from a sequence or iterable
- _replace(**kwds)¶
Return a new Action object replacing specified fields with new values
- buy_energy¶
Alias for field number 4
- count(value, /)¶
Return number of occurrences of value.
- give_energy¶
Alias for field number 3
- grid_consumption¶
Alias for field number 0
- index(value, start=0, stop=9223372036854775807, /)¶
Return first index of value.
Raises ValueError if the value is not present.
- sell_energy¶
Alias for field number 5
- storage_consumption¶
Alias for field number 1
- store_energy¶
Alias for field number 2