0% found this document useful (0 votes)
2 views

Lecture9

This lecture covers the concept of simulation as a modeling tool, explaining its benefits, drawbacks, and appropriate use cases in business scenarios. It emphasizes the importance of variability, interaction, and complexity in systems suitable for simulation, particularly through discrete-event simulation for modeling queuing systems. Additionally, it discusses the generation of random numbers to represent variability in simulations and provides practical exercises using Excel for modeling customer orders.

Uploaded by

fakespam690
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Lecture9

This lecture covers the concept of simulation as a modeling tool, explaining its benefits, drawbacks, and appropriate use cases in business scenarios. It emphasizes the importance of variability, interaction, and complexity in systems suitable for simulation, particularly through discrete-event simulation for modeling queuing systems. Additionally, it discusses the generation of random numbers to represent variability in simulations and provides practical exercises using Excel for modeling customer orders.

Uploaded by

fakespam690
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 16

LECTURE 9 - SIMULATION

9.1 Introduction

By the end of this lesson you should check that you can:
 explain what a simulation is
 say why and when simulation is appropriate for use as a modeling tool
 describe the benefits and drawbacks of using simulation
 use random number tables to represent variability within a simulation model
 use simulation to design a simple decision aid
 explain the steps in simulation study
 explain what is meant by Visual Interactive Simulation (VIS)
 say what benefits can be achieved by using VIS.

Simulation is a way of using a model to imitate the behaviour of a particular situation. Many of you
will be familiar with video and computer games (if only because your son or daughter occupies
your PC with them!), flight simulators, model railways and business games. All these are
examples of efforts to mimic the real (and sometimes the fantasy) world. However, they are just
that – mimics – not the real thing.

In the business world, simulation is often used to study business operations. For instance, one
may want to mimic the workings of an assembly line of an automotive plant or the operation of a
call centre or some business service such as a bank. Simulation can also be used to mimic
business processes such as handling insurance applications or to model transport systems such
as freight coming into and out of a port.

Simulation involves a series of inputs, or data that go into a simulation model and the model
converts those inputs into some outputs, which indicate the behaviour of the real world system.
Therefore, a manager can experiment with different courses of action, by changing the inputs,
and the simulation provides an indication of the likely outcome. As a result, the manager gains a
better understanding of reality and is able to identify more appropriate courses of action to
undertake than would otherwise be the case. That is, he or she can make better, more informed,
decisions. Examples of some inputs and outputs are given in Table 6.1 below.

AHA – Lecture 9 1
Usually one experiments with the simulation model by asking a series of ‘what if’ questions and
getting the model to evaluate the likely outcomes. The simulation does not seek to provide the
best, or optimum, solution. It simply informs the modeller of the likely consequences of selecting a
particular combination of inputs. As examples of the use of simulation, Ford Motor Company used
simulation to aid in the planning and design of their Zetec engine plant in South Wales. This
represented an investment of some £500 million and Ford estimated that the simulations resulted
in increased output of about 30%. British Airports Authority (BAA) used simulation modelling to
help plan the train car requirements for the transit system at Stansted Airport and as each train
car cost £2 million it was obviously important to develop an efficient system of operations. The
same BAA model was also adapted for use at Hong Kong’s new airport for planning train car
requirements.

Characteristics of situations
Where simulation is a useful tool almost any business situation can be modelled and analysed
using simulation. However, in particular, simulations are best suited to situations where there is:
 Variability – This may be predictable (for example, the time to set up a machine) or
unpredictable (for example, the number of customers arriving). This is what Pidd refers to
as a dynamic system.
 Interaction – Components in the system interact with each other. For instance, the
number of customers arriving at a bank interacts with the number of tellers that are
serving and with the time it takes for a teller to serve a customer. Depending upon how
these interact, one gets shorter or longer queues in the bank. That is, these components
produce the distinctive behaviour of the particular system being considered.
 Complexity – There is interaction between not just two or three elements, but between
many elements of the real situation. Often interaction between a small numbers of
elements in a system can be modelled analytically (for example, a single queue being
served by a single server). A system of many interactions may be impossible to model
analytically and may lead to behaviour that is unpredictable or that is difficult, if not
impossible, to foresee from consideration of the individual elements in isolation.

AHA – Lecture 9 2
Developing a simulation model is time consuming, especially for complex operations.
Consequently, it is an approach that tends only to be used when other modelling methods are not
applicable.

