smartgrid.agents.agent.AgentState¶
- class smartgrid.agents.agent.AgentState[source]¶
Bases:
object
The (mutable) state of an Agent.
Methods
__init__
()reset
()Attributes
The agent's current comfort, a float that should be in [0,1].
The agent's current payoff, i.e., the cumulated sum of benefits and losses.
The agent's current amount of energy stored in its personal battery.
The agent's current need, i.e., energy that it would like to consume.
The agent's energy produced at the current step, and put in its storage.
The previous amount of energy stored, at the previous time step.
- payoff: float¶
The agent’s current payoff, i.e., the cumulated sum of benefits and losses.
Note
The payoff should be within the
smartgrid.agents.agent.Agent.payoff_range
.