Skip to content

Commit

Permalink
Merge pull request #27 from ElaadNL/nazir-comments
Browse files Browse the repository at this point in the history
Comments
  • Loading branch information
thomasboselaad authored Mar 21, 2024
2 parents 5da465d + 510530d commit 381a036
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions model.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
update_date = "2024-03-01"


library(data.table)
library(dplyr)
library(lubridate)
library(MALDIquant)

source("capacity_fractions.R")


### Historical session demand aggregated on weekly level ###
# Description
# Depending on whether we simulate sessions for EVs or charging stations (CPs) we aggregate
Expand Down Expand Up @@ -172,10 +176,10 @@ sample_annual_endemand_dist <- function(n_runs, mean, sd = NULL) {

### Sample from seasonality distribution ###
# Description
# This function samples from a seasonality distribution table, which is based on the following datasets:
# Den_Haag, EVnet, Jedlix and HTC_Eindhoven.
# This function samples from a seasonal distribution based on the available datasets.
# For each dataset we selected the 100 card IDs per year and week with the highest energy demand.
# After that we normalized the weekly energy demand relative to the annual energy demand.
# Then the mean is taken across all datasets and weeks.
#
# Args
# season_dist (dataframe): dataframe containing for each week the Q1 and Q3 values for power demand
Expand Down

0 comments on commit 381a036

Please sign in to comment.