9.2.1 Appropriateness of Simulation


 Simulation makes it possible to study and experiment with the complex interactions of a given
system whether it be a firm, an industry, or some sub-system.
 One can study the effects of certain information, organizational, and environmental changes
of the operation of a system by making alterations in the model of the system and by
observing the effects of these alterations on the system’s behavior.
 A detailed observation of the system being simulated may lead to a better understanding of
the system and to suggestion for improving it.
 Simulation analysis can be performed to verify analytical solutions.
 When new elements are introduced into a system, simulation can be used to anticipate
bottlenecks and other problems that may arise in the behavior of the system.
 The experience of designing a computer simulation model may be more valuable than the
actual simulation itself. The knowledge obtained in designing a simulation study frequently
suggests changes in the system being simulated. The effects of these changes can be tested
via simulation before implementing them on reality.
 Simulation of complex systems can yield valuable insight into which variables are more
important than the others in the system and how these variables interact.
 Simulation can be used as a pedagogical device for teaching both students and practitioner’s
basic skills in theoretical analysis, statistical analysis, and decision making.
 Simulation enables one to study dynamic systems in either real time, compressed time, or
expanded time.
 Simulation can be used to experiment with new situations about which we have little or no
information, so as to prepare for what may happen.
 Simulation serves as a precise test to try out new policies and decision rules for operating
system, before running the risk of the real system.

Advantages of simulation
 When mathematical analysis methods are not available, simulation may be the only
investigation tool
 When mathematical analysis methods are available, but are so complex that simulation may
provide a simpler solution
 Allows comparisons of alternative designs or alternative operating policies
 Allows time compression or expansion

Disadvantages of simulation
 For a stochastic model, simulation estimates the output while an analytical solution, if
available, produces the exact output
 Often expensive and time consuming to develop
 An invalid model may result with confidence in wrong results.

9.2.2 Discrete-event simulation


Discrete-event simulation is just one form of simulation. Other forms are continuous simulation,
discrete-time simulation (e.g. Emulation, Monte Carlo, Trace Driven, etc) and system dynamics.
However, it is discrete-event simulation that concerns the main subject of this lesson. It involves
modelling a system as time progresses. It is particularly useful for modelling queuing systems.

There are many examples of queuing systems, for instance:


 patients waiting at an out patient department at a hospital
 vehicles queuing at a roundabout
 components queuing on an assembly line conveyor belt

AHA – Lecture 9 3
 machines waiting for maintenance
 telephone calls arriving at a service centre
 passengers queuing to check in at an airline desk.

Very many systems can be regarded as having a queuing structure and as such they are
appropriate for discrete-event simulation. Just take a few minutes to think about a ‘typical’ day in
your life and see if you can identify situations where you may have to queue or wait. For instance,
this may be almost from the first moment when you get up and have to queue to use the family
bathroom (an all too familiar experience if you have teenage children!), or waiting at traffic lights
on your way to work, or queuing at lunchtime to pay for a sandwich. It should not take long for
you to identify well over a dozen instances in a day when you may have to queue.

One of the major aspects of discrete-event simulation is that it is able to model random events
based on both standard and non standard distributions. You already know about the normal
distribution as an example of a standard distribution. However, it should be clear from the reading
that you can also use non standard distributions based on collecting past data upon the
frequency of events (for example, the number of patients per day that are referred to a hospital
unit).

9.3 How to model variability


Suppose customers arrive at a burger bar and order anything between one and six burgers each
(depending upon the size of the group they are with and their appetite!). How could we model this
situation? One way to do this would be to throw a die – whichever face comes uppermost would
indicate the number of burgers ordered by the next customer. Of course, this approach has its
problems. Firstly, there is the same probability of a customer ordering 1 burger as ordering six
burgers (the faces of the die are all equally likely to turn up). In reality it is unlikely that this is true.
Secondly, as simulation models are usually computer based models (because of their complexity)
we have the problem that, clever though computers may be, they cannot physically throw a die!

Therefore part of the way round these problems is to collect actual data on how frequently people
buy different numbers of burgers. If we do this, then suppose we obtain the following information:

As can be seen, people often order three or four burgers, although orders for other numbers also
occur from time to time. Armed with the above information we can now make use of random
numbers to help solve the remaining part of our problem with our simulation of this ordering
process. Random numbers are a sequence of numbers, normally on a scale of 0 to 99 (integer)
or 0 to 1 (real), which occur in a random or haphazard sequence. They possess three important
properties, which are that they are:
 uniform – there is the same probability of any number occurring

