Instructor: A. Horni
Co-instructors: F. Ciari, D. Grether
Lecture type: Presentation with exercises
Learning Objectives:
Content:
Find this tutorial @: http://www.matsim.org/node/412

MATSim provides automated comparisons of the simulation results with traffic counts. To date average hourly volumes can be used. For the Swiss scenarios predominantly the following source is used: ASTRA traffic count data.
The comparison is automatically generated every 10th iteration. Generated output is located in the output-directory of the iteration (usually something like output/ITERS/it.10/).
(Adopted from User guide traffic counts)
Future Tasks:

Example CH:

The counts-module offers the following config-parameters:
<module name="counts"> mandatory: <param name="inputCountsFile" value="/path/to/counts.xml" /> <param name="outputformat" value="txt,html,kml" /> optional: <param name="countsScaleFactor" value="Double > 0 " <param name="distanceFilter" value="Double >= 0" /> <param name="distanceFilterCenterNode" value="String" /> <param name="outputCountsFile" value="String" /> </module>
inputCountsFile: [String]
Path to the file containing the real-world traffic counts.
outputformat: [String]
The output format specifies in which format the comparison results are written to disk. It can be any combination of txt, html and kml. Multiple formats can be specified separated by commas. txt writes simple text-tables containing the values to a file. It is most useful to create custom graphs, e.g. in Excel. html creates a directory containing several html files, allowing to browse the results interactively. kml creates a file to be displayed in Google Earth. This last option only works if the correct coordinate system is set.
countsScaleFactor: [Double > 0]; default: 1.0
If you only simulate a sample of your population, the simulated traffic volumes are likely lower than the real-world traffic counts. In order to allow useful comparison, one can specify a factor by which the simulated traffic volumes are multiplied. For example, if you simulate a 25% sample of your full population, specify a countsScaleFactor of 4.
distanceFilter: [Double] and distanceFilterCenterNode: [String]
If the traffic counts cover a larger area than the area being simulated, the traffic counts outside your area will result in a bad comparison. Instead of removing the traffic counts from the counts.xml, you can specify a filter to only include some traffic counts from the file in the comparison. To activate the filter, specify the id of a node that acts as the center of a circle. The circle has the radius specified in "distanceFilter", the unit being the same unit as the length of links (i.e. usually meters).
outputCountsFile: [String]
Take ...
playground.anhorni.kti.CountsAnalyser orplayground.dgrether.analysis.CountsAnalyser
... as an example (will be implemented in the core soon)
Produces kml, txt or html output from the linkstats file (+network file)
Trip length and duration distribution
compare with Swiss Micro Census (PUS) german
Modal split (Example.: Westumfahrung ZH, 2009)
compare with Swiss Micro Census (PUS) german
Route Switchers
Example.: Westumfahrung ZH, 2009

Spideranalysis
Example.: Westumfahrung ZH, 2009

Volumes
Example.: Westumfahrung ZH, 2009

=> A lot of interesting future work!


Building the bypass (WU) has made worse a promiment bottleneck in the region of Zurich. Try to locate it by using the OTFVis. It is best visible between ~ 7:15 and 9:00. It is not visible very clearily in our results, but ... local car drivers say it is there ;)
Hints:

a) Using Google Earth with 100.countscompare.kmz look at the count stations in the south of Switzerland (Tessin, e.g., Lugano, Mendrisio).
b) Look at the count stations in the center of Zurich (e.g., Rosengartenstrasse, Nordring etc.)
c) What is the difference? What is the problem in (a)

3. Counts Configuration & OTFVis
Configure a ZH simulation based on zurich-switzerland.xml such that counts are plotted only within a restricted area: center = Bellevue and radius = 10 km.
I.e.; inspect network by OTFVis and define distanceFilterCenterNode in the count section of the configuration file (see Section Parameters)

| ValidationVisualizationSlides.ppt 5.1 MB |