MIE360 Computer Modeling and Simulation
Lecture Notes
Lecture 6 Crunching the Simulation Numbers
This time we will actually simulate the system using the flow charts previously developed.
But to save time we will start with the Clock with the arrival of t
MIE360 Computer Modeling and Simulation
Lecture Notes
Lecture 14. What is queuing theory?
Suppose that you have
1. a line up of people waiting for the bank, a cashier, video store, the bank
2. fires waiting to be extinguished by a limited crew of firefigh
MIE360 Computer Modeling and Simulation
Lecture Notes
Lecture 11 Comparing Two Alternatives
Suppose you
carry out an initial trial of 5 runs with the following results: 9.29, 2.14, 6.57, 11.14, & 12.57.
then make a single change to your model, e.g. you in
MIE360 Computer Modeling and Simulation
Lecture Notes
Lecture 12: Moving from Simulation to Queuing Theory
Is Simulation the only method for analyzing the types of systems we have been looking at in the labs?
There is an analytical approach called Queuing
MIE360 Computer Modeling and Simulation
Lecture Notes
Lecture 16. Special role of Exponential Distribution.
It is the only distribution that satisfies a very important property: the forgetful or memoryless property:
Expon(0.50)
2.5
2
1.5
1
0.5
0
0
1
2
3
P
D
C
A
2
PDCAforasimulation/queuingstudy
Formulate
and plan
study
P
l
a
n
Develop
model
structure
Model=User
Assumptions
No
Yes
AreQueuing
Models
Sufficient?
Yes
Develop
Queuing
Model!
No
Develop
Simulation(DES)
Model!
3
Collect input data for
input dist
Random Events
System
y
Modeling
g and Simulation
(MIE360)
Pedram Sahba
1
Some Materials Originally Developed by Daniel Frances.
Review
General Purpose Flow Chart for DES
Next Event Advance Approach (NEAA)
Definitions
1 Simulation clock
1.
2. Counters
3.
Pilot Runs
R ns
(Warmup Period, Number of Replications)
System
y
Modeling
g and Simulation
(MIE360)
Pedram Sahba
1
Some Material Originally Developed by Daniel Frances
Review
Using CLT to form a Confidence Interval
Quantitative Validation
Comparing Si
What is Simulation?
System Modeling and Simulation
(MIE360)
Pedram Sahba
1
Some content originally developed by Daniel Frances.
System Modeling and Simulation
System: A regularly interacting or interdependent
group of items forming a unified whole.
Manu
Queueing Theory
System
y
Modeling
g and Simulation
(MIE360)
Pedram Sahba
1
Some Materials Originally Developed by Daniel Frances
Review
Whatif Analysis Comparing Alternatives
P
Pairedt
i d t Confidence
C fid
IInterval
t
l
Welchs Confidence Interval
MIE360(Fall 2013)
Tutorial # 2
Question 1:
From 4.1 in textbook (page 261)
Question 2:
From 4.2 in textbook (page 261)
Question 3:
You have landed a PEY position in a company that looks after the transportation
needs of arriving passengers at an airport,
Lab Title Basics of Simulation
Learning Objectives

Become familiar with the SIMUL8 user interface.
Learn how to build a simple simulation model.
Learn how to run a simulation model and collect data.

Work Entry Point
o Work entry points are where work
MIE360H: System Modeling and Simulation (Fall 2013)
Course Project
1. Introduction
You are a consultant at a simulation consulting company. Your company has been
recently hired by AUTO360, a local repair shop, to develop a simulation model for them.
This
Lab Title LAB 2: Basic Objects and Distribution
Learning Objectives


