-
Notifications
You must be signed in to change notification settings - Fork 179
faq 108632118
by Enoch Lee on 2017-03-26 17:17:47
Dear all,
I am trying to build a MATSim transit network with different fare for every station pairs for the railway network and bus route network. I read through the public transportation settings, but it seems the model only considers the distance on vehicle, total time, and time and distance for transit walk. Is there convenient way to incorporate the transit fare into transit route decision models?
Road pricing probably don't work, because for pt in city like Hong Kong, the fare is determined approximately by distance, but not zones.
e.g. 1-3 stations $1, 4-9 stations $2, 10-20 stations $3, etc.
Thanks
by Joschka Bischoff on 2017-03-27 06:34:57
Hi,
this does not work out of the box, but should be easy to implement using your own Event handler.
Something similar (not distance based) exists for the Santiago de Chile scenario.
For an entry into the scenario, see http://www.vsp.tu-berlin.de/publications/vspwp/ , paper 16-02
The scenario data can be downloaded from
http://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/cl/santiago/
and, most importantly, an entry into the code would be https://github.com/matsim-org/matsim/tree/master/playgrounds/santiago/src/main/java/playground/santiago/run
Especially, the "PTFareHandler.java"
Hope that helps,
Joschka
by Andreas Neumann on 2017-03-27 08:22:45
In addition to Thibaut's comment Thibaut's comment, I would like to point to some earlier attempts to incorporate fares to the transit router
- For the regular transit router of MATSim, it is possible to add your own disutillity function. playground.droeder.fareRouter.FareRoutingTestScenario gives some general albeit maybe outdated guideline on how to set this up.
- There is a raptor routing module that can use a fare system for routing. However, when I last checked the raptor routing module had not been merged to the master yet. You'll find it on the branch moveRaptorToMain.
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq