matsim-org / matsim-code-examples

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

Sharing extension fares and scoring #1168

Closed fadamidis closed 1 month ago

fadamidis commented 1 month ago

Hello, I was wondering about the sharing extension (shared_mobility contrib):

  1. If simulated shared vehicle services are somehow considered in scoring, especially in SubtourModeChoice. Is their scoring calculated based on the underlying mode (e.g. car for carsharing)?
  2. What is the impact of the service characteristics (base, time, distance fares) on the scoring of trips by shared services? i.e. how are the fares taken into account during scoring?

I was going through previous conversations and could not find an answer. I think that @sebhoerl or @balacmi could easily answer my questions- Thank you!

sebhoerl commented 1 month ago

Hi, scoring is basically independent of the sharing contrib. The underlying modes will be scored as if they had been used independently, so you can set up everything via configuration. Beyond that, you may write some handlers to integrate the specific sharing events for successful and missed rentals etc:

https://github.com/matsim-org/matsim-libs/tree/master/contribs/shared_mobility/src/main/java/org/matsim/contrib/shared_mobility/service/events

But there is no preconfigured code for that as far as I remember.

sebhoerl commented 1 month ago

Maybe here they actually did that, you could check back with them: https://www.sciencedirect.com/science/article/pii/S1877050923005823

fadamidis commented 1 month ago

That's clear. Thank you @sebhoerl for the explanation and the sources.