There is a function that allows you to analyze the general statistics of multiple replications. You can use it calculate a.o. avg/min/max for the number of agents and travel time statistics. This function should make it possible to calculate the evacuation time over a number of replications.
To use this option you'll have to do the following:
- Open the interact window (Tools > 4DScript interact or Shift + F6)
- Use the function:
Code: Select all
[C:\My Documents\Pedestrian Dynamics\3.0 Official Release\PD_Results\Experiment1\],
p1: the path of the folder containing all runs for the experiment. Note that the path must be between square brackets
p2: the statistic type that you want to have. Available options are: STATISTIC_CONFIDENCEINTERVAL (one-sided), STATISTIC_PERCENTILE, STATISTIC_AVERAGE, STATISTIC_MAX, STATISTIC_MIN.
p3: statistics value (when analyzing confidence interval or percentile)
p4: replication number first run
p5: replication number last run
Executing this script in the interact window will give you a window with an overview that can be copied and pasted to Excel.
Your second question about updating the number of server queues dynamically can be done in different ways:
- Update the number of server queues on reset. However this will require some scripting as these server queues are internal elements that need to be created and connected in the right way. If you want I can provide the code to that, however you could also:
- Set a maximum to the number of server queues that you won't exceed. Then use only the number of server queues that are available according to your scenario setting. You can do that by changing the setting Queue Strategy to something like this (assuming you have table scenario settings with the max number of server queues to be used):
Code: Select all
IndexMin(GetScenarioSettings(1,1), Content(in(Count, c)))
See also attached example.