Simulating Single server queuing models. Consider the following sequence of activities that each customer undergoes: 1.Customer arrives 2.Customer waits.

Slides:



Advertisements
Similar presentations
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. A PowerPoint Presentation Package to Accompany Applied Statistics.
Advertisements

Chapter 13 Queueing Models
Introduction into Simulation Basic Simulation Modeling.
+ Validation of Simulation Model. Important but neglected The question is How accurately does a simulation model (or, for that matter, any kind of model)
IE 429, Parisay, January 2003 Review of Probability and Statistics: Experiment outcome: constant, random variable Random variable: discrete, continuous.
Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
Queueing Models and Ergodicity. 2 Purpose Simulation is often used in the analysis of queueing models. A simple but typical queueing model: Queueing models.
Output analyses for single system
FIN 685: Risk Management Topic 5: Simulation Larry Schrenk, Instructor.
Nur Aini Masruroh Queuing Theory. Outlines IntroductionBirth-death processSingle server modelMulti server model.
Classification of Simulation Models
Chap. 20, page 1051 Queuing Theory Arrival process Service process Queue Discipline Method to join queue IE 417, Chap 20, Jan 99.
RAIDs Performance Prediction based on Fuzzy Queue Theory Carlos Campos Bracho ECE 510 Project Prof. Dr. Duncan Elliot.
Steps of a sound simulation study
Simulation.
Simulation with ArenaChapter 2 – Fundamental Simulation Concepts Discrete Event “Hand” Simulation of a GI/GI/1 Queue.
Lecture 9 Output Analysis for a Single Model. 2  Output analysis is the examination of data generated by a simulation.  Its purpose is to predict the.
Simulating Single server queuing models. Consider the following sequence of activities that each customer undergoes: 1.Customer arrives 2.Customer waits.
Chapter 14 Simulation. Monte Carlo Process Statistical Analysis of Simulation Results Verification of the Simulation Model Computer Simulation with Excel.
Value of Information for Complex Economic Models Jeremy Oakley Department of Probability and Statistics, University of Sheffield. Paper available from.
SIMULATION. Simulation Definition of Simulation Simulation Methodology Proposing a New Experiment Considerations When Using Computer Models Types of Simulations.
Lecture 4 Mathematical and Statistical Models in Simulation.
Lab 01 Fundamentals SE 405 Discrete Event Simulation
Basic Simulation Modeling II
Monté Carlo Simulation MGS 3100 – Chapter 9. Simulation Defined A computer-based model used to run experiments on a real system.  Typically done on a.
Graduate Program in Engineering and Technology Management
Modeling and Simulation
Simulation Output Analysis
Simulation Examples ~ By Hand ~ Using Excel
1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation.
Modeling & Simulation: An Introduction Some slides in this presentation have been copyrighted to Dr. Amr Elmougy.
Chapter 10. Simulation An Integrated Approach to Improving Quality and Efficiency Daniel B. McLaughlin Julie M. Hays Healthcare Operations Management.
ETM 607 – Discrete Event Simulation Fundamentals Define Discrete Event Simulation. Define concepts (entities, attributes, event list, etc…) Define “world-view”,
+ Simulation Design. + Types event-advance and unit-time advance. Both these designs are event-based but utilize different ways of advancing the time.
Simulation is the process of studying the behavior of a real system by using a model that replicates the behavior of the system under different scenarios.
Monté Carlo Simulation  Understand the concept of Monté Carlo Simulation  Learn how to use Monté Carlo Simulation to make good decisions  Learn how.
SIMULATION OF A SINGLE-SERVER QUEUEING SYSTEM
McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved. 1.
MODELING EXAMPLES Types of model Conceptual Containing components that have not been clearly Identified in terms of theoretic categories such as state,
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All rights reserved.
1 1 Slide Simulation Professor Ahmadi. 2 2 Slide Simulation Chapter Outline n Computer Simulation n Simulation Modeling n Random Variables and Pseudo-Random.
1 1 Slide © 2004 Thomson/South-Western Simulation n Simulation is one of the most frequently employed management science techniques. n It is typically.
Discrete Event Simulation
(C) J. M. Garrido1 Objects in a Simulation Model There are several objects in a simulation model The activate objects are instances of the classes that.
Delays  Deterministic Assumes “error free” type case Delay only when demand (known) exceeds capacity (known)  Stochastic Delay may occur any time Random.
Advantages of simulation 1. New policies, operating procedures, information flows and son on can be explored without disrupting ongoing operation of the.
MAT 4830 Mathematical Modeling 04 Monte Carlo Integrations
CS433 Modeling and Simulation Lecture 09 – Part 02 Discrete Events Simulation Dr. Anis Koubâa 27 Dec 2008 Al-Imam.
ENM 307 Simulation Department of Industrial Engineering Anadolu University SPRING 2016 Chapter 1 Basic Simulation Modeling Onur Kaya END 201, Ext: 6439.
 Simulation enables the study of complex system.  Simulation is a good approach when analytic study of a system is not possible or very complex.  Informational,
