Skip to content

faq 107421099

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

If I want the agent simulation to go as fast as possible, given other agent's plans and that the max is the freespeed of that road, what should I put for the activity duration or end time?

by Celeste Manu on 2017-01-17 22:04:09


My goal is for the agents to travel as fast as they can given the free speed of the road, instead of specifying how long their trip will take....how can I do this?

I have a simple plans file:

<?xml version="1.0" ?>
 <!DOCTYPE plans SYSTEM "http://www.matsim.org/files/dtd/plans_v4.dtd">
 <plans>
 <person id="1">
 <plan>
 <act type="w" link="-1278_1" end_time="06:30"/>
 <leg mode="car"/>
 <act type="h" link="-1206_7"/>
 <leg mode="car"/>
 </plan>
 </person>
 </plans>


For the second activity, if I leave off an end time, put  end_time="06:31",  end_time="06:30", duration="1:00" etc...It takes all day for the agent to make it to the 2nd node. It should happen as fast as the freespeed of the road allows. 



Comments: 1


Re: If I want the agent simulation to go as fast as possible, given other agent's plans and that the max is the freespeed of that road, what should I put for the activity duration or end time?

by Johan W. Joubert on 2017-01-18 05:32:15

Celi, I am not quite sure exactly what you are trying to achieve. If you are only interested in getting the (theoretical) shortest time, why do it within the simulation, and not just calculating the route (ignoring congestion)? I mean, that will give you some lower bound on travel time, if that is what you are after.

Also, maybe just have a look, I think you need to drop the final leg. To my knowledge a plan should end with an activity.

My suggestion would be to just given the second activity in the plan, i.e. the destination, a start_time of 06:30... noting that I'm still not sure exactly how you want to interpret the final results.

Clone this wiki locally