Simulation
Simulation
:40(Fo). 0590 (F7), 9566 (D), 7615 (D), 8508 (D), 6970 (D), 5799 (D), 6343 (D), 4165
zs4(F5). We stop because 8 houses have been selecte. The eight houses selected belong
number6. 3, 6, 3. 3, 4, 2
and 2
dd
AMPLE13.7-5 respectively.
keeps stock of a popular brand of
thelor:: cake. Daily demand based on past experience
Daily demand 15 25
Probability 0.01 0.15
35 45 50
0.20 0.50
eider the following sequence of random 0.12 0.02
48, 78, 09, 51, 56, 77, numbers:
Ilsing the sequence, simmulate the 15. 14, 68 and 09.
demand for the next 10 days.
Eind the stock situation if the owner of the bakery decides to make 35
stimatethe daily average demand for
the cakes on the basis of the cakes every day
UN.TU. Hyderabad MBA Nov, 2012; PT:U. B. Tech. simulated data.
(Mech.) No., 2012; Dec., 2011;
B.E., 2001: Nellore MBA. 2001: PU. BBA, 2001]
ution
a The simulated demand for the cakes for the next 10 days can be obtained from the table
TABLE 13.2
Allocation of random numbers to demand of cakes
Demand Probability Cumulative Random number Random numbers fitted
probability interval
0.01 0.01 00
0.15 0.16 01 - 15 09(3), 1S(7), 14(8), 09(10)
25 0.20 0.36 16- 35
0.50 0.86 36 - 85 48(1), 78(2), 51(4), 56(5).
45
77(6), 68(9)
0.12 0.98 86-97
50 0.02 1.00 98 - 99
In order to simulate the demand, the number 00 is assigned to zero demand, numbers 01--15
35igned to demand of 15 cakes, 16-35 are assigned to demand of 25 cakes and so on. The
FD 10 random numbers are fitted in the last column corresponding to the ranges against the
and values. These random numbers give the demand for cakes for next 10 days. Serial no. of
Tandom numbers are shown in the parentheses.
. Number of cakes demanded in the next 10 days are :
, 35, 1s, 35, 35, 35, 15. 15, 35 and 15 respectively.
ien in Ihe stock situation for various days if the decision is made to make 35 cakes evervday
the table
below: TABLE 13.3
Day Demand No. of cakes made Stock
35 35
35 35
15 35 20
35 35 20
35 35 20
35 20
35
35 40
15
15
35 60
9 35 60
3
10 35 80
1200 OPERATIONS RESEARCH
EXAMPLE 13.7-6
Depending upon th
manufac tures around 200 mopeds.
4compa
materials and other conditions, the daily as given below
mopcds, whose probabilin distribution
is
199
varyiny
produetion has bcen
200 201
avalabtt,
from 196 moped
Produc tion dan 106 197 198
0. 20 (), 15
202 203
Prohab1litn 005 0 09 012 0 14
The finishcd mopeds are transported in a specially desiged three-storeyed lorr,
following 15 random numbers 82, 8
accommodate onh 200 mopcd Using the process to fnd out
J8, 45. 04. 23 S0 "31 54 and l0),. simulate the
mopvds waiting in the fuctory2
(u what will be thc average number of
spaces in the lorry?
(i) what will be the mumber of emph IRU MBA June, 2011: PTU BI
Solution
as in the table below:
The random numbers are established
TABLE 13.4
Based on the 15 random numbers given, we simulate the production per day in the tat
below.
TABLE 3.5
Day no. Random number Production per day No. of mopeds Emptv spaccs
the lorn
waiting
82 202
89 203 5
3 202
4 24 198
53 200
6 61 201
7 18 198 4
45 200 4
9 04 196
23 |98
00
12 77
202
13 27 199
14 54 200
197
SIMULATION 1201
Average number of
mopeds waiting in the factory
|2 +5 +
7+5+5 + 6 + 4 + 4 + 2 +|+ 1]=2.8.
number of empty
spaces in the lorry 4 =0.27.
15
AMPLE13.7-7 (Queuing Problem)
fuopersons Xand}Y work on a two-station assembly tine. The distributions of activity times
r slatlonsare
TABLE 13.6
Time in seconds
Time frequency for X Time frequency for Y
10
20 7 3
30 10
40 15
50 35 12
60 18 9
70 7
80 3 3
. Average waiting time for the patients = [30 + 15+ 30 + 45 +60 + 45 + 601
285
= 35.625 minutes.
8
Average idleness of the dentist = Nil.
XAMPLE 13.7-9
Company manutactres 30 items per day. The sale of these items depends upon
demand
hich has the following distribution:
Sales (units) Probability
0.10
27
0./5
28
0.20
29
0.35
30
0.15
31
0.05
32
1204 * OPERATIONS RESEARCH
i5 000 0.05
Using simulation process, repeat the trial 10 times. Compute the return on imvestment
iach trial, taking these factors into account. Approximately, what is the highest likely
Use the following random numbers for annual demand, (price-cost) and the investment
28, 57, 60, 17, 64, 20, 27, 58, 61. 30: 19, 07, 90, 02, 57.
28, 29, 83, 58, 41; 18, 67, 16, 71, 43, 68, 47, 24, 19, 97.
Mltion
associated
Fist of all, random numbers 00-99 are assigned in proportion to the probabilities
below :
ie annual demand, (price-cost) and investment as given
TABLE 13. 16
(000)
Siemuni
mlatead tcPrioufrtm
S.00 2.750
3.00 3,000
40 400
10.00 2,750
14,5s
3.00 3,000
1 3.,50
7.00 3,000
64
$.00 3,000
`83
29 5,00 47 3,000
35
9.00 24 2.750
40 13.J0
7.00 19 2.750
61 0 10.18
41 7.00 97 3,500 00
10 30
Above table shows that the highest likely return is 14.55% whicth is corresponding to hg
annual demand of 40,000 units resulting a profit of 10 per unit and the required invest
be 27.S0,000.
EXAMPLE 13.7-11
not it roined
The occurrence of rain in a cin on a dan is dependet upon whether or
is given by:
the previous da: Ifit rained on the previous day. the rain distribution
Event Probability"
No rain 0.50
Icm rain 0.25
2 cm rain 0.15
3 cm rain 0.05
4 cm rain 0.03
5 cm rain 0.02
If it did not rain the previous day: the rain distribution is given by:
Event Probabilit
No rain 0.75
Icm ran 0.15
2 cm rain 0.06
3 cm rain 0.04
Simmalate the city s weather for 10 das and determine by simulation the tofal as *
random numbeTS
rain as well as the total rainfall during the period. Use the following
06 7
67 63 39 55 29 78 70
for simulation. Assume that for the first day of the simulation it had not rained theMB4dJne,2011
[R.U
Solution each
probabilities asssociatedwith a
proportion to the allocation
The numbers 00-99 are allocatedin number
event. If it rained on the previous day, the rain distribution and the random
given below:
SIMULATION 1207
TABLE 13. 18
Event Probability Cumulative Randon number
probabiliy interval
No rain 0.50 0.50 00 49
|cm rain 0.25 0.75 S0 74
2 cm rain 0.15 0.90 75 89
3 cm rain 0.05 0.95 90 94
4 cm rain 0.03 0.98 95-97
5cm rain 0.02 1.00 98-99
random
distribution and the
simlarly. ifit did not rain the previous day, the necessary
given below:
r allocation is TABLE 13.19
Random number
Event Probability Cumulative
probability interval
0.75 0.75 00-74
No rain
0.15 0.90 75-89
|cm rain
0.06 0.96 90-95
2 cm rain
96-99
3 cm rain 0.04 1.00
the rainfall for 10 days using the gjven random numbers. For the first
let us now simulate
the day before:
tisgiven that it had not rained
TABLE 13.20
Remarks
Random mumbers Event
Day (from table 2)
67 No rain
(from table 2)
63 No rain
(from table 2)
39 No rain
3 (from table
55 No rain
4 (from table
29 No rain
| cm rain (from table 2)
78 (from table 1)
1cm rain
70 (from table 1)
06 No rain
Icm rain (from table 2)
78 (from table 1)
2 cm rain
76
The total rainfall
simulated period. it did not rain on 6 days out of 10.
ience, during the
g the period was 5 cm.
FAMPLE 13.7-12 (Quality Control Problem) One or more of tlree lifferent
The production line is checked by an inspector foritem.
output of a occr's, the is scrapped. If defect B or
of defects. called defects A, B and C. If defect A B
required to rework 3 defect is 15 mimutes and
a
KCurs, the item must be reworked. The timeminutes. The probabilities of an A, Band C defects
ime is 30
to rework a C defect ten items coming off the assembly line, determine the
435,required
0.20
her of ites and 0.10 respectivel:.
For
mumber serapped aand the total mintes of rework time.
any defects, the
following without
random umbers: 40 01 83 63 52
PN for defect A 48 55 91
(04 79 55 15 57 09
P for 36 57
defect B
for defeet C
17
82 95 18 20 84 56 52 03
1208 OPERATIONS RESEARCH
Solution
is
The proBbab1ties of occurrence of A. Bad Cdelects are
So, the numbers 00.00 are allocated in proportion to the probab1litie assoLaed ith c
three defects
TABIE I3.21
Wrespetve
Delect A Defect B
Eusts Rankom Rundom
umbers numbers Runon
assgned Hmhers
Yes 00-14 Yes 00-19 Yes IS\ned
No |S.99 No )-99 No
Let us now simulate the output of the assembly lne for 0 items using the given tat
numbers in order to determine the number ol items without any delect.
sCrapped and the total minutes of rework time requircd: nunber ote
TABLE I3. 22
R21,000)
Therefore, average protit per rial R 2,100.
10
EXAMPLE 13.7-14
The dincctor of finance for a farm cooperative is concerned aboutthe yield per
can cxpect from this wrs corn crop. The probability distrihution of the yield for the acre s
wcather conditions is given below: crr
Yicld in kg per aCre Probahility
|20 ). /8
|40 ).26
l6 0.44
180 0.12
She would like to see a simulation of the yield she might expect over the next l0 ver
weather conditions similar to those she is now experiencing.
() "Simulate the average yield she might expect per acre using the following rand
umbers: 20, 72, 34, 54, 30, 22, 48, 74. 76, 02.
She is also interested in the effect of market price fuctuations On the cooperatives far
revenue. She makes this estimate of per kg prices for corn:
Price per kg ) Probability
2.00 0.05
2.10 0.15
2.20 0.30
2.30 0.25
2.40 0.15
2.50 0.10
(i) Simulate the price she might expect to observe over the next 10 years using the follo
random mumbers:
82. 95, 18, 96, 20, 84, 56, 11, 52, 03.
(iii) Asszming that prices are independent of vields, combine these two into the revenue
acre and also find out the average revenue per acre she
might expect every year:.
[CA. (Final) May: 190)
Solution
(i) Simulation for 10 years is carried out in the table
below:
TABLE 13.27
Yield in Probability Cumulative Range Random numbers fitted
kg/acre probabiliy
120 0.18 00.18 0-17 02(10)
140 0.26 0.44 18 43 20(1 ). 34(3). 30(5). 22(6)
160 0.44 0.88 44-87 72(2). 544), 48(7), 74(8), 76(9)
80 0.12 1.00 88-99
Yields over the next ten years are 140, 160, 140, 160, 140, 140, 160. l60, 160.ind
ky respectively.
SIMULATION 1211
P eKg ofthe com erop over the neXt 10 years is simulated in the table below:
TABLE 13.28
Probability Cumulative Runlom nnbers
Range
probabiliy fitted
200 0.05 0.05 00 04 03(10)
210 0.15 0.20 I8(3), Il(8)
05 19
20 0.30 0.50 200 49 20(5)
30 0.25 0.75 56(7),52(9)
50-74
240 0.15 0.90 75-89 82(1 ).84(6)
2.50 0.10 1.00 90 -99 95(2). 96 (4)
Price/kg over the next 10 years is 2.40, 2.50, 2.10. 2.50, 2.20, 2.40, 2.30, 2. 10, 2.50
respectively.
Revenue/acre = Yield in kg/acre x price in /kg.
Revenue/acre over the next 10 years is 336. 400. 294. 400. 308. 336. 368, 336. 368
l espectively.
Expected yield/acre = 120 x 0.18 +140 x 0.26 +160 x 0,44 + 180 × 0.12
= (21.6 + 36.4 + 70,4 + 21.6) kg = 150 kg.
Expected price/kg =(2 x 0.05 + 2.10 x 0.15 +2.20 x 0.30 + 2.30 x 0.25
+ 2.40 x 0.15 + 2.50 × 0.10)
= (0.10 + 0.315 + 0.66 + 0.575 + 0.36 + 0.25) = 2.26.
Average revenuelacre = 150 x 2.26 = 339.
AMPLE 13.7-15
Popa Lid. trade in a perishable commodity. Each day Popa Lid. receives supplies of the
from a wholesaler but the quantity supplied is a random variable, as is the subsequent
of
Ecastomer demand for the commodity. Both supply and demand are expressed in batches
3S and over the past working year (300 days), Popa Ltd. has kept records of supplies and
D. The results are in the table below:
TABLE 13.29
:. Wholesaler's supplies the next 6 days are 200, 100. 200, 50, 100 0)and,8(3)
respectively.
Similarly, customer's demand over the next 6 days is simulated in the table
T00 wni
TABLE 13.31 below:.
Demand No. of days Total no. of No. of days Random no.
0CCuITmg days out of l0 r'ange Random no. fited
S0 60 60 2 00-01
(5)
02-03
100
200
60
30
120
300 09
4(1), 7(2), 6(4), 516)
9(9)
Customer's demand in the next 6days is 150, 150, 200, 150, 50 and 150
The shortage and net profit or loss in the 6days is now calculated as shown inunits
the respectbelivoelw
TABLE 13.32
table
Day Supply Demand Shortage
n0. units
Net profit
cost R) units sales ) units COSt
Or loss R)
200 1,200 150 1,500 1,500 - 1,200 = 300
T00 600 150 1,500 50 100 1,500 600- 100 =800
3 200 1,200 200 2,000 2,000 - 1,200 = 800
50 300 150 1,500 100
5
200 1,500- 300 - 200 =1.00
100 600 50 500 500 - 600 =- 100
I00 600 150 1,500 50 100 1.500 - 600- 100= 800
() Net profit from table 13.32 for 6 days = 3,600.
,000x 300
** Annual profit = =1.80,000.
(i) To determine the value of storage facilities we,
first, construct table 13.33.
TABLE 13.33
Day no. SuppBy Demand Storage Remarks
200 I50 50
2 100 150 Nil Shortage cost of ? 100 for 50 units could
be avoided.
3 200 200 Nil
4 50 Nil
00 50 50
100 150 could
Nil of R100 for 50 units
Shortage cost
be avoided.
If the storage facilities are provided, as mentioned in the remarks column. 200ofshortage
cost could be avoided by storing 50 + 50 = 100 units. These 100 units could be then sold,vieklig
a profit of 4 x 00 =400.
The value of storage facilities
=(200 + 400) =600.
SIMULATION 1213
79 3
06
9
9 51
13
11 65 93
SIMULATION 1215
2
01
40 1.5
98
61 2
41 1.5
tQomputations carried for 20 customer arrivals are shown in table 13.40. When the first
counter clerk is free and service immcdiately bcgins. Service time required is
s( table 3.39). Time between the first and second arrivals is 2 minutes (table 13.39)
the clerk is ide for 0.5 minute before the next arrival occurs. When the second customer
onice immediately starts, required service time for 2nd arrival is 2 minutes and the time
the 2nd and 3rd arrivals is also 2 minutes. Therefore. there is no idle time for the counter
wen the second and third arrivals. For the third arrival, service time is 1.5 minutes and
oramal time between Srd and 4th arrivals is only one minute and obviously 4th customer
t to wait for 0.5 minute betore the service can begin. This way the computations are
-s table 13.40). For 20 customer arrivals the counter clerk is idle for 10.5 minutes, while
omers have to wait for 7.5 minutes. The total time taken by 20 arrivals is 4I minutes
10.5x 100
a up the interarrival times). Therefore. the counter clerk is idle for about = 25.6%
41
ime. Based on this specific information, the manager can take the decision of assigning
atitional work to the counter clerk.
TABLE 13.40
cTNal Actual Service Service Service Counter Customer s
e MIn) arrival time time (min) Starts ends (min) clerk 's idle waiting
(min) (min) time (min) time (nin)
2 1.5 2 3.5 2
4 2 4 6 0.5
1.5 7.5
6 .5 7.5 1.5
9 1.5 ..3.13,.3-..
9 10.5
12 0.5
12 2.5 12 14.5
16 1.5 16 17.5
8 19 0.5
19 .5 19 20.5
22 2.5 22 24.5
24 24.5 25.5 0.5
26 26 27 0.5
28 28 29.5
20 2 29.5 31.5 0,5
34 34 37 2.5 -
36 2 37 39
37 1.5 39 40.5
40 1 40.5 41.5
0.5
41 41.5 43.5
0.5
10.5 7.5
1216 OPERATIONS RE SEARCH
10
00
l e lng ime of jobs
Determine the ille time of the mwhist
If the muchinist s wages e ) er hor ml obs itne ime osts 0p
would i be cconomical to (ngae a sccond atendmt
Solution
Table below shows the cumulative lrequeney distribution lor interarrival (imes, Twenty
random nos. picked tronm random Io. table ate also plotted. The senal numbes of he ton
nos. are shown in the parentheses.
TABLE 3,42
TABLE 13.44
Actual
Thal tine P'rocessing Processing Processing Machinis! Johs
time (nmin) starts (min) ends (nin) idle time wailing
(min) (min) time (nin)
10) 4
4 19
22 26 3
26 26 32
34 6 34 40 2
41 6 41 47
46 7 47 54
51 54 60 3
57 4 60 64 3
63 64 68
69 4 69 73
75 4 75 79 2
4 81 85 2
86 5 86 91
93 4 93 97 2
97 97 102
02 5 102 107
09 6 109 115
115 122
Arrnal distribution
Frequecy
Service distributm
Service time (min)
Interarrsal time (min)
3.5
45
45
5.5
0,05
0.20
3.5-4.5
4.5-5.5
Irequen
0.35 5.5-6.5
5.5- 6.5
6.5-7.5 0.25 6.5-7.5
0.10 7.5-8.5 029
7.5 8.5
0.1
85- 95 0.05
Determine the average waiting time of a fitter in the queue. What is the averuze t
spends in the system? Simulate the queuing phenomenon for a period of 2 hours.
Also fund a.
waiting time in non-empty queue and per cent time the tool room attendant
period remains tus,
Solution
First. mean values of interarrival times and service imes are computed. Then Cum
frequency distributions for interarrival times are calculated. Random numbers are also p
their serial nos. are shown in parentheses.
TABLE 13.46
Mean interarrival Frequency Cumulative Range Random mumbers fitted
time (min) (%) frequency
5 00-04 01 (15)
20 25 05-24 15 (1), 09 (2), 20 (12)
35 60 25-59 41 (3), 55 (7), 35 (9), 41 (
45 (13), 38 (14). 39 (I8). 53
7 25 85 60-84 74 (4), 72 (5), 67 (6), 71 iN
(16), 63 (17)
10 95 85-94
5 100 95-99 96 (11)
Thus the interarrival times of the fitters are 5. 5. 6. 7. 7 7.6. 7. 6.6.9. 5. 6. 0.
and 6 minutes respectively.
Likewise, the service times for the 19 fitters can be
obtained from the tollo"
TABLE 13.47
Mean service Frequency
time (minutes) Cumulative Range Random numbers fited
frequency
10 00-09 02 (11). 07 (12)
5 20
20 (1), 22 (7). 23 (15)
30
10-29
40 31 (0
34 (3), 54 (4). 40 (5),(17). 55
70
30-69
48
7 20 48 (8). 64 (13))
72 (2), 74 (9). 76 (10)
90
70-89
100 (16). 91 (1)
Thus the service times for the fitters are 5.7.90-99
6.6, 6. 6, 95 6, 7, 7,914.4 6 8 s 8.6.6
5, (14).
8 minutes respectivcly
Table 13.48 can now be prepared by linking the interarrival and service timesotthefite
SIMULATION 1219
TABLE I3.48
Joerarrin Actual Atendants
Service Service Service Fitter s
arrival time idle time
Starts ends waiting
time (min) (min) (min) time (min) (min)
(min)
8.05 8,05 8.10
S.10 7
8.10 8.17
8.16 8.17 8.23
8.23 8.23 8.29
8.30 8.30 8.36
8.37 8.37 8.43
8.43 8.43 8.48
8.50 6 2
8.50 8.56
8.56 7 8.56 9,03
9.02 7 9.03 9.10
9.11 4 9.11 9.15
9.16 4 9.16 9.20
9.22 6 9.22 9.28 2
9.28 9.28 9.36
9.32 9.36 9.41
9.39 8 9.41 9.49 2
9.46 9.49 9.55 3
ELANPDetLEermi13.7-20
ne the
(Maintenance Problem)
optimum number of mechanics for 100 semi-automatic machine tools. The
e o f the machine tools is gutomatic and warrants attention of the mechanics only when
ere is breakdown. The breakdowns have been seen to occur at the following times:
TiBrmeeakdown
3 4 6 7 8 9
(hour) L.2 2.1 2.4 2.6 3. 4.3 5.1 6.0
1220 OPERATIONS RESEARCHH
he heen obseved lo be
The repar time for the mr h e tools
distribution
Time of
repair (hour)
210 150
Frequenc
The wage of a mec hani is Nper hor Dowlme cost of the macm
alculate whether bxo o thve cchanics should he emploved Use rondom
SNS, ON9 657 NSS 20 NS nd S30 HmbeS
Solution
only
Since trequenev distnbution is given lor the repr imes they ate calu
table below:
TABLE 3.49
analysis
For 2-mechanic system
Wages to be paid/hr =2 x 18 -7 36,
downtime cost of the machine tools 75 x 4.8 =24.
Total cost/hr (36+24) =60.
: For 3-mechanic system
Wages to be paid/hr =3x 18 =7 54.,
downtime cost of the machine tools =5 x0 =0.
.:. Total cost/hr = (54 + 0) = 54.
the total cos/hour by 6.
Ihus engaging three mechanics is more economical as it reduces
AMPLE 13.7-21 (Simulation in Inventory Control)
the level of stock it
company trading in motor vehicle spares wishes to determine
there is a lead time for stock
id carry for the itemns in its range. Demand is not certain and
lishment. For one item X, the following infornation is obtained:
4 5 6 7
Demand (units/day) 3
0.1
0.3 0.3
ProbabilityCarying cost per unit per day' 0.1 0.2
20 paise,
ordering cost per order 5,
= 3days.
lead time for replenishment to
hand at the
0Ck inSiulation beginning of the simulation exercise was 20 units. You are required
rwn over a period of 10 days with he objective of fevaluating the following
lory rule: order falls belo /5 mits
er 15 units when present iventory plus any outstanding
The sequence of random nos. used is 0, 9, 1, 1, 5, 1, 8, 6, 3. 5, 7, I, 2, 9 using the first
ber for day 0ne. Your calculation should include the total cost of operating this inventory rule
0days. [PIU. B. Tech. (Prod) May. 2011)
hution is determined.
First. the demand in each of the 10 days
1222 OPERATIONS RESEARCH
TABLE 3.52
TABLE 13.54
Demand Probabilin
Probability Lead time (weeks)
0.10 0.20
0.45 065
0.30 015
4
0./5
Assume the following random 95. 01. 10.
numbers
66, 69, 76, 86, 56 and 84. Also assume for the demand:
the following 49, 67., 06.for 30,
random numbers the lead time:
70 12 12
12 80 10
6
69
79
76
4 86
)
1 56
84 2 10
88
Inthe simulated demand of 1 unit as obtained
from table 13.55
against random
Ser first
49.is weeek, inventory of 9 units is entere@ in
in column (4) of table 13.57. Closing
this table.6lled Closing inventory for the remaining weeks is calculated the same way. column
At the
Weck 4, the closing inventory is 6 units. So, an order is placed in the beginning of week
quantity of 12 units.