AHA – Lecture 9 4
 independent – once a number has been chosen it does not influence the chance of it
being chosen again
 computer generated – most PCs have a random number generator available that can be
used in some software (for example, the Rand() function in Excel).

A good way to mimic the generation of random numbers would be to write each of the numbers
from 0 to 99 on 100 pieces of paper and put the paper pieces into a hat. One piece of paper is
picked out at random (that is, after the pieces have been given a good shuffle). The number on
that piece of paper is our first random number. It has a one in 100 chance of being chosen. If that
piece of paper is returned to the hat and a second piece drawn out, then the number on that
second piece constitutes the second random number. It also has a one in 100 chance of being
chosen (because we put the first number back in the hat). You could continue on all day pulling a
number out of the hat, noting it, and putting it back. At the end of the day you would find that if
you counted up how many times you had pulled each number out of the hat, then you would end
up with something like Figure 6.2.

Of course, you may not get exactly the same number of each integer if you try this and you might
get more of some and fewer of others. However, you would get the above diagram in the long
run. You can now see why we talk about random numbers being uniform – the distribution has a
uniform shape. We can also see from the hat analogy that choosing one particular random
number does not influence the number chosen on the next draw. Finally, random numbers are
computer generated since neither you, nor I, wants to stand round all day pulling numbers out of
hats.

In order to generate customer orders in the right proportion, random numbers are assigned in the
following way to the number of burgers that are ordered:

As can be seen, each number of burgers has the appropriate number of random numbers
allocated to it to reflect the frequency with which that number of burgers is ordered. So 20 of the
100 integer random numbers between 0 and 99 are allocated to two burgers (10 to 29), reflecting
the fact that this number of burgers are ordered 20% of the time. So you could go to a table of

AHA – Lecture 9 5
random numbers, pick a random start point in the table and, if the first number you pick is 58, this
then corresponds to an order of four burgers. If the second random number is 19, then this
corresponds to an order for two burgers, and so forth. Similarly, if we use real random numbers
(between zero and one) then the ranges allocated in the final column perform the same function.

9.3.1 Exercise
Use the random number tables on the last page, in conjunction with the above table of integer
random numbers, to complete the following table. You should use the random numbers from the
first column (commencing top left).

You should have chosen the random numbers 89, 31, 49, 9, 41, 70, 26, 95, 32 and 92 and these
correspond to 5, 3, 3, 1, 3, 4, 2, 6, 3 and 5 burgers respectively. Therefore, you should get a total
of 35 burgers, which gives a mean of 3.5 burgers per order. Now have another go, but choose a
different column of random numbers.

What do you notice about the mean you calculate now?


You will probably find that the mean of your second simulation is different to the mean of 3.5 that
you got from the first simulation. That is because your second simulation involved a different set

AHA – Lecture 9 6
of random numbers which will have given rise to a different number of burgers. This indicates a
facet of simulation. That is, we do not obtain an answer that is exactly correct. The answer should
lie close to the truth and will tend to lie closer to the truth the more random numbers we have
used. We will return to this point about accuracy in the next lesson.

You should find, however, that your mean number of burgers ordered is something close to 3.3.
In fact, it is very likely to lie in the range 2.5 to 4.1. This is because the mean of the distribution of
burgers is 3.3 (you can check this if you like) and we would expect our little simulation to give
results similar to what has been observed in the past. There would be something wrong with our
model if it did not! (If you are wondering why you are likely to get a result for the mean in the
range 2.5 to 4.1, then think about confidence intervals. The range 2.5 to 4.1 is a confidence
interval upon the mean of 3.3 for a random sample of size 10 taken from our distribution of burger
orders. So, you are very likely, but not certain, to get a result in this range.)

However, as mentioned, doing this by hand is tedious, especially if we want to simulate what
happens on many, many occasions. So we computerize this process. Spreadsheet software such
as Excel can be used to generate random numbers and, depending upon the number generated,
determine the appropriate number of burgers to which the generated random number
corresponds.

9.3.2 A digression – the use of Excel


You can use your spreadsheet to try out the burger bar example on it. Given here are the
instructions for using Excel. If you use a different spreadsheet package then you will need to
determine your spreadsheet’s equivalent instructions to those given here if you wish to
computerize your model.

