spice_ev.strategies.peak_load_window.PeakLoadWindow.distribute_power
- PeakLoadWindow.distribute_power(vehicles, total_power, energy_needed)
Distribute total_power to vehicles in iterable vehicles according to self.LOAD_STRAT
- Parameters:
vehicles (object) – vehicles object
total_power (numeric) – total available power
energy_needed (numeric) – total energy needed to charge every vehicle (used in needy strategy)
- Returns:
commands for charging station
- Return type:
dict