Simulation Course Overview
Simulation Course Overview
Salah Uddin
Associate Professor, Dept. of MIS
University of Dhaka
Outlines of course Plan
1. Introduction to simulation
2. Probability concepts in Simulation
3. Random Number generators
4. Generating Random Variants
5. Simulation of Queuing systems
6. Output analysis for a Single System
7. Statistical Techniques for Comparing Alternative
Systems
8. Simulation of Manufacturing and Material Handling
Systems
Basic Terminology
In most simulation studies, we are concerned with
the simulation of some system.
Thus, in order to model a system, we must
understand the concept of a system.
Definition: A system is a collection of entities,
i.e., people or machines, that act and interact
toward the accomplishment of some logical end.
Systems generally tend to be dynamic – their status
changes over time. To describe this status, we use
the concept of the state of a system.
Example of a System
For example, one wants to study a bank to determine the
number of tellers needed to provide adequate service for
customers who want just to cash a check or make a
savings deposit, the system can be defined to be that
portion of the bank consisting of the tellers and customers
waiting in line or being served.
Component of a System
Systems
Entity Activity
Attribute
An entity is an An activity represents a time
An attribute is a
object of period of specified length
property of an entity
interest in the
system
Simulation
What is simulation:
Advantage:
5. Insight can be obtained about the interaction of variables.
6. Insight can be obtained about the importance of variables to
the performance of the system.
7. A simulation study can help in understanding how the system
operates than how the individual think the system operates.
8. “what if” questions can be answered. This is particularly
useful in the design of new systems.
Disadvantages of Simulation
Physical Mathematical
Numerical
Analytical
Numerical
System simulation
Distributed Lag Models
Models that have the properties of changing only at fixed
interval of time, and of basing current values of the
variables on other current values and values that
occurred in the previous intervals, are called distributed
lag models
D = a – bP
S = c + dP-1 1.5
D=S
Monte Carlo simulation
Simulation can also be defined as a technique of
performing sampling experiments on the model of the
system. This is called stochastic simulation and is a part of
simulation techniques. Because sampling from a particular
probability distribution involves the use of random
numbers, stochastic simulation is sometimes called Monte
Carlo Simulation. Historically, Monte Carlo method is
considered to be a technique, using random or pseudo
random numbers.
Monte Carlo simulation Using
Empirical data
The following steps simulate an assembly activity:
1. Collect empirical data on assembly times
2. Develop probability distribution and cumulative
probability distribution
3. Assign an interval of random numbers to each class
of the distribution.
4. Using random numbers (RNs), derive simulated
assembly times
5. Interpret the results.
Problems using Monte Carlo
Q. A process planner is working on plans for producing a
new detergent. She wishes to simulate raw-material
demand in order to plan for adequate materials-handling
and storage facilities. On the basis of usage for a similar
product produced previously, she was developed a
frequency distribution of demand in tons per day for a 2-
month period. Use this data to simulate the raw material
usage requirements for 7 periods (days)
Demand, X 10 11 12 13 14 15
(tons/day)
Frequency 6 18 15 12 6 3
(no. days)
(1) Data are given in frequencies
(2) To formulate a probability distribution, divide each
frequency by the total (60). Then formulate a cumulative
probability distribution by successively summing the
probability values is shown in the table
27 13 80 10 54 60 49
The first RN, 27 , falls into second class of the distribution and
corresponds to a demand of 11 tons/day.
Random number 27 13 80 10 54 60 49
Simulated demand 11 11 13 11 12 12 12
Difference between Monte Carlo
method and simulation
In the Monte Carlo method, time does not play as substantial
role, as it does in stochastic simulation.
2. The observations in the Monte Carlo method, as a rule, are
independent. In simulation, however, we experiment with the
model over time so, as a rule, the observations are serially
correlated.
3. In the Monte Carlo method, it is possible to express the
response as a rather simple function of the stochastic input
variants. In simulation the response is usually a very
complicated one and can be expressed explicitly only by the
computer program itself.
Questions
1. What is the difference between static and dynamic
models?
2. Give an example of a dynamic mathematical model.
3. (a) What are distributed lagged models?
(b) If demand and supply of a product obey following
equations. D = a + bP, S = c – dP and D = S
Here a, b, c, and d are given numbers, convert this model to
distributed lagged model.
1. Generator service co. (GSCO) has ongoing contracts
with several electric utilities wherein GSCO agrees to
provide technicians whenever a customer has a
generator shutdown and needs technical assistance.
Problem No. 1: The GSCO operations manager is concerned
with maintain enough technicians to give the needed
service while staying within a limited budget for
personnel. He has collected data on the number of
service request per day over a 200-day period as shown
in Table. (a) Simulate the service requests per day for a
week period by using random numbers applied to a
cumulative distribution. (b) compare the simulated
values with the historical average.
Number of 0 1 2 3 4 5 6
request
Frequency 30 40 60 44 20 6 0
2. Empirical data collected on time required to weld a
transformer bracket were recorded to the nearest quarter
minute, as shown in Table 1
Year G
1 20
2 25
3 30
4 35
5 40
THE END