MODELING AND SIMULATION CS 313 Simulation Examples 1.
Simulation Examples And General Principles Part 2
Building Valid, Credible & Appropriately Detailed Simulation Models
Chapter 2 Simulation Examples. Simulation steps using Simulation Table 1.Determine the characteristics of each of the inputs to the simulation (probability.
Modeling and Simulation
Introduction To Modeling and Simulation 1. A simulation: A simulation is the imitation of the operation of real-world process or system over time. A Representation.
Modelling & Simulation of Semiconductor Devices Lecture 1 & 2 Introduction to Modelling & Simulation.
Computer Simulation Henry C. Co Technology and Operations Management,
OPERATING SYSTEMS CS 3502 Fall 2017
Prepared by Lloyd R. Jaisingh
ECO 173 Chapter 10: Introduction to Estimation Lecture 5a
ADVANTAGES OF SIMULATION
Simulation Department of Industrial Engineering Anadolu University
Modeling and Simulation CS 313
ECO 173 Chapter 10: Introduction to Estimation Lecture 5a
Onur Kaya END 201, Ext: 6439 ENM 307 Simulation Department of Industrial Engineering Anadolu University SPRING 2018 Chapter.
Discrete Event “Hand” Simulation of a GI/GI/1 Queue
Lecture 18 Syed Mansoor Sarwar
MECH 3550 : Simulation & Visualization
MECH 3550 : Simulation & Visualization
Presentation transcript:

Simulating Single server queuing models

Consider the following sequence of activities that each customer undergoes: 1.Customer arrives 2.Customer waits for service if the server is busy. 3.Customer receives service. 4.Customer departs the system.

Analytical Solutions Analytical solutions for W, L, Wq, Lq exist However, analytical solution exist at infinity which cannot be reached. Therefore, Simulation is a most.

Flowchart of an arrival event IdleBusy An Arrival Status of Server Customer joins queue Customer enters service More

Flowchart of a Departure event NOYes A Departure Queue Empty ? Set system status to idle Remove customer from Queue and begin service More

An example of a hand simulation Consider the following IAT’s and ST’s: A1=0.4, A2=1.2, A3=0.5, A4=1.7, A5=0.2, A6=1.6, A7=0.2, A8=1.4, A9=1.9, … S1=2.0, S2=0.7, S3=0.2, S4=1.1, S5=3.7, S6=0.6 Want: Average delay in queue Utilization

Initialization Time = 0 system Server System state Server status # in que Times of Arrival Time Of Last event Clock Eventlist Number delayed Total delay Area Under Q(t) Area Under B(t) A D Statistical Counters

Arrival Time = 0.4 system System state Server status # in que Times of Arrival Time Of Last event Clock Eventlist Number delayed Total delay Area Under Q(t) Area Under B(t) A D 0.4 A1=0.4, A2=1.2, A3=0.5, A4=1.7, A5=0.2, A6=1.6, A7=0.2, A8=1.4 S1=2.0, S2=0.7, S3=0.2, S4=1.1, S5=3.7, S6=0.6 Statistical Counters

Arrival Time = 1.6 system System state Server status # in que Times of Arrival Time Of Last event Clock Eventlist Number delayed Total delay Area Under Q(t) Area Under B(t) A D A1=0.4, A2=1.2, A3=0.5, A4=1.7, A5=0.2, A6=1.6, A7=0.2, A8=1.4 S1=2.0, S2=0.7, S3=0.2, S4=1.1, S5=3.7, S6=0.6 Statistical Counters

Arrival Time = System state Server status # in que Times of Arrival Time Of Last event Clock Eventlist Number delayed Total delay Area Under Q(t) Area Under B(t) A D System 2.1 A1=0.4, A2=1.2, A3=0.5, A4=1.7, A5=0.2, A6=1.6, A7=0.2, A8=1.4 S1=2.0, S2=0.7, S3=0.2, S4=1.1, S5=3.7, S6=0.6 Statistical Counters

Departure Time = System state Server status # in que Times of Arrival Time Of Last event Clock Eventlist Number delayed Total delay Area Under Q(t) Area Under B(t) A D System A1=0.4, A2=1.2, A3=0.5, A4=1.7, A5=0.2, A6=1.6, A7=0.2, A8=1.4 S1=2.0, S2=0.7, S3=0.2, S4=1.1, S5=3.7, S6=0.6 Statistical Counters

Departure Time = System state Server status # in que Times of Arrival Time Of Last event Clock Eventlist Number delayed Total delay Area Under Q(t) Area Under B(t) A D 2.1 System A1=0.4, A2=1.2, A3=0.5, A4=1.7, A5=0.2, A6=1.6, A7=0.2, A8=1.4 S1=2.0, S2=0.7, S3=0.2, S4=1.1, S5=3.7, S6=0.6 Statistical Counters

Departure Time = System state Server status # in que Times of Arrival Time Of Last event Clock Eventlist Number delayed Total delay Area Under Q(t) Area Under B(t) A D System A1=0.4, A2=1.2, A3=0.5, A4=1.7, A5=0.2, A6=1.6, A7=0.2, A8=1.4 S1=2.0, S2=0.7, S3=0.2, S4=1.1, S5=3.7, S6=0.6 Statistical Counters

Departure Time = System state Server status # in que Times of Arrival Time Of Last event Clock Eventlist Number delayed Total delay Area Under Q(t) Area Under B(t) A D System 3.8 A1=0.4, A2=1.2, A3=0.5, A4=1.7, A5=0.2, A6=1.6, A7=0.2, A8=1.4 S1=2.0, S2=0.7, S3=0.2, S4=1.1, S5=3.7, S6=0.6 Statistical Counters

Departure Time = System state Server status # in que Times of Arrival Time Of Last event Clock Eventlist Number delayed Total delay Area Under Q(t) Area Under B(t) A D System A1=0.4, A2=1.2, A3=0.5, A4=1.7, A5=0.2, A6=1.6, A7=0.2, A8=1.4 S1=2.0, S2=0.7, S3=0.2, S4=1.1, S5=3.7, S6=0.6 Statistical Counters

Departure Time = System state Server status # in que Times of Arrival Time Of Last event Clock Eventlist Number delayed Total delay Area Under Q(t) Area Under B(t) A D System 4.0 A1=0.4, A2=1.2, A3=0.5, A4=1.7, A5=0.2, A6=1.6, A7=0.2, A8=1.4 S1=2.0, S2=0.7, S3=0.2, S4=1.1, S5=3.7, S6=0.6 Statistical Counters

Monte Carlo Simulation Solving deterministic problems using stochastic models. –Example: estimate It is efficient in solving multi dimensional integrals.

Monte Carlo Simulation To illustrate, consider a known region R with area A and R 1 subset of R whose area A 1 in unknown. To estimate the area of R 1 we can through random points in the region R. The ratio of points in the region R 1 over the points in R approximately equals the ratio of A 1 /A. R R1R1

Monte Carlo Simulation To estimate the integral I. one can estimate the area under the curve of g. –Suppose that M = max {g(x) } on [a,b] ab R1R1 R M 1. Select random numbers X1, X2, …,Xn in [a,b] And Y1, Y2, …,Yn in [0,M] 2. Count how many points (Xi,Yi) in R 1, say C 1 3. The estimate of I is then C 1 M(b-a)/n

Advantages of Simulation Most complex, real-world systems with stochastic elements that cannot be described by mathematical models. Simulation is often the only investigation possible Simulation allow us to estimate the performance of an existing system under proposed operating conditions. Alternative proposed system designs can be compared with the existing system We can maintain much better control over the experiments than with the system itself Study the system with a long time frame

Disadvantages of Simulation Simulation produces only estimates of performance under a particular set of parameters Expensive and time consuming to develop The Large volume of numbers and the impact of the realistic animation often create high level of confidence than is justified.

Pitfalls of Simulation Failure to have a well defined set of objectives at the beginning of the study Inappropriate level of model details Failure to communicate with manager during the course of simulation Treating a simulation study as if it is a complicated exercise in computer programming Failure to have well trained people familiar with operations research and statistical analysis Using commercial software that may contain errors

Pitfalls of Simulation cont. Reliance on simulator that make simulation accessible to anyone Misuse of animation Failure to account correctly for sources of randomness in the actual system Using arbitrary probability distributions as input of the simulation Do output analysis un correctly Making a single replication and treating the output as true answers Comparing alternative designs based on one replication of each design Using wrong measure of performance