spice_ev.strategies.distributed.Distributed
- class spice_ev.strategies.distributed.Distributed(components, start_time, **kwargs)
Strategy that allows for greedy charging at opp stops and balanced charging at depots.
- __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()Distribute surplus power to vehicles.
step()Calculates charging power in each timestep.
update_batteries()Charge/discharge batteries.