You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, for a better performance you can use a lookup-table for the calculation of self consumption in inverter.py.
def calculate_scr(self, erzeugung: float, verbrauch: float) -> float:
""" Check if the consumption and production is in the lookup table. If not, calculate and store the value."""
if verbrauch not in self.scr_lookup:
self.scr_lookup[verbrauch] = {}
if erzeugung not in self.scr_lookup[verbrauch]:
scr = self.self_consumption_predictor.calculate_self_consumption(verbrauch, erzeugung)
self.scr_lookup[verbrauch][erzeugung] = scr
return scr
return self.scr_lookup[verbrauch][erzeugung]
Self consumption is only calculated for the specified values of "erzeugung" and "verbrauch". In the remaining iterations, the value from memory is used. This significantly reduces the execution time.
EMS - Load 1h -> Sub1h Probability Table for other states (Battery ...)
The text was updated successfully, but these errors were encountered: