Skip to content

faq 87916567

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

ptAnalysis handler?

by Rolando Armas on 2016-10-04 11:55:48


Hi, Matsim Friends.

I am running a public transit scenario.

I would like to compute the rate of occupation per pt unit (users/capacity of pt unit) per stop and the rate of waiting users per stop or pt unit.  I want to ask if  is there a "ptAnalysis" module, extension or handler that allow to get the basic information from pt events in order to do that? 



Comments: 1


Re: ptAnalysis handler?

by Kai Nagel on 2016-10-16 11:31:59

Senozon VIA has a fair amount of pt analysis capability included.

If you don't want to go commercial: There is a "ptCounts" config module.  It is, however, rather specialized, brittle, and still subject to frequent change. I would advise against using it.  What you could do is look at it (or rather at PtCountControlerListener which it calls) for intuition.

In general, I would advise to always writing the events analysis yourself.  There are always "special cases" that need to resolved differently from scenario to scenario; for example, in some scenarios multiple lines might halt at the same stop (i.e. with the same ID), while in some other scenario they might halt at different stops (with different IDs) but at the same location.  Also, lots of existing MATSim events analysis is old, meaning that it was designed for older version of the code, and thus may no longer be meaningful.  A typical example is the "legs" mode analysis, which now (correctly) counts access and egress walk legs as walk mode, but is not necessarily meaningful from a transport planning perspective. 


Clone this wiki locally