Skip to content

faq 110562103

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

How do I make the starting time of an event important?

by Enoch Lee on 2017-07-11 06:48:52


Currently, the agent leaves home in a specified time, given by the endTime of the 'home' activity. However, what I would like to investigate in the simulation is the change in mode choice and departure time after some modification on the synthetic network. 

I am wondering if it is possible to fix the 'arriving time' for the agent of the second activity (first after leaving 'home'), and let the router determine the departure time from home?

Thank you for your kindly help.


Comments: 1


Re: How do I make the starting time of an event important?

by Dominik Ziemke on 2017-07-11 08:59:26

Hi Enoch,

see here and here for related discussion on activity start / arrival times.

For your specific problem, I would enable the TimeAllocationMutator, which allows agents to adjust their departure times, e.g. the home activity that you mention.

Then, you could, for instance, add to the agent's plan a dummy activity before the activity whose arrival time you want to fix, make this dummy activity very short (e.g. 1min) and give it the same location as the activity whose arrival time you want to fix. Then, you specify in the config an opening time of this dummy activity which covers only this one minute of the day.

Clone this wiki locally