Skip to content

Commit

Permalink
Delay HSR service from original implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
lmz committed Nov 12, 2020
1 parent 58ae3e9 commit 588383f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion model-files/SetUpModel_PBA50.bat
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ c:\windows\system32\Robocopy.exe /E "%INPUT_POPLU%\popsyn"
c:\windows\system32\Robocopy.exe /E "%INPUT_POPLU%\landuse" INPUT\landuse

:: nonres
c:\windows\system32\Robocopy.exe /E "%INPUT_DEVELOPMENT_DIR%\nonres\nonres_00" INPUT\nonres
c:\windows\system32\Robocopy.exe /E "%INPUT_DEVELOPMENT_DIR%\nonres\nonres_01" INPUT\nonres

:: logsums and metrics
c:\windows\system32\Robocopy.exe /E "%INPUT_DEVELOPMENT_DIR%\logsums_dummies" INPUT\logsums
Expand Down
48 changes: 24 additions & 24 deletions model-files/scripts/preprocess/HsrTripGeneration.job
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
; TP+ script to determine trips to and from Bay Area high speed rail stations based on output from the California
; High Speed Rail model.
;
; Starting with input trip tables for 2025 (opening year for the Gilroy and San Jose stations), 2029 (opening
; year for Millbrae and San Francisco stations), and 2040 (future modeled year), the script will assume zero
; Starting with input trip tables for 2035 (opening year for the Gilroy and San Jose stations), 2039 (opening
; year for Millbrae and San Francisco stations), and 2050 (future modeled year), the script will assume zero
; trips before the opening year for the relevant station and interpolate the number of trips afterwards.
;
; Input: Trip tables representing trips to/from the four Bay Area HSR stations in 2025, 2029, and 2040, with the
; Input: Trip tables representing trips to/from the four Bay Area HSR stations in 2035, 2039, and 2050, with the
; following four tables: (a) da. for drive alone, (b) sr2, for shared ride 2, (c) transit, and (d) walk.
;
; Additionally, the model year will be specified in the environment variable, MODEL_YEAR.
Expand Down Expand Up @@ -45,13 +45,13 @@ loop tpnum=1,5
DistributeMultistep processid = 'ctramp', processNum = tpnum, commpath = '%COMMPATH%'

RUN PGM=MATRIX
filei mati[1] = 'INPUT\nonres\tripsHsr@time_period@_2025.tpp'
filei mati[2] = 'INPUT\nonres\tripsHsr@time_period@_2029.tpp'
filei mati[3] = 'INPUT\nonres\tripsHsr@time_period@_2040.tpp'
filei mati[1] = 'INPUT\nonres\tripsHsr@time_period@_2035.tpp'
filei mati[2] = 'INPUT\nonres\tripsHsr@time_period@_2039.tpp'
filei mati[3] = 'INPUT\nonres\tripsHsr@time_period@_2050.tpp'

fileo mato[1] = 'nonres\tripsHsr@time_period@_intermediate.tpp', mo=1-8, name=m_da, m_sr2, m_transit, m_walk, b_da, b_sr2, b_transit, b_walk

if (@model_year@ < 2025)
if (@model_year@ < 2035)
; nothing open
MW[1] = 0
MW[2] = 0
Expand All @@ -62,32 +62,32 @@ loop tpnum=1,5
MW[6] = 0
MW[7] = 0
MW[8] = 0
elseif (@model_year@ < 2029)
elseif (@model_year@ < 2039)
; change in trips change in years
MW[1] = 100.0*(MI.2.da - MI.1.da )/(2029 - 2025)
MW[2] = 100.0*(MI.2.sr2 - MI.1.sr2 )/(2029 - 2025)
MW[3] = 100.0*(MI.2.transit - MI.1.transit)/(2029 - 2025)
MW[4] = 100.0*(MI.2.walk - MI.1.walk )/(2029 - 2025)
MW[1] = 100.0*(MI.2.da - MI.1.da )/(2039 - 2035)
MW[2] = 100.0*(MI.2.sr2 - MI.1.sr2 )/(2039 - 2035)
MW[3] = 100.0*(MI.2.transit - MI.1.transit)/(2039 - 2035)
MW[4] = 100.0*(MI.2.walk - MI.1.walk )/(2039 - 2035)

; trips - m x year
MW[5] = 100.0*(MI.1.da - (MW[1]*0.01*2025))
MW[6] = 100.0*(MI.1.sr2 - (MW[2]*0.01*2025))
MW[7] = 100.0*(MI.1.transit - (MW[3]*0.01*2025))
MW[8] = 100.0*(MI.1.walk - (MW[4]*0.01*2025))
MW[5] = 100.0*(MI.1.da - (MW[1]*0.01*2035))
MW[6] = 100.0*(MI.1.sr2 - (MW[2]*0.01*2035))
MW[7] = 100.0*(MI.1.transit - (MW[3]*0.01*2035))
MW[8] = 100.0*(MI.1.walk - (MW[4]*0.01*2035))

else
; (times 100 is to keep more precision)
; 100 x slope: change in trips change in years
MW[1] = 100.0*(MI.3.da - MI.2.da )/(2040 - 2029)
MW[2] = 100.0*(MI.3.sr2 - MI.2.sr2 )/(2040 - 2029)
MW[3] = 100.0*(MI.3.transit - MI.2.transit)/(2040 - 2029)
MW[4] = 100.0*(MI.3.walk - MI.2.walk )/(2040 - 2029)
MW[1] = 100.0*(MI.3.da - MI.2.da )/(2050 - 2039)
MW[2] = 100.0*(MI.3.sr2 - MI.2.sr2 )/(2050 - 2039)
MW[3] = 100.0*(MI.3.transit - MI.2.transit)/(2050 - 2039)
MW[4] = 100.0*(MI.3.walk - MI.2.walk )/(2050 - 2039)

; 100 x y-intercept: trips - slope x year
MW[5] = 100.0*(MI.2.da - (MW[1]*0.01*2029))
MW[6] = 100.0*(MI.2.sr2 - (MW[2]*0.01*2029))
MW[7] = 100.0*(MI.2.transit - (MW[3]*0.01*2029))
MW[8] = 100.0*(MI.2.walk - (MW[4]*0.01*2029))
MW[5] = 100.0*(MI.2.da - (MW[1]*0.01*2039))
MW[6] = 100.0*(MI.2.sr2 - (MW[2]*0.01*2039))
MW[7] = 100.0*(MI.2.transit - (MW[3]*0.01*2039))
MW[8] = 100.0*(MI.2.walk - (MW[4]*0.01*2039))
endif
ENDRUN

Expand Down

0 comments on commit 588383f

Please sign in to comment.