Learn how to use the basic objects of Simul8
Learn how to incorporate distributions into simulation models
Learn how to build and run a simulation model using basic objects and distri
MIE360 Computer Modeling and Simulation
Lecture Notes
Lecture 10 Make Pilot Runs
Yes
Determine # of
replications
Yes
Include
Transient
No
Determine the
Warmup period
Determine # of
replications
Terminating
Simulation
No
Determine the
run lengths
The Warm
MIE360: System Modeling and Simulation
Lecture Notes
Lecture 9 Are the Actuals significantly different than the Simulated Data
Observation
1
2
3
4
5
Actual
3.5
4.2
3.2
5.1
2.8
Simulated
4.1
1.7
2.3
1.9
0.5
Normally it can be assumed that these two sets of
MIE360 Computer Modeling and Simulation
Lecture Notes
Overview of Input Distribution Fitting
This portion of the course will assume that the data is IID, and it will explain how the specialized
distribution fitting software packages work.
The following fl
MIE360 Computer Modeling and Simulation
Lecture Notes
Lecture 16 Fitting Continuous Input Distributions
This material will largely duplicate the analysis for the discrete case, with the exceptions as highlighted
in gray.
Type of
random
variable
Discrete
C
MIE360 Computer Modeling and Simulation
Lecture Notes
Lecture 17 Checking if data is IID.
In the lab you have learned how to build a DES simulation model and we dealt with deriving input
distributions from the collected data. But before we move on, we nee
MIE360 Computer Modeling and Simulation
Lecture Notes
Lecture 18 Testing if data is IID (identically and independently distributed)
In this lecture we will only introduce some terminology and tests to determine if there might be a
problem. If the data is
MIE360 Computer Modeling and Simulation
Lecture Notes
Lecture 20 Comparing Multiple Alternatives
So far we have only learned how to compare simulation outputs from two alternatives. We used both the
pairedt and Welchs Confidence Intervals, and the notion
MIE360 Computer Modeling and Simulation
Lecture Notes
Lecture 21 Too Many Comparisons!
Earlier we mentioned that to consider 4 different types of additional resources in a model, two possible
levels for each resource, you need to simulate 24 = 16 scenario
Systems Modelling and Simulation
IV  AEESCBASEM, III  AEINDBASC, IV AEMECBASC
3//2/0.50
Principles for developing, testing and using discrete event simulation
models for system performance improvement. Simulation languages,
generating random variables,
MIE360 Computer Modeling and Simulation
Lecture Notes
MIE360 Lecture 2. What is simulation?
What is this course all about?
We need an example?
Consider four roommates that share an apartment.
You are one of them!
You just got a job and you want to set the
Considerasimplesetting
Youareanattendantinasmallstore79pm
What%ofthetimewillyoubeabletostudy?
Onaverage,howmanyclientswaittopay?
Onaverage,howlongdoclientshavetowait?
1
P
D
C
A
2
PDCAforasimulation/queuingstudy
Formulate
and plan
study
P
l
a
n
Develop
MIE360 Computer Modeling and Simulation
Lecture Notes
MIE360 Lecture 4. A Generic Simulation Flow Chart
Most systems modelled with DES consist of a network of waiting lines. Items wait in line waiting for
service, after which they come somewhere else to w
MIE360 Computer Modeling and Simulation
Lecture Notes
MIE360 Lecture 5. Generating Random Events (and other random variates)
We are almost ready to run a handsimulation of the small store to find out, for example, what is the
expected % of idle time you
Model Verification &
Validation
1
How to Build the Right Model?
Verify the model.
Validate the model.
Schedule project to keep same players
Validate again
2
Verification
1.
2.
3.
4.
5.
6.
7.
Modular debugging
Share model with others
Test with wide range o
MIE360 System Modeling and Simulation
Lecture Notes
Lecture 8 The Role of the Central Limit Theorem in Quantitative Validation
Suppose you completed the model to estimate the average time it takes parts to flow through the
system.
Every time you run the s
MIE360H: System Modeling and Simulation (Fall 2013)
Course Project
1. Introduction
You are a consultant at a simulation consulting company. Your company has been
recently hired by AUTO360, a local repair shop, to develop a simulation model for them.
This