Skip to content

faq 109079067

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

How to create car only links?

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


Comments: 1


Re: How to create car only links?

by Marcel Rieser on 2017-04-25 09:14:49

I could think of 2 reasons this could happen:

  1. 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.
  2. 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:
    1. 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
       
    2.  using new vehicles for each departure.
Clone this wiki locally