Simulation Examples
Simulation Examples
Outline
The simulations are carried out by the following steps:
Determine the input characteristics.
Construct a simulation table.
For each repetition i, generate a value for each input, evaluate the
function, and calculate the value of the response yi .
Simulation examples will be given in queuing, inventory, reliability and
network analysis.
11
12
13
14
15
317
total service time (min)
=
= 3.17 min
total number of customers
100
415
sum of inter-arrival times (min)
Avg. inter-arrival time (min) =
=
= 4.19
number of arrivals 1
99
1+8
N.B. E[inter-arrival time] =
= 3.2min
2
Avg. service time (min) =
16
17
18
19
Profit
21
22
23
24
25
26
27
28
29
Summary
Introduced simulation concepts by means of examples and illustrated
general areas of application.
Ad-hoc simulation tables were used:
Events in tables were generated by using uniformly distributed random
numbers, and resulting responses were analysed.
Ad-hoc simulation tables may fail due to system complexities. More
systematic methodology, e.g., event scheduling approaches can do better.
Key takeaways:
A simulation is a statistical experiment and results have variation.
As the number of replications increases, there is an increased
opportunity for greater variation.
30