agentsoz / ees

Emergency Evacuation Simulator
MIT License
9 stars 6 forks source link

Allow simulation time step to be configured #26

Closed dhixsingh closed 6 years ago

dhixsingh commented 6 years ago

Currently there is no way to configure the timestep granularity for the EES simulation. It defaults to 1 second, i.e, each simulation loop corresponds to 1 second of simulated time. However, most models including MATSimModel allow this to be configurable. It would be nice to make this a parameter in the simulation config file so that it could be set to say 60 secs which might be sufficient for the BDI cognitive model (people after all hardly make per-second decisions).

dhixsingh commented 6 years ago

Also attaching some quick analysis of timestep vs runtime using

https://github.com/agentsoz/ees/blob/3207fdb7675dc0957d411faf8cfa78458e025a9b/src/test/java/io/github/agentsoz/ees/SurfCoastShirePopulationSubgroupsIT.java#L48-L54

with the timestep varied here

https://github.com/agentsoz/ees/blob/1677ec07793ffa777ec3e7f5dbd098a72d552aab/scenarios/surf-coast-shire/population-subgroups/ees.xml#L46

The result looks something like this on my machine:

timestep