-
Notifications
You must be signed in to change notification settings - Fork 0
/
dallas.conf
executable file
·334 lines (316 loc) · 14.6 KB
/
dallas.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
include "../common/akka.conf"
include "../common/akka-router.conf"
include "../common/metrics.conf"
include "../common/matsim.conf"
beam.agentsim.firstIteration = 0
beam.agentsim.lastIteration = 1
##################################################################
# Agentsim
##################################################################
beam.agentsim.simulationName = "dallas"
beam.agentsim.agentSampleSizeAsFractionOfPopulation = 1.0
beam.agentsim.thresholdForWalkingInMeters = 100
beam.agentsim.timeBinSize = 3600
beam.agentsim.endTime = "30:00:00"
beam.agentsim.schedulerParallelismWindow = 30
# MODE CHOICE OPTIONS:
# ModeChoiceMultinomialLogit ModeChoiceTransitIfAvailable ModeChoiceDriveIfAvailable ModeChoiceRideHailIfAvailable
# ModeChoiceUniformRandom
beam.agentsim.agents.modalBehaviors.modeChoiceClass = "ModeChoiceMultinomialLogit"
beam.agentsim.agents.modalBehaviors.defaultValueOfTime = 8.0
beam.agentsim.agents.modalBehaviors.multinomialLogit.params.transfer = -1.4
beam.agentsim.agents.modalBehaviors.multinomialLogit.params.car_intercept = 0.0
beam.agentsim.agents.modalBehaviors.multinomialLogit.params.walk_transit_intercept = 0.0
beam.agentsim.agents.modalBehaviors.multinomialLogit.params.drive_transit_intercept = 0.0
beam.agentsim.agents.modalBehaviors.multinomialLogit.params.ride_hail_transit_intercept = 0.0
beam.agentsim.agents.modalBehaviors.multinomialLogit.params.ride_hail_intercept = 0.0
beam.agentsim.agents.modalBehaviors.multinomialLogit.params.ride_hail_pooled_intercept = -1.5
beam.agentsim.agents.modalBehaviors.multinomialLogit.params.walk_intercept = 0.0
beam.agentsim.agents.modalBehaviors.multinomialLogit.params.bike_intercept = 0.0
beam.agentsim.agents.modalBehaviors.modeVotMultiplier.rideHailPooled = 2.0
beam.agentsim.agents.modalBehaviors.lccm.filePath = ${beam.inputDirectory}"/lccm-long.csv"
beam.agentsim.agents.modeIncentive.filePath = ${beam.inputDirectory}"/incentives.csv"
beam.agentsim.agents.ptFare.filePath = ${beam.inputDirectory}"/ptFares.csv"
beam.agentsim.agents.plans {
inputPlansFilePath = ""
inputPersonAttributesFilePath = ""
}
beam.agentsim.agents.households {
inputFilePath = ""
inputHouseholdAttributesFilePath = ""
}
#BeamVehicles Params
beam.agentsim.agents.vehicles.linkToGradePercentFilePath = ""
beam.agentsim.agents.vehicles.fuelTypesFilePath = ${beam.inputDirectory}"/beamFuelTypes.csv"
beam.agentsim.agents.vehicles.vehicleTypesFilePath = ${beam.inputDirectory}"/vehicleTypes.csv"
beam.agentsim.agents.vehicles.vehiclesFilePath = ""
beam.agentsim.agents.vehicles.sharedFleets = []
beam.agentsim.agents.population.useVehicleSampling = true
#TAZ params
beam.agentsim.taz.filePath=${beam.inputDirectory}"/taz-centers.csv.gz"
beam.agentsim.taz.parkingFilePath = ${beam.inputDirectory}"/parking/taz-parking.csv"
# SurgePricing parameters
beam.agentsim.agents.rideHail.surgePricing.surgeLevelAdaptionStep=0.1
beam.agentsim.agents.rideHail.surgePricing.minimumSurgeLevel=0.1
beam.agentsim.agents.rideHail.surgePricing.priceAdjustmentStrategy="KEEP_PRICE_LEVEL_FIXED_AT_ONE"
#Toll params
beam.agentsim.toll.filePath=${beam.inputDirectory}"/toll-prices.csv"
# Scaling and Tuning Params
beam.agentsim.tuning.transitCapacity = 0.5
beam.agentsim.tuning.transitPrice = 1.0
beam.agentsim.tuning.tollPrice = 1.0
beam.agentsim.tuning.rideHailPrice = 1.0
###########################
# Physsim
###########################
beam.physsim.inputNetworkFilePath = ${beam.inputDirectory}"/r5/physsim-network.xml"
beam.physsim.flowCapacityFactor = 0.01
beam.physsim.storageCapacityFactor = 0.01
beam.physsim.writeEventsInterval = 0
beam.physsim.writePlansInterval = 0
beam.physsim.writeMATSimNetwork = false
beam.physsim.linkStatsWriteInterval = 1
beam.physsim.linkStatsBinSize = 3600
beam.physsim.ptSampleSize = 0.03
beam.physsim.jdeqsim.agentSimPhysSimInterfaceDebugger.enabled = false
beam.physsim.skipPhysSim = false
###########################
# Replanning
###########################
beam.replanning{
maxAgentPlanMemorySize = 6
Module_1 = "SelectExpBeta"
ModuleProbability_1 = 0.7
Module_2 = "ClearRoutes"
ModuleProbability_2 = 0.1
Module_3 = "ClearModes"
ModuleProbability_3 = 0.1
Module_4 = "TimeMutator"
ModuleProbability_4 = 0.1
}
##################################################################
# Warm Mode
##################################################################
beam.warmStart.type = "disabled"
#PATH TYPE OPTIONS: PARENT_RUN, ABSOLUTE_PATH
#PARENT_RUN: can be a director or zip archive of the output directory (e.g. like what get's stored on S3). We should also be able to specify a URL to an S3 output.
#ABSOLUTE_PATH: a directory that contains required warm stats files (e.g. linkstats and eventually a plans).
beam.warmStart.path = ""
##################################################################
# RideHail
##################################################################
# Initialization Type(PROCEDURAL | FILE)
beam.agentsim.agents.rideHail.initialization.initType = "PROCEDURAL"
# If PROCEDURAL, use these params
# initialization.procedural.initialLocation.name(INITIAL_RIDE_HAIL_LOCATION_HOME | INITIAL_RIDE_HAIL_LOCATION_UNIFORM_RANDOM | INITIAL_RIDE_HAIL_LOCATION_ALL_AT_CENTER | INITIAL_RIDE_HAIL_LOCATION_ALL_IN_CORNER)
beam.agentsim.agents.rideHail.initialization.procedural.initialLocation.name = "HOME"
beam.agentsim.agents.rideHail.initialization.procedural.initialLocation.home.radiusInMeters = 500
beam.agentsim.agents.rideHail.initialization.procedural.vehicleTypeId="Car"
beam.agentsim.agents.rideHail.initialization.procedural.numDriversAsFractionOfPopulation=0.5
# If FILE, use this param
beam.agentsim.agents.rideHail.initialization.filePath=""
# Ride Hailing General Params
beam.agentsim.agents.rideHail.defaultBaseCost=1.8
beam.agentsim.agents.rideHail.defaultCostPerMile=0.91
beam.agentsim.agents.rideHail.defaultCostPerMinute=0.28
beam.agentsim.agents.rideHail.pooledBaseCost=1.89
beam.agentsim.agents.rideHail.pooledCostPerMile=1.11
beam.agentsim.agents.rideHail.pooledCostPerMinute=0.07
beam.agentsim.agents.rideHail.refuelThresholdInMeters=20000.0
beam.agentsim.agents.rideHail.rideHailManager.radiusInMeters=10000
beam.agentsim.agents.rideHail.iterationStats.timeBinSizeInSec=3600
# SurgePricing parameters
beam.agentsim.agents.rideHail.surgePricing.surgeLevelAdaptionStep=0.1
beam.agentsim.agents.rideHail.surgePricing.minimumSurgeLevel=0.1
# priceAdjustmentStrategy(KEEP_PRICE_LEVEL_FIXED_AT_ONE | CONTINUES_DEMAND_SUPPLY_MATCHING)
beam.agentsim.agents.rideHail.surgePricing.priceAdjustmentStrategy="KEEP_PRICE_LEVEL_FIXED_AT_ONE"
# allocationManager(DEFAULT_MANAGER | STANFORD_V1 | BUFFERED_IMPL_TEMPLATE)
beam.agentsim.agents.rideHail.allocationManager.name="POOLING_ALONSO_MORA"
beam.agentsim.agents.rideHail.allocationManager.requestBufferTimeoutInSeconds = 200
# repositioningManager can be DEFAULT_REPOSITIONING_MANAGER | DEMAND_FOLLOWING_REPOSITIONING_MANAGER | REPOSITIONING_LOW_WAITING_TIMES
beam.agentsim.agents.rideHail.repositioningManager.name="DEFAULT_REPOSITIONING_MANAGER"
beam.agentsim.agents.rideHail.repositioningManager.timeout=300
# DEMAND_FOLLOWING_REPOSITIONING_MANAGER
beam.agentsim.agents.rideHail.repositioningManager.demandFollowingRepositioningManager.sensitivityOfRepositioningToDemand=1
beam.agentsim.agents.rideHail.repositioningManager.demandFollowingRepositioningManager.numberOfClustersForDemand=30
# REPOSITIONING_LOW_WAITING_TIMES
beam.agentsim.agents.rideHail.allocationManager.repositionLowWaitingTimes.percentageOfVehiclesToReposition=0.01
beam.agentsim.agents.rideHail.allocationManager.repositionLowWaitingTimes.timeWindowSizeInSecForDecidingAboutRepositioning=1200
beam.agentsim.agents.rideHail.allocationManager.repositionLowWaitingTimes.allowIncreasingRadiusIfDemandInRadiusLow=true
beam.agentsim.agents.rideHail.allocationManager.repositionLowWaitingTimes.minDemandPercentageInRadius=0.1
# repositioningMethod(TOP_SCORES | KMEANS)
beam.agentsim.agents.rideHail.allocationManager.repositionLowWaitingTimes.repositioningMethod="TOP_SCORES"
beam.agentsim.agents.rideHail.allocationManager.repositionLowWaitingTimes.keepMaxTopNScores=5
beam.agentsim.agents.rideHail.allocationManager.repositionLowWaitingTimes.minScoreThresholdForRepositioning=0.00001
beam.agentsim.agents.rideHail.allocationManager.repositionLowWaitingTimes.distanceWeight=0.01
beam.agentsim.agents.rideHail.allocationManager.repositionLowWaitingTimes.waitingTimeWeight=4.0
beam.agentsim.agents.rideHail.allocationManager.repositionLowWaitingTimes.demandWeight=4.0
beam.agentsim.agents.rideHail.allocationManager.repositionLowWaitingTimes.produceDebugImages=true
##################################################################
# OUTPUTS
##################################################################
# The baseOutputDirectory is the base directory where outputs will be written. The beam.agentsim.simulationName param will
# be used as the name of a sub-directory beneath the baseOutputDirectory for simulation results.
# If addTimestampToOutputDirectory == true, a timestamp will be added, e.g. "beamville_2017-12-18_16-48-57"
beam.outputs.baseOutputDirectory = ${PWD}"/output/dallas"
beam.outputs.baseOutputDirectory = ${?BEAM_OUTPUT}
beam.outputs.addTimestampToOutputDirectory = true
# To keep all logging params in one place, BEAM overrides MATSim params normally in the controller config module
beam.outputs.writePlansInterval = 1
beam.outputs.writeEventsInterval = 1
beam.outputs.writeLinkTraversalInterval = 0
# The remaining params customize how events are written to output files
beam.outputs.events.fileOutputFormats = "csv.gz,xml" # valid options: xml(.gz) , csv(.gz), none - DEFAULT: csv.gz
# Events Writing Logging Levels:
# Any event types not explicitly listed in overrideWritingLevels take on defaultWritingLevel
beam.outputs.events.eventsToWrite = "ActivityEndEvent,ActivityStartEvent,PersonEntersVehicleEvent,PersonLeavesVehicleEvent,ModeChoiceEvent,PathTraversalEvent,ReserveRideHailEvent,ReplanningEvent,RefuelSessionEvent,ChargingPlugInEvent,ChargingPlugOutEvent,ParkingEvent,LeavingParkingEvent"
beam.outputs.stats.binSize = 3600
##################################################################
# Debugging
##################################################################
beam.debug.debugEnabled = false
beam.debug.actor.logDepth = 12
beam.debug.stuckAgentDetection {
checkIntervalMs = 200
checkMaxNumberOfMessagesEnabled = true
defaultTimeoutMs = 60000
enabled = false
overallSimulationTimeoutMs = 100000
thresholds = [
{
actorTypeToMaxNumberOfMessages {
population = 1
rideHailAgent = 1
transitDriverAgent = 1
}
markAsStuckAfterMs = 20000
triggerType = "beam.agentsim.agents.InitializeTrigger"
},
{
actorTypeToMaxNumberOfMessages {
population = 11
}
markAsStuckAfterMs = 20000
triggerType = "beam.agentsim.agents.PersonAgent$ActivityEndTrigger"
},
{
actorTypeToMaxNumberOfMessages {
population = 1
}
markAsStuckAfterMs = 20000
triggerType = "beam.agentsim.agents.PersonAgent$ActivityStartTrigger"
},
{
actorTypeToMaxNumberOfMessages {
population = 20
}
markAsStuckAfterMs = 20000
triggerType = "beam.agentsim.agents.PersonAgent$PersonDepartureTrigger"
},
{
actorTypeToMaxNumberOfMessages {
population = 20
}
markAsStuckAfterMs = 20000
triggerType = "beam.agentsim.agents.modalbehaviors.DrivesVehicle$AlightVehicleTrigger"
},
{
actorTypeToMaxNumberOfMessages {
population = 20
}
markAsStuckAfterMs = 20000
triggerType = "beam.agentsim.agents.modalbehaviors.DrivesVehicle$BoardVehicleTrigger"
},
{
actorTypeToMaxNumberOfMessages {
population = 80
rideHailAgent = 104
transitDriverAgent = 114
}
markAsStuckAfterMs = 20000
triggerType = "beam.agentsim.agents.modalbehaviors.DrivesVehicle$EndLegTrigger"
},
{
actorTypeToMaxNumberOfMessages {
population = 80
rideHailAgent = 104
transitDriverAgent = 114
}
markAsStuckAfterMs = 20000
triggerType = "beam.agentsim.agents.modalbehaviors.DrivesVehicle$StartLegTrigger"
},
{
actorTypeToMaxNumberOfMessages {
transitDriverAgent = 1
}
markAsStuckAfterMs = 20000
triggerType = "beam.agentsim.scheduler.BeamAgentScheduler$KillTrigger"
}
]
}
##################################################################
# SPATIAL
##################################################################
beam.spatial = {
localCRS = "epsg:32048" # what crs to use for distance calculations, must be in units of meters
boundingBoxBuffer = 10000 # meters of buffer around network for defining extend of spatial indices
}
##################################################################
# BEAM ROUTING SERVICE
##################################################################
beam.routing {
#Base local date in ISO 8061 YYYY-MM-DDTHH:MM:SS+HH:MM
transitOnStreetNetwork = true
baseDate = "2017-09-22T00:00:00-05:00"
r5 {
directory = ${beam.inputDirectory}"/r5"
# Departure window in min
departureWindow = 1.0167
osmMapdbFile = ${beam.inputDirectory}"/r5/osm.mapdb"
mNetBuilder.fromCRS = "epsg:4326" # WGS84
mNetBuilder.toCRS = ${beam.spatial.localCRS}
linkRadiusMeters = 9000.0
}
}
##################################################################
# Calibration
##################################################################
beam.calibration.objectiveFunction = "CountsObjectiveFunction"
beam.calibration.mode.benchmarkFilePath=${beam.inputDirectory}"/calibration/benchmark.csv"
beam.calibration.counts {
countsScaleFactor = 10.355
writeCountsInterval = 1
averageCountsOverIterations = 1
inputCountsFile = ${beam.inputDirectory}"/counts/fall_2015_wed_filtered.xml"
}
beam.exchange.scenario {
# source for now can be "MATSim" or "UrbanSim"
source = "urbansim_v2"
# Input file format for scenario loader can be "csv" or "parquet"
fileFormat = "csv"
folder = ${beam.inputDirectory}"/urbansim_v2/4788k"
convertWgs2Utm = true
modeMap = [
"BIKE -> bike",
"DRIVEALONEFREE -> car",
"DRIVEALONEPAY -> car",
"DRIVE_COM -> drive_transit",
"DRIVE_EXP -> drive_transit",
"DRIVE_HVY -> drive_transit",
"DRIVE_LOC -> drive_transit",
"DRIVE_LRF -> drive_transit",
"SHARED2FREE -> car",
"SHARED2PAY -> car",
"SHARED3FREE -> car",
"SHARED3PAY -> car",
"TAXI -> ride_hail",
"TNC_SHARED -> ride_hail",
"TNC_SINGLE -> ride_hail",
"WALK -> walk",
"WALK_COM -> walk_transit",
"WALK_EXP -> walk_transit",
"WALK_HVY -> walk_transit",
"WALK_LOC -> walk_transit",
"WALK_LRF -> walk_transit",
]
}