In Excel, typing the expression =Rand() in a cell in a spreadsheet generates a random number in
the range 0 to 1 in that cell. So, for instance, in a spreadsheet in cell A1, typing the expression
=Rand() generates a random number in the range 0 to 1 in cell A1.

To generate a whole series of random numbers in a column, simply copy the =Rand() expression
into the necessary cells in the column.

You can then use an IF statement to determine what value to put in another cell such that the
value is dependent upon the random number that has been generated. These IF statements have
the general form:
=IF(condition, value if condition true, expression or value if condition false).

Examples of IF statements and what they do are given below. In each case it is assumed that cell
A1 contains a random number and that the IF statement is typed in cell B1.

AHA – Lecture 9 7
9.3.3 Back to the burger bar!
Let us return to the example of the burger bar.

9.3.4 Exercise
Use Excel (or your own spreadsheet) to generate a random number in cell A1 (type Rand() in cell
A1). What we are now going to do is to use the IF function in Excel to store a value in cell B1 that
indicates the number of burgers that have been ordered, based on the random number in cell A1.
So, for instance, if the random number in cell A1 is less than 0.10, then we want Excel to put a
figure 1 in cell B1 to indicate that 1 burger is ordered. If the random number in cell A1 is greater
than or equal to 0.10 but less than 0.3, we want Excel to return a value of 2 in cell B1 to indicate
two burgers are ordered and so forth (refer back to the earlier table giving the number of burgers
and real random numbers).

To do this, type in cell B1 the following expression:


=IF(A1<0.1,1,IF(A1<0.3,2,IF(A1<0.55,3,IF(A1<0.80,4,IF (A1<0.95,5,6)))))

This will return the appropriate number of burgers in cell B1 corresponding to the real random
number generated in cell A1.

This statement can be unravelled as follows:


If the value in cell A1<0.1 then store 1 in B1.
If the value in cell A1 is not <0.1 (that is, it is 0.1 or greater) then evaluate if A1<0.3.
If A1<0.3 (but A1>=0.1) then store 2 in B1.
If A1 is not <0.3 (that is, A1>=0.3) then evaluate if A1<0.55.
If A1<0.55 (but A1>=0.3) then store 3 in B1.
If A1 is not <0.55 (that is, A1>=0.55) then evaluate if A1<0.80.
If A1<0.80 (but A1>=0.55) then store 4 in B1.
If A1 is not <0.80 (that is, A1>=0.80) then evaluate if A1<0.95.
If A1<0.95 (but A1>=0.80) then store 5 in B1, otherwise (if A1>=0.95) then store 6 in B1.
If you now copy the contents of cells A1 and B1 down several rows of the A and B columns you
will get a series of random numbers in the A column and values between 1 and 6 in the B column
that represent the number of burgers ordered. Again if you calculate the mean number of burgers
ordered (the mean of the B column) you ought to get something close to 3.3. An example is given
below. Obviously your own results may be slightly different since you will have different random
numbers and, therefore, a different number of burger

AHA – Lecture 9 8
Note that any changes you make to the spreadsheet will result in a new set of random numbers
being generated and a new set of values for the number of burgers and, obviously, a new mean
number of burgers. (If you wish to try this deliberately, then press the F9 key to generate a new
set of random numbers.) As before, you should find that your mean varies around 3.3 but may not
be exactly equal to it. Of course, what we have done here is to simulate only part of what goes on
at the burger bar. In practice we would add additional entities, activities and processes. For
instance we have indicated nothing about the rate at which people arrive at the burger bar to
place an order. Nor have we indicated anything about the time it takes to fulfill an order for a
particular number of burgers or the number of people that are involved in fulfilling these orders
(the number of servers). To get a more complete picture of what is happening we would need to
add in these processes to our simulation. We could consider issues such as whether we should
have a single queue of customers that are served by one of several people once they get to the
head of any queue, or do we have a separate queue for each server. We would also need to
consider aspects such as balking (arriving but failing to join a queue, possibly because it is too
long) and reneging (arriving and starting to queue but then leaving, perhaps because one has
waited long enough). As you can see, even quite a simple scenario starts to become complex
when we consider the different inputs and entities in a system. However, if we capture all these
aspects using a computer simulation, we can then begin to address issues such as what would
happen if we added an extra person to those serving the burgers? How does it affect the time
people wait in the queue? How does it affect the amount of time the servers are standing around
with nothing to do? Answers to these questions can help us to make decisions about the value of
hiring extra servers, for example. You will have an opportunity to build up some (small) simulation
models if you attempt the questions at the end of this lesson. This will introduce you to the idea of
combining several processes together to see the effects of the interaction between them. As
mentioned above, simulation by hand is not practical for anything other than very simple models.
Most simulations are performed on a computer using a simulation language to construct the
model. If you have undertaken the above exercise you will see how easy it is to run the simulation
once the basic model has been set up. Modern simulations tend to be both visual and interactive.

