Skip to content

faq 33521671

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

I want to prevent my agents from walking from their origin to their destination.

by Kai Nagel on 2015-08-22 14:32:48


(kn proxying for Zahra Navidikashani) 

Dear all,
I'm modeling a network of public transport lines, which is rather small (4kmX4km). However, I want to prevent my agents from walking from their origin to their destination. in other words I want them to take a bus, even though it might be worse than just walking the whole way. So, I was wondering if there is a way to do that? I tried to change the following parameter to kind of manipulate the agents by their utility but nothing happened
<!-- [utils/hr] additional marginal utility of traveling.  normally negative.  this comes on top of the opportunity cost of time -->
 <param name="traveling_walk" value="-6.0" />
<!-- [utils/m] utility of walking per m, normally negative.  this is on top of the time (dis)utility. -->
 <param name="marginalUtlOfDistance_walk" value="0.0" />
<!-- [utils/m] utility of walking per m, normally negative.  this is on top of the time (dis)utility. -->
 <param name="marginalUtlOfDistance_pt" value="0.0" />
<!-- [utils/m] utility of walking per m, normally negative.  this is on top of the time (dis)utility. -->
 <param name="marginalUtlOfDistance_other" value="0.0" />
Thank you very much.
Kind regards,



Comments: 1


Re: I want to prevent my agents from walking from their origin to their destination.

by Kai Nagel on 2015-08-22 14:33:39

(kn proxying for Andrés Felipe Gómez Moreno)

Hello Zahra,

I'm not completely sure if your are talking about transit walks or just the teleportation feature MATSim performs when an agent "walk", as far as I know. If you are trying to prevent agents to perform transit walks (actType="transit_walk" in the events file), you can do this by modifying the parameter "maxBeelineWalkConnectionDistance" inside the "transitRouter" module, in the configuration file. Add something like this, if you don't have it:

    <!-- maximum beeline distance between stops that agents could transfer to by walking -->
    <param name="maxBeelineWalkConnectionDistance" value="100.0" />

Hope this helps :)

Regards,

Felipe

Clone this wiki locally