Charging when there is surplus, discharging when there is deficit
Arguments
- df
tibble, time-series tibble with columns
datetime
,production
andconsumption
- Bcap
numeric, capacity of the battery
- Bc
numeric, maximum charging power
- Bd
numeric, maximum discharging power
- SOCmin
numeric, minimum State-of-Charge of the battery
- SOCmax
numeric, maximum State-of-Charge of the battery
- SOCini
numeric, required State-of-Charge at the beginning of time-series