matsim-org / matsim-code-examples

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

within-day rerouting for public transit vehicles? #801

Open ikaddoura opened 1 year ago

ikaddoura commented 1 year ago

Hi everyone,

does anyone know about any applications in which the concept of within-day replanning is applied to transit vehicles? I want to change the behavior of transit vehicles (e.g. network route, departure times, ...) during (!) an iteration. A possible use case is a train/bus which needs to be rerouted because of an incident in the usual network route.

If there are any code examples, case studies, papers, etc. please share. I am also happy about an intuition, if this is rather easy or complicated to implement...

Thank you!

madspDTU commented 1 year ago

Hi Ihab,

No, I do not know of such applications. The only two studies that I can think of that does something remotely similar (https://www.sciencedirect.com/science/article/pii/S1877050920305056, https://www.sciencedirect.com/science/article/pii/S0965856421000665 ) do not reroute vehicles - only passengers (and my own contribution in fact never really runs matsim).

So sorry about the non-answer. Seems like a relevant topic.

Mads

neuma commented 1 year ago

Hi Ihab,

I am also not aware of any such application. The closest thing would be some experiments at VSP. In this rather simple approach, a controller adds some extra delay at transit stops as part of an control strategy to avoid/mitigate bus bunching. Implementation should still work by adding your own TransitStopHandler implementation.

However, there are some implementations you might be able to draw ideas from. The minibus contrib, for instance, reschedules vehicles, alters transit routes... but only does so from one iteration to the next one. Theres is no within-day replanning of routes. Drt, on the other hand, goes completely within-day by creating schedules for cars. Might be worth investigating if the drt can be used to also alter the plan of regular transit drivers.

ikaddoura commented 1 year ago

Hi Andreas,

thanks for sharing your thoughts on this.

Yes, the minibus contrib and the bus bunching study are very close but do not really help to solve my problem... and also the DRT approach seems too dynamic (no fixed departure times, no actual schedule, ...) and therefore too far away from my problem. In my case I still have a conventional schedule-based transit service in which only minor parts (e.g. the route) are altered from the original transit schedule...

Still, the pointers are very helpful to get some ideas... I will try to look into this when I have time.