add_charging_infrastructure {evsim} | R Documentation |
Assign a charging station to EV charging sessions
Description
Variable ChargingStation
and Socket
will be assigned to the sessions
tibble with a name pattern being: names_prefix
+ "CHS" + number
Usage
add_charging_infrastructure(
sessions,
resolution = 15,
min_stations = 0,
names_prefix = NULL,
duration_th = 0
)
Arguments
sessions |
tibble, sessions data set in standard format marked by |
resolution |
integer, time resolution in minutes |
min_stations |
integer, minimum number of charging stations to consider |
names_prefix |
character, prefix of the charging station names (optional) |
duration_th |
integer between 0 and 100, minimum share of time (in percentage)
of the "occupancy duration curve" (see function |
Value
tibble
Examples
# Assign a `ChargingStation` to every session according to the occupancy
sessions_infrastructure <- add_charging_infrastructure(
sessions = head(evsim::california_ev_sessions, 50),
resolution = 60
)
print(unique(sessions_infrastructure$ChargingStation))
# Now without considering the occupancy values that only represent
# a 10% of the time
sessions_infrastructure <- add_charging_infrastructure(
sessions = head(evsim::california_ev_sessions, 50),
resolution = 60, duration_th = 10
)
print(unique(sessions_infrastructure$ChargingStation))