Skip to content

Commit

Permalink
Added SCENARIO_INCREASE parameter to define the total mode share incr…
Browse files Browse the repository at this point in the history
…ease in each scenario - in line with the Global and Bogota scenario definitions
  • Loading branch information
AnnaKS123 committed Jul 31, 2023
1 parent d46f8dc commit fe0c319
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/create_africa_india_scenarios.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ create_africa_india_scenarios <- function(trip_set){
c(47.2, 33.8, 25.8, 37.2), # distance category 2-6km
c(16.0, 58.2, 72.7, 53.1))

percentage_change <- 0.05
percentage_change <- SCENARIO_INCREASE # increase of each mode as percentage of total number of trips.


rdr_baseline <- rdr %>% dplyr::select(c('trip_id', 'trip_distance_cat','scenario','trip_mode')) %>% filter()
Expand Down
2 changes: 1 addition & 1 deletion R/create_latam_scenarios.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ create_latam_scenarios <- function(trip_set){
c(2,2,2, 2))
colnames(scenario_proportions) <- target_distances <- DIST_CAT
rownames(scenario_proportions) <- modes <- c("cycle", "car", "bus", 'motorcycle')
SCENARIO_PROPORTIONS <<- scenario_proportions
SCENARIO_PROPORTIONS <<- SCENARIO_INCREASE # increase of each mode as percentage of total number of trips.
# baseline scenario
rd_list[[1]] <- rdr
modes_not_changeable <- c('bus_driver', 'truck', 'car_driver')
Expand Down

0 comments on commit fe0c319

Please sign in to comment.