schedule_battery: Schedule battery

Description Usage Arguments Details Value

View source: R/schedule-battery.R

Description

Function that schedules the charging and discharging of a battery at half-hourly intervals to reduce peak demand.

Usage

1

Arguments

data

(data frame) Data frame containing the columns datetime, period, pv_power_mw

Details

The operation of the battery adheres to constraints outlined in the POD data science challenge (2021). Each day of charging and discharging is managed separately with the battery starting from zero charge each day. Any changes in charge must be between -2.5 MW and 2.5 MW. Between periods 1-41 only charging can occur. Discharging can only occur between periods 32-42.

To charge the battery, the algorithm loops through each periods between 2 and 41. It takes a proportion of solar PV produced during each half-hourly period such that the total energy sums to the battery capacity. If the total PV energy is less than 6 MWh then additional energy is drawn from the grid to ensure the battery is fully charged.

Value

List of matrices showing the battery charges/discharges, cumulative charge, loads and PV generation.


gprashal0706/chevckit documentation built on Dec. 20, 2021, 12:45 p.m.