akkudoktoreos.prediction.interpolator.SelfConsumptionProbabilityInterpolator

class akkudoktoreos.prediction.interpolator.SelfConsumptionProbabilityInterpolator(filepath: str | Path)

Bases: object

__init__(filepath: str | Path)

Methods

__init__(filepath)

calculate_self_consumption(load_1h_power, ...)

Calculate the PV self-consumption rate using RegularGridInterpolator.

__init__(filepath: str | Path)
calculate_self_consumption(load_1h_power: float, pv_power: float) float

Calculate the PV self-consumption rate using RegularGridInterpolator.

The results are cached until the start of the next energy management run/ optimization.

Parameters:
  • last_1h_power (-) – 1h power levels (W).

  • pv_power (-) – Current PV power output (W).

Returns:

  • Self-consumption rate as a float.