9.3.5 Exercise

The management of company is considering the question of marketing a new product. The
investment or the fixed cost required in the project is Kshs. 5,000. There are three factors which
are uncertain viz. the selling price, variable cost and the annual sales volume. The product has a
life of only one year. The management feels as follows about the various possible levels of these
three factors:

Selling Price Probability Variable Cost Probability Sales Volume Probability


(Kshs) (Kshs) (Units)
4 0.3 2 0.1 3,000 0.2
5 0.5 3 0.6 4,000 0.4
6 0.2 4 0.3 5,000 0.4

Apply Monte Carlo simulation to assess the average profit from the said investment on the basis
of 25 trials (use the random numbers below). (Hint. Profit = (Price-cost)*(volume) – (Kshs. 5000)

Solution
Step 1: Deduce the random numbers

AHA – Lecture 9 9
Step 2: Allocate the random numbers

9.4 Steps in a simulation study

Model
No
conceptualization Experimental
Design

Setting of Yes
Problem objectives Model Yes
Verified? Validated? Production runs
formulation and overall translation
project plan and analysis
No
Yes Yes
Data No More runs?
collection
No

Documentation
Implementation and reporting

AHA – Lecture 9 10
9.4.1 Problem Formulation
A statement of the problem
 the problem is clearly understood by the simulation analyst
 the formulation is clearly understood by the client

9.4.2 Setting of objectives and overall project plan


Project Proposal
 Determine the questions that are to be answered
 Identify scenarios to be investigated
 Decision criteria
 Determine the end-user
 Determine data requirements
 Determine hardware, software, & personnel requirements
 Prepare a time plan
 Cost plan and billing procedure

9.4.3 Model conceptualization

Real World System • Abstract essential features


– Events, activities, entities, attributes, resources, variables,
and their relationships
– Performance measures
Assumed system – Data requirements
• Select correct level of details (assumptions)

Levels of Detail
• Low levels of detail may result in lost of information
and goals cannot be accomplished
Conceptual model • High levels of detail require:
• more time and effort
• longer simulation runs
• more likely to contain errors
Logical model

9.4.4 Data collection


 Collect data for input analysis and validation
 Analysis of the data
o Determine the random variables
o Fit distribution functions

9.4.5 Model translation


Simulation model executes the logic contained in the flow-chart model

Coding

General Purpose Language Special Purpose Simulation Language/Software


Examples: Examples:

9.4.6JAVA,
Model verification
C++, Visual BASIC and validation SIMAN, SIMUL8, ARENA

AHA – Lecture 9 11
 Verification: the process of determining if the operational logic is correct.
o Debugging the simulation software

 Validation: the process of determining if the model accurately represents the system.
o Comparison of model results with collected data from the real system

Real World System

VALIDATION Conceptual model

Logical model

VERIFICATION

Simulation model

9.4.7 Experimental design


 Alternative scenarios to be simulated
 Type of output data analysis (steady-state vs. terminating simulation analysis)
 Number of simulation runs
 Length of each run
 The manner of initialization
 Variance reduction

9.4.8 Analysis of results


 Statistical tests for significance and ranking
o Point Estimation
o Confidence-Interval Estimation
 Interpretation of results
 More runs?

9.4.9 Documentation and Reporting


 Program Documentation
o Allows future modifications
o Creates confidence
 Progress Reports
o Frequent reports (e.g. monthly) are suggested
o Alternative scenarios
o Performance measures or criteria used
o Results of experiments
o Recommendations

9.5 Visual Interactive Simulation

AHA – Lecture 9 12
Visual Interactive Simulation (VIS) was a phrase first introduced in 1976. VIS was a huge
advance for simulation in that previously simulation models tended to be ‘black boxes’ that were
built and used by an expert modeller. The client remained largely ignorant of the inner workings of
the ‘black box’ and so it was difficult for the modeller to establish the credibility of the model with
the client. Once visual animation was introduced into simulations this began to make them more
‘real’. By visual animation, we mean that you see an animated display on the computer screen
when a model actually runs. In our example above it might be a number of burgers being passed
to a customer as a consequence of an order. The computer screen may also show a record of
how many burgers had been ordered each time. Both the model builder and the client can view
the results of the simulation as it progresses. An example of such a screen is included below and
this represents a simulation of calls to a service facility.

Furthermore, the purpose of VIS is not just to provide a portrayal of the model but also to enable
interaction with the simulation as it runs. A simulation is interactive if it can be stopped at any
point to obtain information about what is going on and to change aspects of the model. Thus VIS
consists of two aspects that make it different to traditional simulation:

1. It is visual
An animated display of the running model is capable of showing the following:
 Elements moving between locations, for example, people arriving to queue for a burger
or biscuits moving along a conveyor belt towards a packaging machine.
 Elements changing state being represented by different colours, for example, a broken or
unoccupied supermarket till is displayed in red and working tills are displayed in green.
 Results shown in graphical and tabular forms by making use of time-series, pie charts
and histograms.

2. It is interactive
The simulation is built up as a series of small steps. Runs are carried out at each stage in order to
check that the model performs correctly (for instance, in the burger example we can check that
our simulation produces an average order of 3.3 burgers, or something close to this).

Once the model is complete, experiments can then be conducted by running the simulation. Part
way through a run the model may be interrupted, changes made to the logic and the run
continued. For instance, a lunchtime peak in demand at our burger bar could lead to excessively

AHA – Lecture 9 13
long queues with long waiting times for customers. Interaction with the model means that
additional people serving burgers can be put in place for this peak period and the run continued
to see the effect of undertaking this change. The benefits of the visual and interactive elements
for both the model builder and the client are:
 a greater understanding and awareness of the model and the processes involved
 improved understanding of the results
 a reduction in the credibility gap between the model builder and the client
 improved communication about the simulation process between the people involved
 simpler model validation (one can see where a model is going wrong)
 easier and more appropriate experimentation
 the ability to use the simulation as a training tool for operations staff.

9.5.1 Why simulate?


The sorts of benefits that are mentioned when users are asked about
the effects of using a simulation are:
 risk reduction
 greater understanding
 operating cost reduction
 lead time reduction
 faster plant changes
 capital cost reduction
 improved customer service.
In some situations there is a choice between using methods such as mathematical modelling and
real life experimentation and using simulation. Sometimes mathematical modelling or real life
experimentation are the most appropriate approaches. However, simulation is able to tackle a
wider range of issues. There are also several business and commercial reasons for using
simulation in preference to these alternative approaches. These were largely covered in Lesson 2
in the section about why one wishes to model and they are only mentioned briefly here as a
reminder.

9.5.2 Simulation vs real life experimentation


There are a number of very obvious reasons why simulation is preferable to experimentation.
 Cost. Real life experimentation, such as hiring new people or installing an additional machine,
can be very costly. In a simulation the only cost incurred is that of the time taken to modify the
model and undertake the experimentation.
 Repeatability. Repeatedly using the same set of random numbers in a simulation model
means alternative scenarios can be tested under the same conditions. For instance, the
arrival of people at a burger bar can be repeated to test the effect of a different number of
people serving burgers or a different number of cooks. In this way we are comparing like with
like. This is almost impossible in a real life experiment as exactly the same conditions (for
example, arrival pattern of people) are unlikely to be repeated.
 Control of the time base. A real life experiment may take days, weeks, months or even years
to collect the results. A simulation of the same situation can be run in a matter of minutes.
 Legality and safety. Hiring and firing additional people has certain legal consequences in real
life which are not relevant to simulations. Also certain operational changes may be hazardous
in real life (to nuclear plants, for instance).

9.5.3 Simulation vs mathematical modelling


A disadvantage of simulation is that it can be quite complex and time consuming to undertake
and in most instances mathematical models will be quicker than simulation. However, there are
times when simulation should be used in preference to mathematical modelling. Indicated below
are some of the issues that need to be considered when making the decision about whether or
not to use simulation.

AHA – Lecture 9 14
 Non Standard (or empirical) distributions. Many mathematical models rely on the use of
theoretical distributions (for example, the normal distribution). Whilst historical data may have
been recorded (for example, on daily demand levels for an item), a mathematical model
requires that this actual data is approximated by a theoretical distribution. A simulation model
may use distributions based on historical data or may use theoretical distributions.
 Dynamic and transient effects. Quite often one wants to know more than just the ‘typical’ or
‘average’ behaviour of a system. It becomes necessary to understand how a system behaves
under more extreme conditions (for example, what happens at periods of high demand and
not just what happens when demand is at average levels). Also it may be important to
understand what happens when occasional interruptions or temporary effects occur (for
example, a machine breaks down).
 Interaction of random events. A mathematical model does not usually inform you of what
happens when some random event occurs such as a machine breaking down. This is
because the model is usually incapable of indicating what happens as a consequence of the
‘knock on’ effects. A simulation can address these issues.

A final aspect that has not been mentioned previously is explored next.

9.5.4 The endorsement by management


A problem may be capable of being analysed using some approach other than simulation.
However, the ability of management to view the model and understand what is happening is likely
to result in greater acceptance of the results and for those results to be endorsed.
 Simulation promotes total solutions. Sometimes localised solutions are introduced to solve a
problem that result in the problem being shifted elsewhere. How often do you hear someone
make a suggestion and have their suggestion countered by a phrase such as ‘but that will
cause problems for so and so’ only to have that response countered with ‘but that’s their
problem’. A VIS system is capable of pointing out such issues (providing a total system has
been modelled and not just part of it).
 Simulation fosters creativity. A fear of failure may discourage an employee from suggesting a
potential improvement, especially if the consequent change is costly. However, a simulation
means such ideas can be explored cheaply and with very little in the way of consequences
(for the company or the employee!). ‘What if…’ questions and ‘How about if we…’ questions
are encouraged.
 Simulation makes people think. The very process of building the simulation model makes
people begin to think about the processes involved in a system. The simulation itself may
come up with results that they then say they could have anticipated. However, they would not
necessarily have thought through some of the issues if the simulation model had not been
constructed and the simulation performed. Furthermore, it is inevitable that some results
obtained by the simulation cannot be predicted in advance of building the model – but it
would not be a very good model if it did not tell you something that you already knew
occurred!
 Simulation enables the effective communication of good ideas. Visuals often help to promote
understanding in a way that words do not. We all know the phrase ‘a picture paints a
thousand words’. In the same way, VIS can show the benefits of a change to a system in a
way to which managers can easily relate.

9.5.5 VIS software


VIS software falls into two fundamental categories, that of ‘simulation languages’ and that of
‘simulators’. Simulation languages require programming skills but can tackle the more complex
problems. Simulators require less in the way of programming skills but are not capable of
handling the same level of complexity as simulation languages. Nevertheless simulators are good
enough to handle most business applications. The commercial software available to enable
people to build such models (examples being Simul8, Microsaint, Extend, Witness, Arena,
ProModel and ModSim III) vary in cost from around £300 to £20,000 to buy.

AHA – Lecture 9 15
However, we shall content ourselves here in this lesson with making use of Excel to illustrate
some of the simulation approaches. There is much more to this subject than buying a simulation
package and learning how to use it. There is also the issue of being able to apply the concepts of
simulation in a scientific manner to a sensible formulation of a problem.

9.5.6 Problems with simulation


There are three main problems that one encounters in simulations and in building simulation
models. These are:
 accuracy
 starting state
 relevance.
We have already seen one example about the issue of accuracy when we looked at the burger
bar. We simulated the size of orders and then calculated the mean number of burgers per order
and got different means depending upon the random numbers that were chosen. This means that
the results of a single simulation run should not be taken as a definitive result. It is necessary to
consider the accuracy of that result. An associated issue is the length of the simulation. That is,
how many orders for burgers should we simulate before we have sufficient to represent what is
going on?

In addition, one needs to make some decision as to how to start the simulation in a typical state
or position. For instance, if part of the simulation involves looking at the amount of an item that is
to be put in some limited storage facility (for example, a warehouse, a silo), then we need to
assume something about the state of the storage facility at the beginning of the simulation. Is it
empty, full or somewhere in between? Finally, we also need to know if the simulation represents
the real situation. Is it producing the correct results?

AHA – Lecture 9 16

You might also like