matsim-org / matsim-code-examples

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

Bus scheduling #490

Open zdarovakoresh opened 3 years ago

zdarovakoresh commented 3 years ago

Hello!

I’m new to MATSim, but I realised it worth learning after I became convinced of its usefulness. I have downloaded the Berlin case, and I have GFTS data to update it. Now I want to test MATSim playing with some scenarios. Mainly, I want to try to obtain an optimal bus system. It could be done through better scheduling, rerouting, changing the number of buses or their capacity.

To do so, I need to change Strategy, SubtourModeChoice and ScoringParameters in Config file, right? Could you advise me some example classes to implement these? Or maybe there are some online examples? I know about MATSim user guide, I started reading it.

P.S. Thank you for providing an open Berlin case. It is really better to learn from real-life examples!

vsp-gleich commented 3 years ago

Hello, Strategy, SubtourModeChoice and ScoringParameters in Config only affect the agents (= passengers), not the transit schedules.

I think the closest to what you are looking for is the minibus contrib (for more details see https://depositonce.tu-berlin.de/handle/11303/4393) which creates a public transit system from scratch and tries to adapt to the passenger demand in an evolutionary way.

Otherwise you could write your own code to modify the transit schedule and run it in MATSim to see how the modified schedule performs in terms of modal shift from or to other modes, travel times etc.