smartgrid.agents.profile.comfort.flexible_comfort_profile

smartgrid.agents.profile.comfort.flexible_comfort_profile(consumption: float, need: float) float[source]

Flexible comfort function: easy to satisfy.

This function describes a curve that increases quickly.

Parameters:
  • consumption – The quantity of energy consumed by an agent at a given time step.

  • need – The quantity of energy that the agent needed at a given time step.

Returns:

The agent’s comfort, based on the ratio between consumption and need. The comfort is guaranteed to be within [0,1].