Skip to content

faq 109740330

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

Is there already a tool to export snapshots of the macroscopic network flows at some time interval?

by Robert Fitzgerald on 2017-05-30 23:59:49


Hi!  First time asking a question.  I am building a routing algorithm and considering using MATSim to generate the output_plans.xml and output_network.xml files which will be its input.  In addition, I would like to generate a macro-level snapshot of the network flows at a time t, where each t is found by dividing the day into k-many equally-sized time slices.

Does anyone know of a utility which already does this?  Otherwise I assume I would set "writeSnapshotsInterval" and scrape the last events.xml output file to generate this list, or alternatively, hijack the event handler.

Thank you for reading,

Rob

Denver, CO, USA


Comments: 1


Re: Is there already a tool to export snapshots of the macroscopic network flows at some time interval?

by Pieter Fourie on 2017-05-31 03:09:11

Hi Rob

MATSim writes hourly link volumes, averaged over iterations, into a linkstats.txt.gz file for every 10 iterations or so, depending on what you specified as the writeLinkStatsInterval in the linkStats group of your config.xml

However, refer to this post by for some caveats: </ac:plain-text-link-body></ac:link>

Otherwise, you can also write your own event handler quite simply by basing it on the tutorial at 

tutorial.programming.example06EventsHandling.RunEventsHandlingWithControlerExample

Best

Pieter

Clone this wiki locally