Statistical Data Collectors

An Extended Example

The Report

   
 

The model report now includes a section each for the Accumulate, Tally and Histogram objects where they list their results.


StatisticsExampleExperiment Report

Model StatisticsExample

Description
This is a simple process-oriented model of the railway station inside a container terminal using bins to represent different storage areas. Container ships arrive at the terminal and deliver containers to the storage areas. From there they are loaded onto trains that leave for four different destinations: Northern, Central, and Eastern Europe and Germany. Each destination is allocated a storage area (Bin). Trains only load containers from the storage area that is associated with their destination whereas ships deliver containers to all storage areas.
In addition to the two counters from the CountExample model, several other data collectors are added: a tally to record the average time a trains needs to wait for containers, an accumulate to calculate the mean storage load level of the four storage areas, a time series to log the storage load level of the Northern Europe dedicated storage area, and a histogram to record a distribution of ship sizes. Report drawn at 1500.0. Last reset at 0.0.


Accumulates

Title
(Re)set
Obs
Mean
Std.Dev
Min
Max
storage load level0.03681293.69475318.064320.02541.0


Tallies

Title
(Re)set
Obs
Mean
Std.Dev
Min
Max
train wait time0.034311.240173.483620.034.53995


Histograms

Title
(Re)set
Obs
Mean
Std.Dev
Min
Max
ship size0.0250822.44212.17735388.01505.0

Cell
Lower Lim.
n
%
Cum. %
|
Graph
0-Infinity00.00.0|
1200.000.00.0|
2320.0104.04.0|***
3440.0197.611.6|****
4560.03714.826.4|********
5680.04819.245.6|**********
6800.05722.868.4|************
7920.04417.686.0|*********
81040.0228.894.8|*****
91160.083.298.0|**
101280.031.299.2|*
111400.020.8100.0|*


Counts

Title
(Re)set
Obs
Current Value
Min
Max
number of trains0.03431343103431
number of containers0.034312056850205685


Bins

Title
Order
pass
(Re)set
Prod
Cons
Init
Max
Now
Averg.
avg.Wait
QLimit
QMaxL
refus.
Eastern EuropeFIFOno0.0250853509825476.68291.24983unlimit.10
Northern EuropeFIFOno0.025088050916076.502061.19614unlimit.10
Central EuropeFIFOno0.0250822506036966.305631.3146unlimit.10
GermanyFIFOno0.025087650745274.204161.20516unlimit.10


Distributions

Title
(Re)set
Obs
Type
Parameter 1
Parameter 2
Seed
Ships Arrival Stream0.0251Negative Exponential6.0 91080577
No of containers per destination0.01000Integer Uniform25.0400.071529105
Train Length Stream0.03435Integer Uniform30.090.043946618

The TimeSeries object has written its output to a log file. We named it StatisticsExample_LoadLevelNorth.txt when initialising the time series. It contains row after row of semi-colon separated pairs of values: the simulation time and the current storage load of the Northern Europe bin.

You may download the full source code of this example if you want to try it out yourself.



   
  http://desmoj.sourceforge.net/tutorial/statistics/extended3.html