smartgrid.agents.profile.comfort.strict_comfort_profile

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

Strict comfort function: difficult to satisfy.

This function describes a curve that increases slowly.

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].