matsim-org / matsim-code-examples

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

Waiting time in scoring part of the taxi mode #180

Closed Lichen-L closed 5 years ago

Lichen-L commented 5 years ago

Hi all MATSimians,

I am now working with the taxi contrib in MATSim (ver. 0.10.1) and it just make me wonder that if waiting time is incorporated in scoring part of the taxi mode. That is, will waiting time be processed (just as travel time) by the "marginalUtilityOfTraveling_util_hr" in "modeParams" of taxi ?

Btw, I cannot help noticing that there exists a "taxifare" module, which has "distanceFare_m" parameter. Is this different from the "monetaryDistanceRate" parameter in "modeParams"?

Thank you for the time.

Lichen

jfbischoff commented 5 years ago

Hi Lichen,

Waiting times are indeed processed as marginalUtilityOfTraveling_util_hr.

Btw, I cannot help noticing that there exists a "taxifare" module, which has "distanceFare_m" parameter. Is this different from the "monetaryDistanceRate" parameter in "modeParams"?

The monetaryDistanceRate is based on the distance written into the (pre-computed) route of an agent's leg. For taxi (and other dynamic modes), these routes are calculated on the spot and thus the information in the pre-computed leg is not very accurate. The taxifare module circumvents this by measuring the actually driven route. In a way, it works like a taximeter :-)

Lichen-L commented 5 years ago

Hi Mr.Bischoff,

Thank you for your answers, you perfectly clear up my doubts.

Lichen