Professional Documents
Culture Documents
necessary to describe the behavior and structure of a complex, real world system
depicts the working of a large scale system of men, machines, materials and
world conditions.
Types of Simulation
• It is mainly two types:
(a) Deterministic models: In these models, input and output variables are not
functional relationship.
(c) Static models: These models do not take variable time into consideration.
(d) Dynamic models: These models deal with time varying interaction.
When simulation should be used?
• Actual observation of a system may be too expensive.
• The problem is too big or intricate to handle with linear, dynamic, and standard
probabilistic models.
• The standard sensitivity analysis is too clumsy and computationally burdensome for
observing the actual environment.
• There may not be sufficient time to allow the system to operate extensively.
Drawbacks of Scientific method
• It may be either impossible or extremely costly to observe certain
observation of variables and can be carried out with the help of any of the
following methods.
deals with updating the system when new events occur, monitoring and
recording the system states as and when they change; and keeping track
system).
• These languages are very economical and comparable with the FORTRAN,
COBOL, ALGOL.
created by using a series of random numbers. This approach has the ability
digital computer.
7. Simulation of network.
Problem: Customers arrive at a service facility to get the required service.
The interarrival and service times are constant and are 1.8 and 4 minutes
respectively. Simulate the system for 14 minutes. Determine the average
waiting time of a customer and idle time of the service facility.
Solution:
The arrival times of customers within 14 minutes period will be
Customer 1 2 3 4 5 6 7 8
Arrival time 0 1.8 3.6 5.4 7.2 9.0 10.8 12.6
(min)
The time at which the service begins and ends within time period of 14
minutes is shown below. Waiting time for customer and idle time of service
facility also calculated.
Customer Service Waiting time Idle time of
Begins Ends of customer service facility
1 0 4 0 0
2 4 8 4 – 1.8 = 2.2 0
3 8 12 8 – 3.6 = 4.4 0
4 12 16 (14) 12 – 5.4 = 0
Waiting time for first four customers is calculated
6.6 above.
Service facility will close at 14 minutes. But the customers enter into the
service facility and leave after 14 minutes whether the service is provided
or not. So even though the service is provided or not waiting time should be
calculated for all the customers.
Customer 5 6 7 8
Waiting Time (min) 14 – 7.2 = 14 – 9 = 5 14 – 10.8 = 14 – 12.6 =
6.8 3.2 1.4
0+2.2+4.4+6.6+6.8+5+3.2+1.4
𝐴𝑣𝑒𝑟𝑎𝑔𝑒𝑤𝑎𝑖𝑡𝑖𝑛𝑔𝑡𝑖𝑚𝑒𝑜𝑓 𝑡h𝑒𝑐𝑢𝑠𝑡𝑜𝑚𝑒𝑟𝑠= =3.7 𝑀𝑖𝑛𝑢𝑡𝑒𝑠
8
Simulate the dentist’s clinic for four hours and determine the average waiting
time for the patients as well as the idleness of the doctor. Assume that all the
patients show up at the clinic at exactly their scheduled arrival times, starting
at 8 AM. Use the following random numbers for handling the above problem:
40, 82, 11, 34, 25, 66, 17 and 79.
Solution:
The time taken by the dentist to treat eight patients arriving in four hours at
the clinic is calculated in the following table.
Daily Demand 0 15 25 35 45 50
Probability 0.01 0.15 0.2 0.5 0.12 0.02
Consider the following sequence of random numbers: 48, 70, 09, 51, 56, 77, 15, 14, 68 and 09.
Using the sequence simulate the demand for the next 10 days. Find the stock situation if the
owner of the bakery decides to make 35 cakes every day. Also estimate the daily average demand
for the cakes on the basis of the simulated data.
Solution:
The demand for the cakes for the next 10 days can be obtained from the following table
Demand 0 1 2 3 4
Probability 0.05 0.10 0.30 0.45 0.10
Each time an order is placed, the store incurs an ordering cost of Rs 10 per order.
The store also incurs carrying cost of Rs 0.50 per book per day. The inventory
carrying cost is calculated on the basis of stock at the time of each day.
The manager of the book store wishes to take his inventory decisions based on
‘Order 5 books when the inventory at the beginning of the day plus orders
outstanding less than 8 books.
Currently (beginning of the 1 st day) the store has a stock of 8 books plus 6 books
ordered 2 days ago and expected to arrive next day. Using Monte carlo simulation
for 10 cycles, recommend which option the manager should choose.
The two digit random numbers are given below:
89, 34, 78, 63, 61, 81, 39, 16, 13, 73.
Solution:
She would like to see a simulation of the yield she might expect over the next 10 years for weather conditions
similar to those she is new experiencing.
i) Simulate the average yield she might expect per acre using the following random numbers: 20, 72, 34, 54,
30, 22, 48, 74, 76, 02
She is also interested in the effect of market price fluctuations on the cooperatives farm revenue she makes
this estimate of per kg prices for corn.
Price per kg (Rs) 2.00 2.10 2.30 2.30 2.40 2.50
ii) Simulate the price she might expect to observe over the next 10 years using the following random numbers;
82, 95, 18, 96, 20, 84, 56, 11, 52, 03
Solution: If the numbers 0-99 are allocated in proportion to the probabilities associated
With each category of yield per acre, then various kinds of yields can be sampled using
Random number table.
Yield in Kg, Probability Cum. Prob. Random
per acre No’s
assigned
120 0.18 0.18 00-17
140 0.25 0.44 18-42
160 0.44 0.88 43-87
180 0.12 1.00 88-99
i) Let us now simulate the yield per acre for the next 10 years based on the random no’s given
Year 1 2 3 4 5 6 7 8 9 10
Random No 20 72 34 54 30 22 48 74 76 02
Simulated 140 160 140 160 140 140 160 160 160 120
Yield
These simulated prices are developed using random no’s given for next 10 years
Year 1 2 3 4 5 6 7 8 9 10
Random No 82 95 18 96 20 84 56 11 52 03
Price (Rs.) 2.40 2.50 2.10 2.50 2.20 2.40 2.30 2.10 2.30 2.00
Simulated Yield 140 160 140 160 140 140 160 160 160 120
Revenue/acre (Rs) 336 400 294 400 308 336 368 336 368 240
Using simulation process, repeat the trial 10 times. Compute the return on investment for each trial,
taking these factors into account. Approximately, what is the most likely return? Use the following
random numbers for annual demand, price cost and the investment required?
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
Solution: The yearly return can be determined by the formula:
Return (R) = Price cost – No. of units demand/Investment
To determine a cumulative probability distribution corresponding to each of the three Factors.
2 57 40 07 3.00 67 3000
3 60 40 90 10.00 16 2750
4 17 35 02 3.00 71 3000
5 64 40 57 7.00 43 3000
6 20 35 28 5.00 68 3000
7 27 35 29 5.00 47 3000
8 58 40 83 9.00 24 2750
9 61 40 58 7.00 19 2750
10 30 35 41 7.00 97 3500