spice_ev.strategy.Strategy
- class spice_ev.strategy.Strategy(components, start_time, **kwargs)
Parent class for the individual strategies.
- Parameters:
components (class) – class containing the components
start_time (datetime) – start time of the simulation
interval (timedelta) – interval of one timestep of the simulation (e.g. 15 min)
kwargs (dict) – other input parameters
- __init__(components, start_time, **kwargs)
Methods
__init__(components, start_time, **kwargs)apply_battery_losses()Regardless of specific strategy, reduce SoC of lossy batteries.
Distribute surplus power to vehicles.
step([event_list])Prepare next timestep for specific charging strategy.
update_batteries()Charge/discharge batteries.