smartgrid.agents.profile.comfort.neutral_comfort_profile¶
- smartgrid.agents.profile.comfort.neutral_comfort_profile(consumption: float, need: float) float [source]¶
Neutral comfort function.
This function describes a curve where the inflexion point, at y=0.5, is obtained when x=0.5.
- 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].