Professional Documents
Culture Documents
CONCEPTS IN SIMULATION
A. Definition
B. Major Characteristics
1
inventory and staffing, as well as higher managerial functions like long-
range planning. Thus, it is “always there” when the manager needs it.
8. The manager can experiment with different factors to determine which are
important and with different policies and alternatives to determine which
are the best. The experimentation is done with a model rather than by
interfering with the system.
9. Simulation, in general, allows for inclusion of the real-life complexities of
problems; simplifications are not necessary. For example: simulation utilizes
the real-life probability distributions rather than approximate theoretical
distributions.
10. Due to the nature of simulation, a great amount of time compression can
be attained, giving the manager some feel as to the long-term effects of
various policies, in a matter of minutes.
11. The great amount of time compression enables experimentation with a
very large sample (especially when computers are used). Therefore, as
much accuracy can be achieved as desired at a relatively low cost.
D. Disadvantages
Queuing
Inventory Control
Simulation is one of the few means for analyzing inventory systems in which demand
is a random variable, reflecting demand uncertainty.
2
Simulation is often applied to production problems, such as production scheduling,
production sequencing, assemble line balancing, plant layout, and plant location
analysis. it is surprising how often various production processes can be viewed as
queuing systems that can only be analyzed using simulation. Because machine
breakdown typically occur according to some probability distributions, maintenance
problems are also frequently analyzed using simulation.
Finance
Simulation has been used to generate values of the various contributing factors to
derive estimates of cash flows. Simulation has also been used to determine the
inputs onto rate of return calculations in which the inputs are random variables, such
as market size, selling price, growth rate, and market share.
Marketing
Simulation can be used to ascertain how a particular market might react to the
introduction of a product or to an advertising campaign for an existing product.
Another area in marketing where simulation is applied is the analysis of distribution
channels to determine the most efficient distribution system.
The operations of police departments, fire departments, post office, hospitals, court
systems, airports, and other public systems have been analyzed by using simulation.
Typically, such operations are so complex and contain so many random variables
that no technique except simulation can be employed for analysis.
Simulation models have been developed to ascertain the impact on the environment
of projects such as nuclear power plants, reservoirs, highways, and dams. In many
cases, these models include measures to analyze the financial feasibility of the
project.
3
To correct this problem, race management implemented an interval start system
in 1986, wherein 24 groups of up to 1,000 runners each were started at 1-minute
intervals. While this solution alleviated the problem of street crowding, it did not
solve the queuing problem at the finish line.
A simulation model of the race was then developed to evaluate several possible
solutions-specifically increasing the number of finish lines chutes from the 8 used
previously to either 12 or 15. The model was also used to identify a set of block-start
intervals that would eliminate finish line queuing problems with either chute
scenario. Recommendations based on the simulation model were for a 12-chute
finish line configuration and specific block-start intervals. The race conducted using
the recommendations from the simulation model was flawless. The actual race
behavior was almost identical to the simulation results. No overcrowding or queuing
problems occurred at the finish line. The simulation model was used to fine-tune the
1986 and 1987 races, which were also conducted with virtually no problem.
G. TYPES OF SIMULATION:
4
§ Discrete distributions involve a situation with a limited number of
events (or variables that can only take a finite number of values).
§ Continuous distributions refer to a situation involving variables
with an unlimited number of possible values that follow density
functions such as the normal distributions.
v Time dependent and time independent simulation Time independent
refers to a situation where it is not important to know exactly when the event
occurred; otherwise, it is time dependent.
v Visual simulation The results of the simulation could now be seen in a graphic
display
v Business games These are the simulations of competitive decision making in
business which may also involve probabilistic simulation.
v Large system simulation These are complex simulations of corporations or
even national economies.
The Monte Carlo technique can be narrowly defined as a technique for selecting
numbers randomly from a probability distribution (i.e. “sampling”) for use in a trial
(computer) run of a simulation. This is not a type of simulation model but rather a
mathematical process used within in simulation.
The name Monte Carlo is an appropriate because the basic principle behind the
process is the same as in operation of a gambling casino in Monaco. In Monaco such
devices as roulette wheels, dice, and playing cards are used. These devices produce
numbered results at random value from a population. For example, a 7 resulting from
thrown dice is a random value from a population of 11 possible numbers (i.e., 2 through
12). This same process is employed, in principle, in the Monte Carlo process used in
simulation models.
Note: Step 2 can be eliminated if you use the graphical approach in constructing the
cumulative probability distribution since the graph already provides the RN range
assignments.
5
EXAMPLES:
1. To use an old statistical example for simulation, if an urn contains 100 balls, of which
10% are green, 40% are green, and 50% are spotted, develop a simulation model of
the process of drawing balls at random from the urn. Each time a ball is drawn and
its color is noted, it is replaced. Use the following random number as you desire.
Simulate drawing 10 balls from the urn. Show which numbers you have used.
26768 66954 83125 08021
42613 17457 55503 36458
95457 03704 47019 05752
95276 56970 84828 05752
SOLUTION
The first simulation run resulted into 6 spotted and 4 red balls.
The second simulation run resulted into 1 green, 3 red, and 6 spotted balls.
6
2. A rural clinic receives a delivery of fresh plasma once each week from a central
blood bank. The supply varies according to demand from the other clinics and
hospitals in the region but ranges between four and nine pints of the most
widely used blood type, type O. the number of patients per week requiring this
blood varies from zero to four, and each patient may need from one to four
pints. Given the following delivery quantities, patient distribution , and demand
per patient, what would be the number of pints in excess or short for a six-week
period? Use simulation to derive your answer. Consider that plasma is storable
and there is currently none on hand.
SOLUTION
SIMULATION RUN NO. 1
Qty. Patients Qty.
Delivered Needing Needed
Blood
Week Beg. RN Pts. Total RN Patient Patient RN Pints No. of Pints
no. Invty. Blood Remaining
on
Hand
1 0 56 6 6 10 0 6
2 6 52 6 12 04 0 12
3 12 54 6 18 72 2 1st 50 2 16
2nd 23 1 15
4 15 08 4 19 83 3 1st 85 3 16
2nd 60 2 14
3rd 44 2 12
5 12 66 7 19 72 2 1st 69 2 17
2nd 59 2 15
6 15 08 4 19 55 2 1st 21 1 18
2nd 02 1 17
At the end of six weeks, there are 17 pints of blood on hand.
7
SIMULATION RUN NO. 2
Qty. Patients Qty.
Delivered Needing Needed
Blood
Week Beg. RN Pts. Total RN Patient Patient RN Pints No. of Pints
no. Invty. Blood Remaining
on
Hand
1 0 74 7 7 85 3 1st 21 1 6
2nd 06 1 5
3rd 71 3 2
2 2 31 5 7 28 1 96 4 3
3 3 02 4 7 72 2 1st 12 1 6
2nd 67 2 4
4 4 53 6 10 44 1 23 1 9
5 9 16 5 14 16 0 14
6 14 40 6 20 83 3 1st 65 2 18
2nd 34 1 17
3rd 82 3 14
8
Simulation Experimentation: A Preview
(Simulation of a Queuing System)
Table 2 gives the distribution of service times, assuming that service can take
only three values: 0.10, 0.20, 0.30 hours. The table also includes the assigned numbers
required for the simulation.
The toolroom clerk earns P400 per hour. A production employee earns P500 per
hour, and a maintenance employee earns P600 per hour. The problem is to find the
number of clerks in the toolroom. Management also wishes to know if the existing
priority system should be maintained. Simulate for 10 hours operations.
9
SOLUTION
10
Simulation for 10 hours operations:
2. Service. All 30 arrivals were served. The total service time was 6 hours. This means
that the toolroom clerk was busy 6/10 = 60 percent of the time. The average service
time was 6/30 = 0.2 hour.
4. Length of wait. Total waiting time was 1.5 hours. Thus, on the average, an employee
waited 1.5/30 = 0.05 hour (three minutes). However, the average waiting time for a
maintenance employee was 1.3/15 = 0.08 hour, versus 0.2/15 = 0.013 hour for a
production employee.
11
5. The total cost of waiting.
For production employees = 0.2 x P500 = P100, for the 10-hour period
6. Priorities. In five cases (33.33 percent of all maintenance employees), priorities were
utilized by the production employees.
X=
When machine breaks down, it must be repaired, and it takes either 1, 2, or 3 days
for the repair to be completed, according to the discrete probability distribution shown in
Table 1. Every time a machine breaks down, the cost to the company is an estimated
$2,000 per day in lost production until the machine is repaired.
12
f(x) = x/18, 0 ≤ x ≤ 6 weeks
where
The equation for generating x, given the random number r1, for this probability
distribution is
X=6
The reduced repair time resulting from the maintenance program is defined by the
discrete probability shown in Table 2.
Table 2 Revised probability distribution of machine repair time with the maintenance
program
Machine Repair Probability of Repair Cumulative Random Number
Time, y (days) Time, P(y) Probability Range, r2
1 .40 .40 0.00-.40
2 .50 .90 .41-.90
3 .10 1.00 .91-1.00
To solve this problem, we must first simulate the existing system to determine an
estimate of the average annual repair costs. Then we must simulate the system with the
maintenance program installed to see what the average annual repair costs will be with
the maintenance program. We will compare the average annual repair cost without the
maintenance program and compute the difference, which will be the average annual
savings in repair costs with the maintenance program. If this savings is more than the
annual cost of the maintenance program ($20,000), we will recommend that if be
implemented; if it is less, we will recommend that it not be implemented.
First, we will manually simulate the existing breakdown and the repair system without
the maintenance program, to see how the simulation model is developed. Table 3
illustrates the simulation of machine breakdowns and repair for 20 breakdowns, which
occur over a period of approximately 1 year (i.e., 52 weeks).
13
Table 3—Simulation Run
Time Between Repair Cumulative
Breakdowns, x Time, Cost, Time,
Breakdowns r1 (weeks) r2 y $2,000y (weeks)
(days)
1 .45 2.68 0.19 2 $4,000 2.68
2 .90 3.80 0.65 2 4,000 6.48
3 .84 3.67 0.51 2 4,000 10.15
4 .17 1.65 0.17 2 4,000 11.80
5 .74 3.44 0.63 2 4,000 15.24
6 .94 3.88 0.85 3 6,000 19.12
7 .07 1.06 0.37 2 4,000 20.18
8 .15 1.55 0.89 3 6,000 21.73
9 .04 .80 0.76 3 6,000 22.53
10 .31 2.23 0.71 3 6,000 24.76
11 .07 1.06 0.34 2 4,000 25.82
12 .99 3.98 0.11 1 2,000 29.80
13 .73 3.94 0.27 2 4,000 33.74
14 .13 3.42 0.10 1 2,000 37.16
15 .03 1.44 0.59 2 4,000 38.60
16 .62 .70 0.87 3 6,000 39.30
17 .47 3.15 0.08 1 2,000 42.45
18 .99 2.74 0.08 1 2,000 45.19
19 .75 3.98 0.89 3 6,000 49.17
20 3.46 0.42 2 4,000 52.63
$84,000
14
The next step in our simulation analysis is to simulate the machine breakdown
and repair system with the maintenance program installed.
Time
BREAKDOWNS R1 Between R2 Repair Cost, Cumulative
Breakdowns, Time, $2,000y Time,
x (weeks) y (days) Ex (weeks)
However, let us now concern ourselves with the potential difficulties caused by
the fact that we simulated each system only once. Because the time between
breakdowns and the repair times are probabilistic, the simulation results could exhibit
significant variation.
One of the most frequently used tools for the analysis of the statistical validity of
simulations results is confidence limits.
15