spice_ev.costs.calculate_costs
- spice_ev.costs.calculate_costs(strategy, voltage_level, interval, timestamps_list, power_grid_supply_list, price_list, power_fix_load_list, power_generation_feed_in_list, power_v2g_feed_in_list, power_battery_feed_in_list, charging_signal_list, price_sheet_json, results_json=None, power_pv_nominal=0, power_schedule_list=None)
Calculate costs for the chosen charging strategy.
- Parameters:
strategy (str) – charging strategy
voltage_level (str) – voltage level of the power grid the fleet is connected to
interval (timedelta) – duration of one simulation timestep
timestamps_list (list) – timestamps from simulation
power_grid_supply_list (list) – power supplied from the grid
price_list (list) – prices for energy supply in EUR/kWh
power_fix_load_list (list) – power supplied from the grid for the fixed load
power_generation_feed_in_list (list) – power fed into the grid from local generation
power_v2g_feed_in_list (list) – power fed into the grid from V2G
power_battery_feed_in_list (list) – power fed into the grid from battery
charging_signal_list (list) – charging signal (True (1): charge, False (0): don’t charge)
price_sheet_json (str) – path to price sheet
results_json (str) – path to resulting json
power_pv_nominal (int) – nominal power of pv power plant
power_schedule_list (list) – power to be supplied or fed-in according to schedule
- Raises:
Exception – if charging strategy is not supported
ValueError – if nom. PV power exceeds max. power for feed-in remuneration in price sheet
- Returns:
total costs per year and simulation period (fees and taxes included)
- Return type:
dict