Schedule sessions according to optimal setpoint
Usage
schedule_sessions(
sessions,
setpoint,
method,
power_th = 0,
charging_power_min = 0,
energy_min = 1,
energy_max = 1,
include_log = FALSE,
show_progress = TRUE
)Arguments
- sessions
tibble, sessions data set containing the following variables:
"Session","ConnectionStartDateTime","ConnectionHours","Power"and"Energy".IMPORTANT: Make sure that the
sessionsConnectionStartDateTimeandChargingStartDateTimeare in the same time resolution thansetpoint$datetime.- setpoint
tibble with columns
datetimeandsetpoint.- method
character, being
"postpone","curtail"or"interrupt".- power_th
numeric, power threshold (between 0 and 1) accepted from setpoint. For example, with
power_th = 0.1andsetpoint = 100for a certain time slot, then sessions' demand can reach a value of110without needing to schedule sessions.- charging_power_min
numeric, minimum charging power in kW (default 0). With
method = 'curtail', sessions' charging power can only be curtailed down tocharging_power_min(e.g. 2 kW), except in a session's last charging slot, where it charges only what it still needs. A session whose nominalPoweris below it is never curtailed. Up to version 1.12.0 the default was 0.5 and a value below 1 was a share of the nominal power.- energy_min
numeric, minimum allowed ratio (between 0 and 1) of required energy. A session is never curtailed, postponed or interrupted below this share of the energy it requires, whatever the setpoint says.
- energy_max
numeric, maximum allowed ratio (between 0 and 1) of required energy. Every session stops charging once it has received this share of the energy it requires. Must be higher than 0 and at least
energy_min.- include_log
logical, whether to output the algorithm messages for every user profile and time-slot
- show_progress
logical, whether to output the progress bar in the console
