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
Waiting Line Management
Advertisements

Introduction into Simulation Basic Simulation Modeling.
Simulating Single server queuing models. Consider the following sequence of activities that each customer undergoes: 1.Customer arrives 2.Customer waits.
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.
Lab Assignment 1 COP 4600: Operating Systems Principles Dr. Sumi Helal Professor Computer & Information Science & Engineering Department University of.
 1  Outline  performance measures for a single-server station  discrete-event simulation  hand simulation  process-oriented simulation approach.
Event-drive SimulationCS-2303, C-Term Project #3 – Event-driven Simulation CS-2303 System Programming Concepts (Slides include materials from The.
Simulation. Example: A Bank Simulator We are given: –The number of tellers –The arrival time of each customer –The amount of time each customer requires.
Simulation of multiple server queuing systems
Nur Aini Masruroh Queuing Theory. Outlines IntroductionBirth-death processSingle server modelMulti server model.
Simulation A Queuing Simulation. Example The arrival pattern to a bank is not Poisson There are three clerks with different service rates A customer must.
Chap. 20, page 1051 Queuing Theory Arrival process Service process Queue Discipline Method to join queue IE 417, Chap 20, Jan 99.
#11 QUEUEING THEORY Systems Fall 2000 Instructor: Peter M. Hahn
Simulation A Queuing Simulation. Example The arrival pattern to a bank is not Poisson There are three clerks with different service rates A customer must.
Components and Organization of Discrete-event Simulation Model
Simulation with ArenaChapter 2 – Fundamental Simulation Concepts Discrete Event “Hand” Simulation of a GI/GI/1 Queue.
Module C10 Simulation of Inventory/Queuing Models.
Queuing. Elements of Waiting Lines  Population –Source of customers Infinite or finite.
CPSC 531: DES Overview1 CPSC 531:Discrete-Event Simulation Instructor: Anirban Mahanti Office: ICT Class Location:
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 14-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 14.
Lecture 4 Mathematical and Statistical Models in Simulation.
Lab 01 Fundamentals SE 405 Discrete Event Simulation
Graduate Program in Engineering and Technology Management
Queuing Theory (Waiting Line Models)
Simulation Examples ~ By Hand ~ Using Excel
INDR 343 Problem Session
1 Chapter 2 Fundamental Simulation Concepts Dr. Jason Merrick.
ETM 607 – Discrete Event Simulation Fundamentals Define Discrete Event Simulation. Define concepts (entities, attributes, event list, etc…) Define “world-view”,
Entities and Objects The major components in a model are entities, entity types are implemented as Java classes The active entities have a life of their.
1 QUEUES. 2 Definition A queue is a linear list in which data can only be inserted at one end, called the rear, and deleted from the other end, called.
Example simulation execution The Able Bakers Carhops Problem There are situation where there are more than one service channel. Consider a drive-in restaurant.
1 Queuing Systems (2). Queueing Models (Henry C. Co)2 Queuing Analysis Cost of service capacity Cost of customers waiting Cost Service capacity Total.
Chapter 2 – Fundamental Simulation ConceptsSlide 1 of 46 Chapter 2 Fundamental Simulation Concepts.
SIMULATION EXAMPLES QUEUEING SYSTEMS.
SIMULATION OF A SINGLE-SERVER QUEUEING SYSTEM
NETW 707 Modeling and Simulation Amr El Mougy Maggie Mashaly.
WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 25 Simulation.
1 Simulation Implementation Using high-level languages.
MGTSC 352 Lecture 25: Congestion Management MEC example Manufacturing example.
Introduction to Uncertainty Simulation of Operations.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
Structure of a Waiting Line System Queuing theory is the study of waiting lines Four characteristics of a queuing system: –The manner in which customers.
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.
Waiting Line Theory Akhid Yulianto, SE, MSc (log).
1 1 Slide Chapter 12 Waiting Line Models n The Structure of a Waiting Line System n Queuing Systems n Queuing System Input Characteristics n Queuing System.
Delays  Deterministic Assumes “error free” type case Delay only when demand (known) exceeds capacity (known)  Stochastic Delay may occur any time Random.
SIMULATION EXAMPLES. Monte-Carlo (Static) Simulation Estimating profit on a sale promotion Estimating profit on a sale promotion Estimating profit on.
EVOLUTION OF INDUSTRIAL ENGINEERING Prof. Dr. Orhan TORKUL Res. Asst. M. Raşit CESUR Res. Asst. Furkan YENER.
 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,
Queuing Models.
MODELING AND SIMULATION CS 313 Simulation Examples 1.
Simulation Examples And General Principles Part 2
Simulation of single server queuing systems
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
ETM 607 – Spreadsheet Simulations
Discrete Event Simulation
Modeling and Simulation CS 313
Demo on Queuing Concepts
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Queuing Systems Don Sutton.
More Explanation of an example in chapter4
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Variability 8/24/04 Paul A. Jensen
Simulation Continuous Variables Simulation Continuous Vars
Discrete Event “Hand” Simulation of a GI/GI/1 Queue
MECH 3550 : Simulation & Visualization
SIMULATION EXAMPLES QUEUEING SYSTEMS.
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.

Example Arrival rate ( =15) customers per hour Service time = 3 minutes (service rate (  = 20) customer per hour Arrival and Service times are exponentially distributed Note: the generation of Exponential Random Variable is: –Generate uniform [0,1] RN: RAND() –Return X = -1/ * ln(RAND())

Analytical Solutions Analytical solutions for W, L, Wq, Lq exist (see Lecture 05) 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