smart_charging: Smart charging algorithm

Description Usage Arguments Value

View source: R/flexibility.R

Description

Smart charging algorithm

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
smart_charging(
  sessions,
  fitting_data,
  dttm_seq,
  window_length,
  opt_weights,
  responsive,
  power_th = 0,
  grid_cap = NULL,
  up_to_G = TRUE,
  sort_by_flex = TRUE,
  include_msg = FALSE
)

Arguments

sessions

sessions data set

fitting_data

optimization fitting data, first column being datetime. The other columns could be solar (solar generation) and fixed (static demand from other sectors like buildings, offices, ...).

dttm_seq

datetime sequence to apply smart charging

window_length

optimization window length

opt_weights

Named list with the optimization weight w. The names of the list must exactly match the user profiles names.

responsive

Named list with the ratio of sessions responsive to smart charging program for each profile. The names of the list must exactly match the user profiles names.

power_th

power threshold from to consider flexibility required

grid_cap

numeric, grid power capacity (in kW)

up_to_G

logical, whether to limit the flexible EV demand up to renewable Generation

sort_by_flex

logical, whether to sort the sessions to shift from higher to lower flexibility

include_msg

logical, whether to output the algorithm messages for every user profile and time-slot

Value

a list with two elements: optimization setpoints and coordinated sessions schedule


mcanigueral/evflex documentation built on Feb. 16, 2021, 8:01 p.m.