Digital Simulation
Digital Simulation
Simulation
Definition
• Simulation is a numerical technique for conducting
experiments on a digital computer which involves certain
types of mathematical and logical relationships necessary
to describe the behavior and structure of a complex real-
world system over extended period of time.
-Naylor et al.
• Simulation is the use of a system model that has the
designed characteristics of reality in order to produce the
essence of actual operation.
- Churchman
Process of Simulation
Simulation: a descriptive method not optimizing
technique
To simulate is to replicate a system
Phases of simulation process:
Definition of the problem and statement of
objectives
Construction of an appropriate model
Experimentation with the model constructed
Evaluation of the results of simulation
3
Advantages and disadvantages of the Simulation
Advantages:
• To analyse large and complex real life problems
• Sensitivity analysis of complex system
• It allows the inclusion of additional information during
analysis.
• It’s a pre-service test without risk.
Disadvantage:
Does not generate answer by itself, user has to provide
constraints for the solution.
Monte Carlo Simulation
• In this given problem is solved by simulating the
original data with random number generation.
• It’s a numeric technique that involves modeling a
stochastic system with the objective of predicting the
system’s behavior.
• Process calls for:
Determination of random number intervals
Obtaining random numbers and finding the input values
corresponding to them
Carrying out needed simulation
• Is used extensively in areas like capital budgeting;
inventory control; queuing analysis; and project
management
5
1. Simulation of Inventory Problems
1. A bakery keeps stock of a popular brand of cake.
Previous experience shows the daily demand
pattern for the item with associated probabilities, as
given below:
Daily Demand in no. 0 10 20 30 40 50
Probability 0.01 0.20 0.15 0.50 0.12 0.02
Expected demand =
240/10 = 24 units/day
Example 2
• A co. manufactures around 200 mopeds. Depending
upon the raw material availability & other conditions ,
the daily production has been varying from 196 mopeds
to 204 mopeds, whose probability distribution is as :
Daily 196 197 198 199 200 201 202 203 204
Production
Probability 0.05 0.09 0.12 0.14 0.20 0.15 0.11 0.08 0.06
Doctor’s idle time = nil, Avg waitg time= 285/8 = 35.6 minutes
Assignment no. 3 Ex- 1
1. A firm has single channel service station with the
following arrival and service time probability distribution.
The customer’s arrival at the service station is a random
phenomenon and the time between the arrivals varies
from 10 min to 30 min. The queuing process begins at 10
a.m. and proceeds for nearly 8 hours. An arrival goes to
the service facility immediately, if it is free. Otherwise it
will wait in a queue. The queue discipline is FCFS. If the
attendant’s wages are Rs.10/hr and the customer’s
waiting time costs Rs.15/hr, then would it be an
economical proposition to engage a second attendant?
Use Monte-Carlo simulation technique.
Assignment no. 3: Ex -1
Supply Demand
Available(kg) No. of Days Demand No. of days
(kg)
10 40 10 50
20 50 20 110
30 190 30 200
40 150 40 100
50 70 50 40
Assignment no. 3: Ex - 2
• The retailer buys commodity at Rs. 20/kg & sells
at Rs. 30/kg. If any of the commodity remains at
the end of the day it has no resale value and is a
dead loss. Moreover, the loss on any unsatisfied
demand is Rs. 8/kg. Given the following random
numbers. Simulate six days sales:
311863841579 073243758127
use the random no. alternatively.