Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inm/nyc zn fix 2906 snap to r5 #3891

Draft
wants to merge 414 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
414 commits
Select commit Hold shift + click to select a range
255af16
regenerated scenario
nikolayilyin Jul 24, 2020
5719712
regenerated scenario
nikolayilyin Jul 24, 2020
74197b7
calibration
nikolayilyin Jul 24, 2020
95f7e16
calibration
nikolayilyin Jul 24, 2020
62ffe98
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Jul 24, 2020
2bdc072
calibration
nikolayilyin Jul 24, 2020
0054ef3
Move things around
REASY Jul 24, 2020
fa04f80
debug
nikolayilyin Jul 24, 2020
ef7adea
Added undersampled scenario. The source of the data is https://s3.us-…
REASY Jul 24, 2020
76d4bf0
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Jul 24, 2020
7cf1d97
Only home to work
REASY Jul 25, 2020
17d291a
disable debug things
nikolayilyin Jul 25, 2020
e6a1e43
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
nikolayilyin Jul 25, 2020
fdf33d5
debug
nikolayilyin Jul 25, 2020
e46f36b
filter a generated scenario to throw out any who is not related to se…
nikolayilyin Jul 25, 2020
cffec7a
Merge remote-tracking branch 'origin/develop' into art/new-york-scenario
nikolayilyin Jul 25, 2020
b919074
debug
nikolayilyin Jul 25, 2020
9448476
calibration
nikolayilyin Jul 26, 2020
2ffdf92
debug code removed
nikolayilyin Jul 26, 2020
b365a75
calibration
nikolayilyin Jul 26, 2020
e724cfb
calibration
nikolayilyin Jul 26, 2020
b88411b
calibration
nikolayilyin Jul 26, 2020
bac270f
calibration
nikolayilyin Jul 26, 2020
31da279
calibration
nikolayilyin Jul 26, 2020
776abb8
calibration
nikolayilyin Jul 26, 2020
f3da5ee
calibration
nikolayilyin Jul 26, 2020
917f7c7
calibration
nikolayilyin Jul 27, 2020
3e114ad
calibration
nikolayilyin Jul 27, 2020
291094a
calibration
nikolayilyin Jul 27, 2020
ed85b12
calibration
nikolayilyin Jul 27, 2020
398b0b4
Read `workplace.IndustryTableReader`
REASY Jul 27, 2020
ce85082
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Jul 27, 2020
f074875
WIP
REASY Jul 27, 2020
7f5f413
- Move things around
REASY Jul 27, 2020
2666707
calibration
nikolayilyin Jul 27, 2020
f4bd3fc
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
nikolayilyin Jul 27, 2020
2243bbd
calibration
nikolayilyin Jul 27, 2020
6617b1c
calibration
nikolayilyin Jul 28, 2020
19bc05a
calibration
nikolayilyin Jul 28, 2020
d74076b
Fix the path
REASY Jul 29, 2020
5ee827c
cacc should be disabled for NYC
nikolayilyin Jul 29, 2020
05db5ad
parking calibration
nikolayilyin Jul 29, 2020
f285a7a
- Added `industry` to person
REASY Jul 29, 2020
e658c27
google speed removed
nikolayilyin Jul 29, 2020
4e621a4
calibration
nikolayilyin Jul 29, 2020
3046e5f
- Generic writers can be instantiated and write in bulk - in order to…
REASY Jul 29, 2020
925c512
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Jul 30, 2020
3c670aa
- Removed 5843k scenario
REASY Jul 30, 2020
5c7322f
calibration
nikolayilyin Jul 30, 2020
f5190ee
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
nikolayilyin Jul 30, 2020
bf80bde
regeneration of NYC scenario
nikolayilyin Jul 30, 2020
64e6bf0
scenario geneneration
nikolayilyin Jul 30, 2020
37ca993
- Move things around
REASY Jul 30, 2020
5e2bd3a
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Jul 30, 2020
3cc8103
Updates scenario: removed plans for non-workers
REASY Jul 30, 2020
23f8edb
Merge remote-tracking branch 'origin/develop' into art/new-york-scenario
REASY Jul 30, 2020
263203c
Merge branch 'art/new-york-scenario' into rajnikantsh/#2820-remvePers…
rajnikantsh Jul 30, 2020
7922d9d
scenario regeneration
nikolayilyin Jul 30, 2020
8e4f124
calibration
nikolayilyin Jul 30, 2020
93d2ca3
0.5k NYC config
nikolayilyin Jul 31, 2020
da4f064
Merge remote-tracking branch 'origin/develop' into art/new-york-scenario
nikolayilyin Jul 31, 2020
bd9ff14
mark debug logs as debug instead of warning
nikolayilyin Jul 31, 2020
e664931
fix for Could not createRideHailVehicleAndAgent: bound must be positi…
nikolayilyin Jul 31, 2020
e125ce6
NYC-20k sample input
nikolayilyin Jul 31, 2020
8218245
NYC-20k sample use for 0.5 configuration
nikolayilyin Jul 31, 2020
7956e0d
rename
nikolayilyin Jul 31, 2020
859d2f8
calibration
nikolayilyin Jul 31, 2020
4646888
Set industry as attribute
REASY Jul 31, 2020
6deb0ef
secondary activities calibration
nikolayilyin Jul 31, 2020
ae75146
calibration
nikolayilyin Jul 31, 2020
07050e5
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Jul 31, 2020
5dc80c4
calibration
nikolayilyin Jul 31, 2020
e131f87
Keep first activity of day
rajnikantsh Jul 31, 2020
17618e1
calibration
nikolayilyin Jul 31, 2020
1321e1f
A tool to visualize the location of the Segment ID from https://data.…
REASY Jul 31, 2020
dc18a9b
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Jul 31, 2020
5639193
calibration
nikolayilyin Jul 31, 2020
f1cf9dd
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
nikolayilyin Jul 31, 2020
c2207b3
calibration
nikolayilyin Jul 31, 2020
4d5e181
calibration
nikolayilyin Jul 31, 2020
58cceb3
Merge pull request #2847 from LBNL-UCB-STI/rajnikantsh/#2820-remvePer…
REASY Aug 1, 2020
205fa63
calibration
nikolayilyin Aug 1, 2020
1e7939e
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
nikolayilyin Aug 1, 2020
d3fb02b
calibration
nikolayilyin Aug 1, 2020
2ee6123
calibration
nikolayilyin Aug 1, 2020
118aa45
calibration
nikolayilyin Aug 1, 2020
c0f1036
calibration
nikolayilyin Aug 1, 2020
af43903
Log queryDate
REASY Aug 2, 2020
2fd1a62
long travel distance will contain "," as separator for thousands
REASY Aug 2, 2020
307f2d1
calibration
nikolayilyin Aug 2, 2020
d1c9581
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
nikolayilyin Aug 2, 2020
cd27f79
calibration
nikolayilyin Aug 2, 2020
efcad8c
calibration
nikolayilyin Aug 2, 2020
2c5b078
calibration
nikolayilyin Aug 2, 2020
f35ed94
calibration
nikolayilyin Aug 2, 2020
473b9dd
Merge remote-tracking branch 'origin/develop' into art/new-york-scenario
nikolayilyin Aug 2, 2020
2b3c71d
calibration
nikolayilyin Aug 2, 2020
2dc5008
calibration
nikolayilyin Aug 2, 2020
01d1756
calibration
nikolayilyin Aug 2, 2020
78c35fe
calibration
nikolayilyin Aug 2, 2020
133d702
calibration
nikolayilyin Aug 2, 2020
bbdc06c
calibration
nikolayilyin Aug 2, 2020
def0318
calibration
nikolayilyin Aug 2, 2020
ec4808c
calibration
nikolayilyin Aug 2, 2020
1228774
calibration
nikolayilyin Aug 2, 2020
94c3976
calibration
nikolayilyin Aug 2, 2020
ee7345a
calibration
nikolayilyin Aug 2, 2020
cc25705
calibration
nikolayilyin Aug 3, 2020
f2dc974
calibration
nikolayilyin Aug 3, 2020
ec4685b
calibration
nikolayilyin Aug 3, 2020
0b1f29e
calibration
nikolayilyin Aug 3, 2020
56d4d97
calibration
nikolayilyin Aug 3, 2020
4921a3c
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Aug 3, 2020
24e15c4
Merge remote-tracking branch 'origin/develop' into art/new-york-scenario
REASY Aug 3, 2020
188b513
calibration
nikolayilyin Aug 3, 2020
caf9394
20k config file with best calibrated results so far
nikolayilyin Aug 3, 2020
0c741eb
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
nikolayilyin Aug 3, 2020
e60cea4
calibration
nikolayilyin Aug 3, 2020
e8a16ff
calibration
nikolayilyin Aug 3, 2020
90d53e5
Visualize traffic speed data
REASY Aug 3, 2020
f7a57cf
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Aug 3, 2020
42b6a27
calibration
nikolayilyin Aug 3, 2020
e1681e1
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
nikolayilyin Aug 3, 2020
2640bdc
calibration
nikolayilyin Aug 4, 2020
e19ca7b
Plot closest Beam links for NY traffic data
REASY Aug 4, 2020
b3c7285
calibration
nikolayilyin Aug 4, 2020
c0685ff
calibration
nikolayilyin Aug 4, 2020
5416092
calibration
nikolayilyin Aug 4, 2020
6bb6e34
WIP
REASY Aug 4, 2020
e5a6b50
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Aug 4, 2020
cc2f590
calibration
nikolayilyin Aug 4, 2020
9a353a9
calibration
nikolayilyin Aug 4, 2020
47c6bca
calibration
nikolayilyin Aug 4, 2020
894d0dd
Code to help to understand what happens with transit for New York sce…
REASY Aug 4, 2020
dc6220e
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Aug 4, 2020
e330027
calibration experiments
nikolayilyin Aug 4, 2020
1089a85
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
nikolayilyin Aug 4, 2020
25fd5df
`durationInTrafficSeconds` is an optional field
REASY Aug 5, 2020
f07d3ef
calibration
nikolayilyin Aug 5, 2020
98bba47
calibration
nikolayilyin Aug 5, 2020
b26c98f
calibration
nikolayilyin Aug 5, 2020
049e39b
calibration
nikolayilyin Aug 5, 2020
125cb26
Fix the type for `linkTravelTime` to be `Double`
REASY Aug 5, 2020
138bf80
base config from 2640bdc345fa86ca235d3d2e1ef0a66c7d0667f8 checkin
nikolayilyin Aug 5, 2020
0c6c218
run params
nikolayilyin Aug 5, 2020
f4542a8
- `attributesOfIndividual` is nullable
REASY Aug 5, 2020
1c904dd
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Aug 5, 2020
1f351e1
Simplify schema in order to read in in Python by pandas: `pd.read_par…
REASY Aug 5, 2020
138f6cf
set writeR5RoutesInterval by default for all NYC runs
nikolayilyin Aug 5, 2020
01fa89c
Add street vehicle to routing response (so it is easier to filter)
REASY Aug 5, 2020
30344a4
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Aug 5, 2020
a85e48e
speed calibration
nikolayilyin Aug 5, 2020
8f081b0
run params
nikolayilyin Aug 6, 2020
54f5de2
calibration
nikolayilyin Aug 6, 2020
8d68a1a
base config with small population and last iteration 0
nikolayilyin Aug 6, 2020
f909cb1
calibration
nikolayilyin Aug 6, 2020
ad3fa57
calibration
nikolayilyin Aug 6, 2020
8b9e51a
run params
nikolayilyin Aug 6, 2020
66aaf07
speed calibration
nikolayilyin Aug 6, 2020
f32a2cf
turn on study area
nikolayilyin Aug 6, 2020
2d47d75
calibration
nikolayilyin Aug 6, 2020
9bfb921
calibration
nikolayilyin Aug 7, 2020
7834c80
added max link length to be affected by speed scaling factor
nikolayilyin Aug 7, 2020
112cf23
speed calibration
nikolayilyin Aug 7, 2020
41d7ec2
RouteDumper writes more data so it is easier to query
REASY Aug 7, 2020
3028d00
Create origin and destination shape files from PathTraversal
REASY Aug 7, 2020
bf799ed
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Aug 7, 2020
ff36ec3
Fix output file name
REASY Aug 7, 2020
10dcb31
Prepare scenario
REASY Aug 7, 2020
286055e
speed calibration
nikolayilyin Aug 7, 2020
150f5b0
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
nikolayilyin Aug 7, 2020
78da385
speed calibration
nikolayilyin Aug 7, 2020
3f15c30
speed calibration
nikolayilyin Aug 7, 2020
2455fcd
speed calibration
nikolayilyin Aug 8, 2020
7c1a8b4
speed calibration
nikolayilyin Aug 8, 2020
572c653
modes calibration
nikolayilyin Aug 8, 2020
952b45c
Allow people to choose other modes, not only WALK if previous mode wa…
REASY Aug 8, 2020
3fe165f
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Aug 8, 2020
d99f975
Prepare for the run
REASY Aug 8, 2020
34b2478
calculate number of ways with\without speed tag
nikolayilyin Aug 8, 2020
8c4b671
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
nikolayilyin Aug 8, 2020
cfd3a07
Prepare for the run with parallel parking
REASY Aug 8, 2020
c67881e
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Aug 8, 2020
c2ed1a5
Dummy change
REASY Aug 8, 2020
5a2343f
20k modes experiment
nikolayilyin Aug 8, 2020
5581219
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Aug 8, 2020
c8edaf4
The runs got stuck - is it because of ridehail?
REASY Aug 8, 2020
dff1a5d
Prepare for the run
REASY Aug 8, 2020
bb03b4f
App to downsample generic scenario
REASY Aug 8, 2020
a566147
1051k scenario
REASY Aug 8, 2020
2f24fba
Fixed plans.csv.gz (was not closed)
REASY Aug 8, 2020
b4575f0
Move to 1051k base scenario
REASY Aug 9, 2020
be54a60
Prepare for the run
REASY Aug 9, 2020
946d2b4
fraction of population changed according to sampled scenario size
nikolayilyin Aug 9, 2020
d276deb
modes calibration
nikolayilyin Aug 9, 2020
f85341c
calibration
nikolayilyin Aug 9, 2020
4c12227
modes calibration
nikolayilyin Aug 9, 2020
7ebb038
car modechoice calibration
nikolayilyin Aug 9, 2020
bf8997e
speed calibration
nikolayilyin Aug 9, 2020
f034f16
speed calibration
nikolayilyin Aug 9, 2020
b4316c3
speed calibration
nikolayilyin Aug 9, 2020
d2a447d
speed calibration
nikolayilyin Aug 9, 2020
51a3c85
speed calibration
nikolayilyin Aug 9, 2020
a5e0787
modes calibration
nikolayilyin Aug 10, 2020
4bcfe23
no more google 3am requests
nikolayilyin Aug 10, 2020
eb6ff82
run params
nikolayilyin Aug 10, 2020
69241ed
TEMP: WIP
REASY Aug 10, 2020
1839c6f
modes calibration
nikolayilyin Aug 10, 2020
6ed2884
quick fix to avoid requests at iteration 0
nikolayilyin Aug 10, 2020
477795e
speed calibration for parallel bpr
nikolayilyin Aug 10, 2020
8b90fa4
speed calibration for PARBPRSim
nikolayilyin Aug 10, 2020
d1b1cea
modes calibration
nikolayilyin Aug 11, 2020
4dd50d5
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Aug 11, 2020
03b5f68
Write the number of `itineraries`
REASY Aug 11, 2020
66327fd
Move it upper
REASY Aug 11, 2020
2516a4b
Commented debug code
REASY Aug 11, 2020
020eb03
base-run configuration
nikolayilyin Aug 11, 2020
3f60632
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
nikolayilyin Aug 11, 2020
17a991e
industry removal
nikolayilyin Aug 11, 2020
4e980f5
config file name fix
nikolayilyin Aug 11, 2020
a981c72
Tool to debug routing issue with New York
REASY Aug 12, 2020
fafe700
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
REASY Aug 12, 2020
b923b03
run params and debug config
nikolayilyin Aug 12, 2020
bf1ed0b
removed persons also removed from households
nikolayilyin Aug 12, 2020
0aa6ead
Merge branch 'art/new-york-scenario' of https://github.com/LBNL-UCB-S…
nikolayilyin Aug 12, 2020
6fe103c
modes experiment
nikolayilyin Aug 13, 2020
f6c823a
modes calibration
nikolayilyin Aug 14, 2020
3102792
modes calibration
nikolayilyin Aug 15, 2020
361be48
crowding experiment
nikolayilyin Aug 15, 2020
f3e1c66
crowding experiment
nikolayilyin Aug 15, 2020
0897c9c
crowding experiment
nikolayilyin Aug 15, 2020
b6bd098
crowding/secondary activity experiment
nikolayilyin Aug 15, 2020
432506b
crowding experiment
nikolayilyin Aug 15, 2020
07112dc
200k for runs
nikolayilyin Aug 15, 2020
5376e26
crowding experiments
nikolayilyin Aug 15, 2020
f01318d
fix for walk transit high capacity
nikolayilyin Aug 15, 2020
0ca6036
cleanup in config files
nikolayilyin Aug 16, 2020
a0a74fd
cleanup in config files
nikolayilyin Aug 16, 2020
46134b5
secondary activities experiment
nikolayilyin Aug 16, 2020
66b9913
crowding experiments
nikolayilyin Aug 16, 2020
4e942bf
beamville debug
nikolayilyin Aug 16, 2020
9e416dd
durty fix for incorrect removal
nikolayilyin Aug 16, 2020
2c4d1b5
different industry removal with\without crowding
nikolayilyin Aug 16, 2020
4d629b1
disable google api usage by default
nikolayilyin Aug 17, 2020
0f2a5e4
run params
nikolayilyin Aug 17, 2020
488d5ca
Merge branch 'zn/#2906-snap-to-r5' into inm/nyc-zn-fix-2906-snap-to-r5
nikolayilyin Aug 17, 2020
8e1a8fa
run params
nikolayilyin Aug 17, 2020
cc0b387
run params
nikolayilyin Aug 17, 2020
c438594
names fixed
nikolayilyin Aug 17, 2020
2c1fe61
run params
nikolayilyin Aug 17, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def logbackConfig = project.findProperty('logbackCfg') ?: "logback_prod.xml"
// UseParallelGC
applicationDefaultJvmArgs = ["-Xmx${myAvailableRam}g", "-Xms${halfOfAvailableMem}g",
"-XX:+UseParallelGC", "-XX:+UseParallelOldGC", "-XX:MetaspaceSize=150M", "-Djava.awt.headless=true",
"-Dlogback.configurationFile=${logbackConfig}", "-Xss2048k"] + logGC + jmx
"-Dlogback.configurationFile=${logbackConfig}", "-Xss2048k"] + logGC + jmx + jfr
println(applicationDefaultJvmArgs)

run {
Expand Down
31 changes: 21 additions & 10 deletions gradle.deploy.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
runName=art/austin-prod-200k-flowCap-0.2-speedScaling-1.1
beamBranch=AK/#2624-merg-urbansim-with-austin
beamCommit=71ccedfc043e9d7a6fd4e4b2b843b4d0962214fe
beamConfigs=test/input/texas/austin-prod-200k.conf
instanceType=m5d.24xlarge
runName=inm/NY-200k-baseline-with-2906-snap-to-r5

#c5.9xlarge (36/72) -> 5 instances -> $1.53 per Hour
beamBranch=art/new-york-scenario
beamCommit=c438594ebee52b334e15b0c8a14757fb2da063e0
#beamConfigs=test/input/newyork/new-york-modes-calibration-1.conf,test/input/newyork/new-york-modes-calibration-2.conf,test/input/newyork/new-york-modes-calibration-3.conf,test/input/newyork/new-york-modes-calibration-4.conf,test/input/newyork/new-york-modes-calibration-5.conf,test/input/newyork/new-york-modes-calibration-6.conf,test/input/newyork/new-york-modes-calibration-7.conf,test/input/newyork/new-york-modes-calibration-8.conf

beamConfigs=test/input/newyork/new-york-PROD-two-iterations-baseline.conf

#instanceType=m5d.24xlarge
#maxRAM=360g

instanceType=c5d.24xlarge
maxRAM=180g

#shutdownBehaviour = stop | terminate
shutdownBehaviour=terminate
s3Backup=true

#r5.4xlarge (16/128) -> $1.008 per Hour
#r5.8xlarge (32/256) -> $2.016 per Hour
#c5.9xlarge (36/72) -> 5 instances -> $1.53 per Hour
#m4.10xlarge (40/160) -> 5 -> $2.00 per Hour
#m5.12xlarge (48/192) -> 3 instances -> $2.304 per Hour
#m5d.12xlarge (48/192) -> 5 -> $2.712 per Hour
Expand All @@ -16,6 +30,7 @@ instanceType=m5d.24xlarge
#r5d.12xlarge (48/384) -> 3 -> $3.456 per Hour
#h1.16xlarge (64/256) -> 1 -> $3.744 per Hour

#c5d.24xlarge (96/192) -> -> $4.608 per Hour
#m5.24xlarge (96/384) -> 2 -> $4.608 per Hour
#i3.16xlarge (64/488) -> 1 -> $4.992 per Hour
#i3.metal (72/512) -> 5 -> $4.992 per Hour
Expand All @@ -39,10 +54,6 @@ executeClass=beam.sim.RunBeam
#executeArgs=['--config', 'production/application-sfbay/experimentsFall2018/fall18-calib-run1.conf']
beamBatch=false
shutdownWait=15
# shutdownBehaviour = stop | terminate
shutdownBehaviour=terminate
s3Backup=true
maxRAM=300g
#storageSize (in GiB) = any number between 64 and 256
storageSize=256

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class DockerRoutingFrameworkWrapper(

private val graphReader: RoutingFrameworkGraphReader = new RoutingFrameworkGraphReaderImpl()

private val toolDockerImage = "beammodel/routing-framework:1.0"
private val toolDockerImage = "beammodel/routing-framework:1.1"

private val basePath = "/routing-framework/Build/Devel"
private val convertGraphLauncher = s"$basePath/RawData/ConvertGraph"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ private boolean shouldWritePlans(int iterationNumber) {
}

private boolean shouldWriteInIteration(int iterationNumber, int interval) {
return interval == 1 || (interval > 0 && iterationNumber % interval == 0);
return interval == 1 || (interval > 0 && iterationNumber >= interval && iterationNumber % interval == 0);
}

private void writePhyssimPlans(IterationEndsEvent event) {
Expand Down
31 changes: 16 additions & 15 deletions src/main/python/calibration/parse_google_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,23 @@ def parse_travel_time(travel_time_str):
def parse_travel_distance(travel_distance):
if isinstance(travel_distance, float) and math.isnan(travel_distance):
return float('nan')
elif "km" in travel_distance:
return float(travel_distance.replace('km', '')) * 1000
elif "miles" in travel_distance:
# Miles to meteres
return float(travel_distance.replace('miles', '')) * 1.60934 * 1000
elif "mile" in travel_distance:
# Miles to meteres
return float(travel_distance.replace('mile', '')) * 1.60934 * 1000
elif "ft" in travel_distance:
# feet to meteres
return float(travel_distance.replace('ft', '')) * 0.3048
elif "m" in travel_distance:
return float(travel_distance.replace('m', ''))
else:
raise Exception("Cannot parse '%s' as travel distance" % ((travel_distance)))

travel_distance = travel_distance.replace(",", "")
if "km" in travel_distance:
return float(travel_distance.replace('km', '')) * 1000
elif "miles" in travel_distance:
# Miles to meteres
return float(travel_distance.replace('miles', '')) * 1.60934 * 1000
elif "mile" in travel_distance:
# Miles to meteres
return float(travel_distance.replace('mile', '')) * 1.60934 * 1000
elif "ft" in travel_distance:
# feet to meteres
return float(travel_distance.replace('ft', '')) * 0.3048
elif "m" in travel_distance:
return float(travel_distance.replace('m', ''))
else:
raise Exception("Cannot parse '%s' as travel distance" % ((travel_distance)))

def normalize(df):
df['route_0_travel_distance_meters'] = df['route_0_travel_distance'].apply(lambda x: parse_travel_distance(x))
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/beam-template.conf
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ beam.agentsim.agents.vehicles.sharedFleets = [
beam.agentsim.collectEvents = false

beam.agentsim.agents.population.useVehicleSampling = "boolean | false"
beam.agentsim.agents.population.industryRemovalProbabilty.enabled = "boolean | false"
beam.agentsim.agents.population.industryRemovalProbabilty.inputFilePath = ""
# when removeAgent is true then persons will be removed based on input industryProbability csv,
# when removeAgent is false then remove all work activities from plan
beam.agentsim.agents.population.industryRemovalProbabilty.removeAgent = "boolean | false"

beam.exchange.scenario {
# source for now can be "Beam" or "UrbanSim"
Expand Down Expand Up @@ -304,6 +309,7 @@ beam.agentsim.scenarios.frequencyAdjustmentFile = ${beam.inputDirectory}"/r5/Fre
beam.physsim.flowCapacityFactor = "double | 1.0"
beam.physsim.storageCapacityFactor = "double | 1.0"
beam.physsim.speedScalingFactor = "double | 1.0"
beam.physsim.maxLinkLengthToApplySpeedScalingFactor = "double | 50.0"
beam.physsim.linkStatsWriteInterval = "int | 1"
beam.physsim.linkStatsBinSize = "int | 3600"
beam.physsim.ptSampleSize = "double | 1.0"
Expand Down
1 change: 0 additions & 1 deletion src/main/scala/beam/agentsim/agents/PersonAgent.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,6 @@ class PersonAgent(
log.warning(s"$id events leading up to this point:\n\t${getLog.mkString("\n\t")}")
} else if (stateName == PerformingActivity) {
logger.debug(s"$id is performing Activity at end of simulation")
logger.warn(s"Performing Activity at end of simulation")
} else {
logger.warn(s"$id has received Finish while in state: ${stateName}")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,10 @@ trait ChoosesMode {
withParking = willRequestDrivingRoute
)
case Some(WALK) =>
// FIXME: Our previous tour was WALK, but this should not stop us to use RideHail or try transit!
// This is important for the secondary activties because you can end-up walking very far (the problem was that whenever the person chooses WALK, he will never use any other mode anymore)
responsePlaceholders = makeResponsePlaceholders(boundingBox, withRouting = true)
makeRequestWith(withTransit = false, Vector(bodyStreetVehicle), withParking = false)
makeRequestWith(withTransit = true, Vector(bodyStreetVehicle), withParking = false)
case Some(WALK_TRANSIT) =>
responsePlaceholders = makeResponsePlaceholders(boundingBox, withRouting = true)
makeRequestWith(withTransit = true, Vector(bodyStreetVehicle), withParking = false)
Expand Down Expand Up @@ -452,7 +454,7 @@ trait ChoosesMode {
* Receive and store data needed for choice.
*/
case Event(
theRouterResult @ RoutingResponse(_, requestId, _, _),
theRouterResult @ RoutingResponse(_, requestId, _, _, _),
choosesModeData: ChoosesModeData
) if choosesModeData.rideHail2TransitRoutingRequestId.contains(requestId) =>
theRouterResult.itineraries.view.foreach { resp =>
Expand Down Expand Up @@ -964,6 +966,10 @@ trait ChoosesMode {
.asInstanceOf[AttributesOfIndividual]
val availableAlts = Some(filteredItinerariesForChoice.map(_.tripClassifier).mkString(":"))

// if (filteredItinerariesForChoice.size == 1 && filteredItinerariesForChoice.head.tripClassifier == WALK) {
// log.info(s"Person ${id}, filteredItinerariesForChoice: ${filteredItinerariesForChoice}")
// }

modeChoiceCalculator(
filteredItinerariesForChoice,
attributesOfIndividual,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ class RideHailAgent(
beamServices.beamRouter ! veh2StallRequest
// }
stay
case Event(RoutingResponse(itineraries, _, _, _), data) =>
case Event(RoutingResponse(itineraries, _, _, _, _), data) =>
log.debug("Received routing response, initiating trip to parking stall")
val theLeg = itineraries.head.beamLegs.head
val updatedPassengerSchedule = PassengerSchedule().addLegs(Seq(theLeg))
Expand Down Expand Up @@ -410,7 +410,7 @@ class RideHailAgent(
case ev @ Event(ParkingInquiryResponse(_, _), _) =>
stash()
stay()
case ev @ Event(RoutingResponse(_, _, _, _), _) =>
case ev @ Event(RoutingResponse(_, _, _, _, _), _) =>
stash()
stay()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1880,7 +1880,8 @@ class RideHailManager(
modRHA2Cust,
rideHailAgent2CustomerResponse.requestId,
None,
isEmbodyWithCurrentTravelTime = false
isEmbodyWithCurrentTravelTime = false,
rideHailAgent2CustomerResponse.computedInMs
)

val passengerSchedule = PassengerSchedule().addLegs(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,14 @@ object BeamVehicle {
)

def noSpecialChars(theString: String): String =
theString.replaceAll("[\\\\|\\\\^]+", ":")
theString
.replaceAll("[\\\\|\\\\^]+", ":")
.replace("[", "")
.replace("]", "")
.replace("(", "")
.replace(")", "")
.replace("/", "")
.replace("\\", "")

def createId[A](id: Id[A], prefix: Option[String] = None): Id[BeamVehicle] = {
createId(id.toString, prefix)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class TravelTimeGoogleStatistic(
if (cfg.enable && apiKey == null)
logger.warn("google api key is empty")
private val queryDate = getQueryDate(cfg.queryDate)
logger.info(s"queryDate :$queryDate")

private val enabled = cfg.enable && apiKey != null
private val constraints: Set[TravelConstraint] = if (cfg.tolls) Set.empty else Set(AvoidTolls)
Expand All @@ -64,6 +65,8 @@ class TravelTimeGoogleStatistic(
override def notifyIterationEnds(event: IterationEndsEvent): Unit = {
if (enabled
&& cfg.iterationInterval > 0
// HACK: to avoid requests at iteration 0
&& event.getIteration > 0
&& event.getIteration % cfg.iterationInterval == 0) {
logger.info(
"Executing google API call for iteration #{}, query date = {}",
Expand Down Expand Up @@ -143,7 +146,7 @@ class TravelTimeGoogleStatistic(
ec.event.endX,
ec.event.arrivalTime - ec.event.departureTime,
ec.route.durationIntervalInSeconds,
ec.route.durationInTrafficSeconds,
ec.route.durationInTrafficSeconds.getOrElse(-1).toString,
geoUtils.distLatLon2Meters(
new Coord(ec.event.startX, ec.event.startY),
new Coord(ec.event.endX, ec.event.endY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class ModeChoiceAlternativesCollector(beamServices: BeamServices)

csvFilePath = beamServices.matsimServices.getControlerIO.getIterationFilename(
iteration,
"modeChoiceAlternativesWhenRHPooled.csv.gz"
"modeChoiceDetailed.csv.gz"
)

csvWriter = new CsvWriter(
Expand Down
3 changes: 2 additions & 1 deletion src/main/scala/beam/router/BeamRouter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,8 @@ object BeamRouter {
itineraries: Seq[EmbodiedBeamTrip],
requestId: Int,
request: Option[RoutingRequest],
isEmbodyWithCurrentTravelTime: Boolean
isEmbodyWithCurrentTravelTime: Boolean,
computedInMs: Long = -1
)

case class RoutingFailure(cause: Throwable, requestId: Int)
Expand Down
Loading