matsim-org / matsim-code-examples

A repository containing code examples around MATSim
GNU General Public License v3.0
83 stars 180 forks source link

pkm_modestats #937

Closed neda-git closed 1 year ago

neda-git commented 1 year ago

Dear @Janekdererste , Dear all,

I did the simulation then I looked at the pkm_modestats, It's like that:

image

as you can see the walk is more than the car, I looked at my logfile.log, for example for it0 is:

2023-04-14T16:16:01,851 INFO ModeStatsControlerListener:130 Mode shares over all 5663.0 trips found. MainModeIdentifier: class org.matsim.core.router.RoutingModeMainModeIdentifier 2023-04-14T16:16:01,851 INFO ModeStatsControlerListener:137 -- mode share of mode bike = 0.02684089705103302 2023-04-14T16:16:01,852 INFO ModeStatsControlerListener:137 -- mode share of mode car = 0.7132262051915945 2023-04-14T16:16:01,852 INFO ModeStatsControlerListener:137 -- mode share of mode car_passenger = 0.10135970333745364 2023-04-14T16:16:01,852 INFO ModeStatsControlerListener:137 -- mode share of mode pt = 0.04926717287656719 2023-04-14T16:16:01,852 INFO ModeStatsControlerListener:137 -- mode share of mode walk = 0.10930602154335158

mode car is 71%, so why in the pkm_modestats, walk is more than others?

Thank you in advance

mrieser commented 1 year ago

the reported mode share only counts legs, but does not take the distance travelled into account.

the pkm (person-kilometer) includes the distances travelled by the agents.

you might have few but long walks trips, which can result in this kind of values reported. long walk trips is not that uncommon in early iterations as agents might first have to figure out that walking long distances is ineffective.

neda-git commented 1 year ago

Thank you @mrieser