smartgrid.agents.agent.AgentState

class smartgrid.agents.agent.AgentState[source]

Bases: object

The (mutable) state of an Agent.

__init__()[source]

Methods

__init__()

reset()

Attributes

comfort

The agent's current comfort, a float that should be in [0,1].

payoff

The agent's current payoff, i.e., the cumulated sum of benefits and losses.

storage

The agent's current amount of energy stored in its personal battery.

need

The agent's current need, i.e., energy that it would like to consume.

production

The agent's energy produced at the current step, and put in its storage.

previous_storage

The previous amount of energy stored, at the previous time step.

comfort: float

The agent’s current comfort, a float that should be in [0,1].

need: float

The agent’s current need, i.e., energy that it would like to consume.

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 .

previous_storage: float

The previous amount of energy stored, at the previous time step.

production: float

The agent’s energy produced at the current step, and put in its storage.

Note

As the storage is limited, it may happen that the difference between the new storage and the storage at the previous step is smaller than the production.

storage: float

The agent’s current amount of energy stored in its personal battery.