spice_ev.strategies.greedy.Greedy

class spice_ev.strategies.greedy.Greedy(components, start_time, **kwargs)

Uncontrolled charging with max power immediately after connecting to charging station.

Charges as much power as possible during each timestep until all desired SoC are reached.
No foresight, price does not matter for normal charging.
Stores surplus energy (local generation, low energy price) in stationary battery or vehicles.
__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()

Calculate charging power in each timestep.

update_batteries()

Charge/discharge batteries.