spice_ev.strategies.peak_load_window.PeakLoadWindow
- class spice_ev.strategies.peak_load_window.PeakLoadWindow(components, start_time, **kwargs)
Charging strategy that prioritizes times outside of high load time windows.
Charge balanced outside of windows. Inside time windows different sub-strategies are possible.
- __init__(components, start_time, **kwargs)
Methods
__init__(components, start_time, **kwargs)apply_battery_losses()Regardless of specific strategy, reduce SoC of lossy batteries.
distribute_power(vehicles, total_power, ...)Distribute total_power to vehicles in iterable vehicles according to self.LOAD_STRAT
distribute_surplus_power()Distribute surplus power to vehicles.
step()Calculate charging power in each timestep.
update_batteries()Charge/discharge batteries.