Simulation
Simulation
Simulation
Definitions:
Simulation is a technique which describes a process by developing a model of that process, and then
performing experiments on the model to predict the behavior of the process over time.
An example of simulation is in computer games (e.g., chess, field combat war games, etc.). If the
sequence of events in such games were predetermined, the player would quickly learn the sequence
and become bored. One solution would be to have a large number of games stored in the program, but
this could take up an inordinate amount of memory space. The usual solution is for the game program
to choose its own moves at random. In most games, the total number of possible combinations of
events or moves is so astronomically large that this method results in each game being unique.
1. Formulate the model. This step is almost the same as that for other operations research models.
For a proper formulation, comprehensive study should be made regarding components of the
problem, objective, composition of the organization, etc.
Never add too much detail in a simulation model, it will consume a lot of computer time. Always
keep your specific goal in mind.
2. Design the experiment. After building a simulation model, simulation experiments must be
designed. In this step, you must decide the starting conditions of the model, parameter settings,
time period required for each run, total number of runs, etc.
Work out the details of the experimental procedures before running the model, it will
considerably reduce the chances of making blunders. Think carefully about the model to save
your time and money
JKUCAT OR 2210 2016
Monte-Carlo Simulation
The Monte-Carlo simulation method uses random numbers for generating some data by which a
problem can be solved. These random numbers are helpful in creating a new set of hypothetical data for
a problem whose behavior is known from past experience. The random numbers are generated either
on a computer or are picked up from a table. Most computers employ what is known as
pseudorandomness. This means that the numbers are generated by a series of specific operations. Each
number is generated by performing these operations on the previous number. After picking a random
number, its value is compared with the cumulative probability distribution and the value of process
parameters is obtained.
Example 1
The Lajwaab Bakery Shop keeps stock of a popular brand of cake. Previous experience indicates the
daily demand as given below:
Consider the following sequence of random numbers: 21, 27, 47, 54, 60, 39, 43, 91, 25, 20
Using this sequence, simulate the demand for the next 10 days. Find out the stock situation, if the owner
of the bakery shop decides to make 30 cakes every day. Also estimate the daily average demand for the
cakes on the basis of simulated data.
JKUCAT OR 2210 2016
Solution
At the start of simulation, the first random number 21 generates a demand of 25 cakes as shown in
table 2. The demand is determined from the cumulative probability values in table 1. At the end of first
day, the closing quantity is 5 (30-25) cakes.
Demand Random Number Next Demand Daliy Left out Daily Shortage
(Production =30 (Production =30
cakes) cakes)
1 21 25 5
2 27 25 10
3 47 35 5
4 54 35 0
5 60 35 5
6 39 35 10
7 43 35 15
8 91 45 30
9 25 25 25
10 20 25 20
Total 320 10