Skip to content

faq 82346002

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

some questions about multimodality

by Rolando Armas on 2016-09-03 11:06:32


Hi matsim friends. It is my first time testing multimodality with matsi0.6.0.

I have some questions about the output:

Related with some information in log file:

 INFO LegHistogramListener:80 number of legs:    40198    100%
  INFO LegHistogramListener:87 number of bike legs:    7946    19.76715259465645%
  INFO LegHistogramListener:87 number of car legs:    13104    32.59863674809692%
  INFO LegHistogramListener:89 (car legs include legs by pt vehicles)
  INFO LegHistogramListener:87 number of transit_walk legs:    10044    24.98631772725011%
  INFO LegHistogramListener:87 number of walk legs:    9104    22.647892929996516%

1) Why there is no specific information about pt legs? Why are they included in car legs?

2) "transit_walk" are legs to one specific pt stop by walk?


Related with the event file:

Wenden line:

<event time="22140.0" type="TransitDriverStarts" driverId="pt_tr_2_1"
  vehicleId="tr_2" transitLineId="Wenden" transitRouteId="Wenden" 
 departureId="Wenden"  />

3) In my transitSchedule file, I have never defined "Wenden" line. Why it does appear?

byke leg:

<event time="30118.0" type="actend" person="p_4362" link="1211" actType="home"  />
     <event time="30118.0" type="departure" person="p_4362" link="1211" legMode="bike"  />
     <event time="30122.0" type="travelled" person="p_4362" distance="20.34821859524809"  />
     <event time="30122.0" type="arrival" person="p_4362" link="3141" legMode="bike"  />
     <event time="30122.0" type="actstart" person="p_4362" link="3141" actType="work"  />

 

Person p_4362 ride by bike, however, the distance and travel time between link 1211 and 3141 is only too short (tt=4s distance=20m).

4) What is happening?

pt legs:

5) Related to the first question: Why there are no events for all agents that use pt service?

I have attached my toy scenario files:


Thanks.


Comments: 2


Re: some questions about multimodality

by Johan W. Joubert on 2016-09-05 20:31:14

Rolando, I would recommend you first update to the newest version 0.8.0 - things have changed quite a bit, especially in terms of MATSim's ability to deal with multiple modes.

Best, Johan


Re: some questions about multimodality

by Kai Nagel on 2016-09-06 13:27:26

(1) "Wenden" is German and means "turning around".  There is something in the code that tries to re-generate full pt vehicle tours ("Umlauf" in German) from the schedule.  I.e. the vehicle is not destroyed and a new one generated at each pt route's terminus, but the code attempts to re-use an already existing pt vehicle.  (This behavior can be switched off, but I don't know if this is possible by config.)

(2) There should indeed be pt legs. I would, however, also recommend to update to 0.8.x before continuing.  The LegAnalysis was originally constructed for car trips, and its multimodal variant has conceptual problems (like possibly ignoring legs if the vehicle is driven by someone else).  If there are still no pt legs with the newer code, it possibly means that the pt router does not find pt routes.  Agents then walk instead. – Not overly helpful, I know.  We just made a decision to work a bit on the standard output side, but this will not be in the code before 0.9.x.  Sorry.

Clone this wiki locally