Description Usage Arguments Details Value
View source: R/schedule-battery.R
Function that schedules the charging and discharging of a battery at half-hourly intervals to reduce peak demand.
1 |
data |
(data frame) Data frame containing the columns datetime, period, pv_power_mw |
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.
List of matrices showing the battery charges/discharges, cumulative charge, loads and PV generation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.