Professional Documents
Culture Documents
.
This model fits quite nicely in discrete or semi-discrete systems
where all or some of the variables are stochastic.
TimeNow = 0
QSize = 0
ServerBusy = False
Read SimulationTime
NextArrivalTime = Random_fa ()
NextDepartureTime = SimulationTime+1
p
A C
p 2
p 3 D
Suppose you want to simulate the above system. This will involve
the processing patterns at each centre together with the arrival
and departure processes. Let us look into the departure process
at A. Leaving A, the job could be placed at B, C or D with
probabilities p1, p2 & p3 respectively. To decide which centre may
be chosen we generate a random number (x) between 0..1, then
use the following simple algorithm
Note that the results you would obtain using any simulation
technique, Monte-Carlo included, will be as good as the model
you started with. In other words, bad models will produce bad
results.