ResetStats
General Action Statement
The Reset Stats statement returns the model simulation statistics to their original state. When a Reset Stats statement is encountered, all the statistics in the simulation are reset, not just the statistics for a particular Location or Entity.
Syntax
Reset Stats
Examples
If Total = 20 Then
{
Reset Stats
}
Suppose a model doesn't work at full efficiency when operations are first started because it needs some time to get up to speed. It takes about four hours after start-up for your model to start working at full speed. You have created your model to reflect this for the sake of authenticity, but you are only really interested in the statistics for what occurs when the model is up to speed. To achieve this result, define the statements...
{
If Clock(hr) < 4
Then Reset Stats
}
...in the chosen Location Logic. For the first four hours, every time an Entity entered the Location where the Reset Stats statement is defined, the simulation statistics are reset. After four hours have elapsed, the Reset Stats statement is no longer executed, since the Boolean expression of the If Then statement is no longer true. These statements ensure that the simulation statistics only include information for what occurred after the first four hours of the simulation.
For more information on the statements used in this example, see If Then Statements and Clock.