Both inter-arrival and unloading times taken from discrete distributions.
Couple things to notice:
Model page contains the 'model;' i.e.,
the variables and their relationships with each other.
Model represents one possible future of 20 barges arriving.
Inter-arrival and unloading times are determined through random numbers.
The translation of each random number is covered on
the Distributions page.
The mapping of the random number to the inter-arrival
time or unloading time on the Model is done through a VLOOKUP.
The Multiple Run page simulates 50 runs of the
model; i.e., 20 barges each ==> 50 alternative futures.
F9 runs the entire spreadsheet ==> 50 alternative futures of 20 barges
arriving.
Notice how through simulation we get some idea of the
variation of performance data.
Simulation 2: However, in reality barge arrivals and unloading do not follow a
discrete probability distribution; instead, they follow a continuous distribution.
Both inter-arrival and unloading times taken from negative exponential distributions.
Both continuous distributions still 'honor' the discrete (observed) data.
Excursion: how can we make
a negative exponential distribution from discrete data?
Equation for negative exponential distribution:
P = 1 - e−μt where:
μ = mean service rate
t = service time
ln(1 - P) = ln(e−μt)
ln(1 - P) = -μt ln(e)
ln(1 - P) = -μt
-t = 1/μ ln(1 - P)
1/μ = mean service time ==> can compute from discrete data:
1/μ = Σ{t * P(t)} / n ==> see Distributions sheet
Replace P with a random number between 0 and 1
==> (1−P) becomes a random number between 0 and 1.
In the Model, replaced VLOOKUP with
mean service time (1/μ) * ln(random number between 0 and 1): LN(RAND()).
Check to see if we indeed get negative exponentially distributed numbers:
Copy (Paste Values...) the Model numbers to a new sheet.
Do a few more runs (F9) and add Multiple Runs data to the new sheet.
Make a histogram of the new sheet data ==> hey presto!
Homework Simulation: Note that the above examples of
barge unloading have no capacity component; i.e., barges get served, one after another
but the models do not offer ways to experiment with increasing or reducing capacity. The
simulation model you work
with in your homework DOES have capacity built in, and you are asked to use the model
to decide whether or not to increase process capacity.
Test Questions:
What are some of the advantages and disadvantages of simulation?
Explain why both physical and computational simulation models are 'models.'
What do we mean with the term 'Monte Carlo simulation'? How is a Monte carlo simulation different
from a scenario simulation?
What does a simulation model give you that a waiting line equation does not give you?
Which of the barge unloading models must be preferred? The
discrete one or the continuous one? Why?
Suppose you have a simulation model but you do not like its
outcomes. Could you not keep running it (try new combinations of random values) until you find a case that you like better?