-
Notifications
You must be signed in to change notification settings - Fork 179
faq 109079067
Billy Charlton edited this page Sep 5, 2018
·
2 revisions
by Enoch Lee on 2017-04-24 05:12:12
I am having network links with 'car' as the only allowed mode, and some with 'tram', or 'car,tram' as allowed mode. However, the trams are keep going through the links that were setup for car only (In reality, they are roads without a tram track). How can we stop the trams from passing through the car only link?
Thanks,
Enoch
by Marcel Rieser on 2017-04-25 09:14:49
I could think of 2 reasons this could happen:
- The trams just follow the specified network route in the transit schedule when serving the line. If the network route contains car-only links, the tram will not complain but just drive there. In this case, the specified network route in the schedule file needs to be fixed.
- The trams drive on the car-only links while travelling back to their start position between two services: If the same vehicle is used for multiple departures, and subsequent departures do not start on the link where the previous route ended, MATSim searches for a route for the vehicle to go to the correct departure link for the subsequent departure. Most likely, this route-search does not take the vehicles mode into account, resulting in the vehicle taking any link available. If this is the case, please let us know I would consider this a bug that should be fixed. In the meantime, it probably could be fixed by:
- making sure the end-link of a route is a tram-only link, and that there is a tram-only route from the end-link of one route to the start-link of the next route. In this case, the route-search should only find the one available tram-only route, but it might not be suitable for large scenarios with complex vehicle schedules.
OR
- using new vehicles for each departure.
- making sure the end-link of a route is a tram-only link, and that there is a tram-only route from the end-link of one route to the start-link of the next route. In this case, the route-search should only find the one available tram-only route, but it might not be suitable for large scenarios with complex vehicle schedules.
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq