Bit 2201 Simulation and Modeling
Bit 2201 Simulation and Modeling
b) Using the mid- square method obtain the random variables using Z0= 1009 until the
cycle degenerates to zero. (10 Marks)
b) Discuss five reasons why it is necessary to use animation during the process of
modeling and simulation. (5 Marks )
c) Discuss three reasons why it is not possible to perform experiment with a real system.
(3 Marks)
1
QUESTION THREE: 20 MARKS
a) There are two fundamental types of animation; concurrent and post-processed
Differentiate between the two types of animation. (4 Marks)
b) Describe the following terms giving examples from the traffic control systems.
(5 Marks)
i) State of a System
ii) State Variables
iii) Entity
iv) Attribute
v) Activity
d) Using the Linear Congruential Generator (LCG) with a=5, m=16, c=3 and seed Z0 = 7
to generate the first FIVE random variates on [0,1]. (5 Marks)
b) Not all simulation and modeling exercises are a success. Discuss five common pitfalls
to successful simulation. (5 Marks)
c) Consider a single server queuing system in the bank. The system starts at time t=0.
The arrival time of customers is: 0.4, 1.6, 2.1, 3.8, 4.0, 5.6, 5.8, and 7.2. The
departure times are: 2.4, 3.1, 3.3, 4.9, and 8.6. Time is in minutes. The first in first out
queuing discipline is followed. Simulate this system for six clients and estimate:
i) The expected average delay in the queue (3 Marks)
ii) The expected average number of clients in the queue at any time t (6 Marks)
iii) The expected utilization of server. (2 Marks)
2
c) The table below shows the probability distribution of container arrival per day at
Mombasa port.
0 0.13
1 0.17
2 0.15
3 0.25
4 0.20
5 0.10
The offloading rate per day follows the probability distribution given below. NB:
Offloading is done on FCFS basis.
1 0.05
2 0.15
3 0.50
4 0.20
5 0.10
Suppose the following are the random numbers of arrivals and random numbers
offloading.
Arrival Random No. 52, 06, 50, 88, 53, 30, 10, 47, 99, 37, 66, 91, 35, 32, 00
Offload Random No. 37, 63, 28, 02, 74, 35, 24, 03, 29, 60, 74, 85 90, 73, 59