Topic 3 - Measuring Simulation Performance
Topic 3 - Measuring Simulation Performance
Performance of
Simulation Model
WMSU
• Where:
• Q = the number in the queue for a given length of time
• dt = Length of Time that Q is observed
• T = The Total Length of Time for the Simulation
(3) Time-Average Number in Queue
• The equation essentially calculates the total entity-time in the queue
that is observed during the simulation run divided by the total
simulation run time.
• In an entity customer simulation, this would correspond to the customer
waiting time by all of the customers that were waiting in line.
• Each period of time is calculated by multiplying the number of customers
waiting in line for the amount of time that number of customers waited in
line.
• A change in the number of customers waiting in line triggers the
beginning of a new period of calculation.
• At the end, all of the periods with customer-minutes are totaled and
divided by the length of the simulation.
(3) Time-Average Number in Queue
• Manual calculations of the time-average number in queue
are best handled by drawing a two-axis graph of the
system.
– The vertical Y axis records the number of entities in the queue.
– The horizontal X axis records the simulation time.
• A box is drawn at the number of entities in the queue for
the length of time that number of entities is in the queue.
(3) Time-Average Number in Queue
(1) The entity time is calculated by calculating the area of each
box, which is the number of entities waiting multiplied by
the ending time for that number of entities in the queue
minus the starting time for that number of entities in the
queue. || Number_of_Entities * (End Time – Start Time) ||
(2) The total area is calculated by summing all of the individual
areas.
(3) The time average number in queue is then calculated by
dividing the total area by the length of the simulation run.
(3) Time-Average Number in Queue
(3) Time-Average Number in Queue
(3) Time-Average Number in Queue
(3) Time-Average Number in Queue
Area = 5
(3) Time-Average Number in Queue
Area = N * (E – S)
Area = 5
(3) Time-Average Number in Queue
Area = N * (E – S)
Area = 5
(3) Time-Average Number in Queue
Area = N * (E – S)
Area = 5
(3) Time-Average Number in Queue
Area = N * (E – S)
Area = 5
(3) Time-Average Number in Queue
Area = N * (E – S)
Area = 16
Area = 5
(3) Time-Average Number in Queue
Total Area = 5 + 16
Area = 16
Area = 5
(3) Time-Average Number in Queue
Area = 16
Area = 5
(3) Time-Average Number in Queue
Area = 16
Area = 5
(3) Time-Average Number in Queue
Area = 16
Area = 5
(3) Time-Average Number in Queue
Area = 16
Area = 5
(3) Time-Average Number in Queue
Area = 16
Area = 5
(4) Resource Utilization
• Resource utilization is also a time-dependent statistic. At
any given time a single resource can be either idle or
busy.
– The idle state corresponds to a resource utilization level of 0.
– Naturally, the busy state corresponds to a resource utilization
level of 1.
• The length of time that the resource is either at a 0 level
or a 1 level is a function of the entities that come into the
system.
(4) Resource Utilization
• The first event is the arrival of the first customer, which occurs at 1 min after the
system starts.
• The service start is the second system event. Because there is no one else in
the queue, and the server is idle, the customer can immediately seize the resource
and begin the service time. This means that the service time also begins 1 min after
the system starts.
• The service end is the third system event. The service time for the first customer
was 2 min. This means that the service end occurs at 3 min.
• Note also that the system time or total time that the customer was in the system is
the service end or departure time of 3 min minus the arrival time of 1 min. (3 – 1)
Manual Simulation Example
• Interarrival times (In minutes): 1, 4, 2, 1, 8, 2, 4, 3
• Service times (In minutes): 2, 5, 4, 1, 3, 2, 1, 3
Arrival Number Arrival Time Begin Service Time End Service Time System Time
1 1 1 3 2
2 5 5
1+4+4+1
= 0.50
20
0+2+0+5+4+1+0+ 3+ 1
20
(4) Average Resource Utilization
2+5+4+1+3+1
= 0.80
20