Skip to content

faq 111543474

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

How can I make vehicles wait indefinitely?

by L Marquez on 2017-08-25 02:38:04


I am testing some road closure policies and I would like to get maximum waiting times and queue sizes for vehicles. Thus I would like vehicles to .wait indefinitely when they get stuck and not get teleported, aborted, or removed from their queue. Is this possible in Matsim? I have set "vehicleBehavior" to "wait" and "stuckTime" to 192800.00 but vehicles are still getting removed. Which additional parameters do I need to set? Thank you for your assistance.


Comments: 1


Re: How can I make vehicles wait indefinitely?

by Marcel Rieser on 2017-08-25 07:38:29

Setting the stuckTime to a very high value should do the trick, as long as you also specify an end time for the qsim. By default, the qsim ends once all agents have arrived at their last activity (or got removed due being stuck). If you set a very high value for stuckTime would just result in the qsim waiting a long time until this time has passed, and the agents would be removed then, and after that, the simulation would end. Thus, you need to end the simulation before that stuckTime, or the agents will still get stuck and removed.

At what time are the agents in your case being reported as stuck and removed? You could find out by analyzing the stuckAndAbort events.

Clone this wiki locally