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.

Slides:



Advertisements
Similar presentations
Waiting Line Management
Advertisements

Structure of a Waiting Line System
Simulating Single server queuing models. Consider the following sequence of activities that each customer undergoes: 1.Customer arrives 2.Customer waits.
Module C8 Queuing Economic/Cost Models. ECONOMIC ANALYSES Each problem is different Examples –To determine the minimum number of servers to meet some.
Lab Assignment 1 COP 4600: Operating Systems Principles Dr. Sumi Helal Professor Computer & Information Science & Engineering Department University of.
QUEUING MODELS Based on slides for Hilier, Hiller, and Lieberman, Introduction to Management Science, Irwin McGraw-Hill.
Queuing Models M/M/k Systems. CLASSIFICATION OF QUEUING SYSTEMS Recall that queues are classified by (Arrival Dist.)/(Service Dist.)/(# servers) Designations.
Simulation of multiple server queuing systems
The Theory of Queues Models of Waiting in line. Queuing Theory Basic model: Arrivals  Queue  Being Served  Done – Queuing theory lets you calculate:
Queuing Models Basic Concepts
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.
Model Antrian By : Render, ect. Outline  Characteristics of a Waiting-Line System.  Arrival characteristics.  Waiting-Line characteristics.  Service.
WAITING LINES AND SIMULATION I. WAITING LINES (QUEUEING) : II. SIMULATION.
Queuing Models Economic Analyses. ECONOMIC ANALYSES Each problem is different Examples –To determine the minimum number of servers to meet some service.
Simulation An Inventory Simulation. Example Daily demand for refrigerators at Hotpoint City has a probability distribution Lead time is not fixed but.
CSE 221: Probabilistic Analysis of Computer Systems Topics covered: Simple queuing models (Sec )
Waiting Line Models And Service Improvement
Other Markovian Systems
Simulation with ArenaChapter 2 – Fundamental Simulation Concepts Discrete Event “Hand” Simulation of a GI/GI/1 Queue.
MGTSC 352 Lecture 23: Congestion Management Introduction: Asgard Bank example Simulating a queue Types of congested systems, queueing template Ride’n’Collide.
The Theory of Queues Models of Waiting in line. Queuing Theory Basic model: Arrivals  Queue  Being Served  Done – Queuing theory lets you calculate:
Simulating Single server queuing models. Consider the following sequence of activities that each customer undergoes: 1.Customer arrives 2.Customer waits.
Module C10 Simulation of Inventory/Queuing Models.
Queuing. Elements of Waiting Lines  Population –Source of customers Infinite or finite.
The Poisson process and exponentially distributed service time In real life customers don’t arrive at pre-ordained times as specified in the last tutorial…
QUEUING MODELS Queuing theory is the analysis of waiting lines It can be used to: –Determine the # checkout stands to have open at a store –Determine the.
Lab 01 Fundamentals SE 405 Discrete Event Simulation
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?
Lecture 14 – Queuing Systems
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc., All Rights Reserved. Waiting Line Models.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 Slide © 2001 South-Western College Publishing/Thomson Learning Anderson Sweeney Williams Anderson Sweeney Williams Slides Prepared by JOHN LOUCKS QUANTITATIVE.
4/11: Queuing Models Collect homework, roll call Queuing Theory, Situations Single-Channel Waiting Line System –Distribution of arrivals –Distribution.
1 Queuing Analysis Overview What is queuing analysis? - to study how people behave in waiting in line so that we could provide a solution with minimizing.
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.
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.
1 Systems Analysis Methods Dr. Jerrell T. Stracener, SAE Fellow SMU EMIS 5300/7300 NTU SY-521-N NTU SY-521-N SMU EMIS 5300/7300 Queuing Modeling and Analysis.
Queuing Queues are a part of life and waiting to be served is never really pleasant. The longer people wait the less likely they are to want to come back.
1 Queuing Systems (2). Queueing Models (Henry C. Co)2 Queuing Analysis Cost of service capacity Cost of customers waiting Cost Service capacity Total.
MGTSC 352 Lecture 25: Congestion Management MEC example Manufacturing example.
M/M/1 Queues Customers arrive according to a Poisson process with rate. There is only one server. Service time is exponential with rate  j-1 jj+1...
Copyright 2006 John Wiley & Sons, Inc. Beni Asllani University of Tennessee at Chattanooga Waiting Line Analysis for Service Improvement Operations Management.
Waiting Lines and Queuing Theory Models
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
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.
CDAE Class 20 Nov. 2 Last class: Results of the midterm exam 4. Queuing analysis and midterm exam Today: 4. Queuing analysis and applications Next.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
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.
Introduction Definition M/M queues M/M/1 M/M/S M/M/infinity M/M/S/K.
Example 14.3 Queuing | 14.2 | 14.4 | 14.5 | 14.6 | 14.7 |14.8 | Background Information n County Bank has several.
Random Variables r Random variables define a real valued function over a sample space. r The value of a random variable is determined by the outcome of.
Simulation of single server queuing systems
Inter Arrival Times. Instead of giving a chance that someone, or something arrives in a particular time interval or not, we use the inter arrival times.
Queuing Theory. Model Customers arrive randomly in accordance with some arrival time distribution. One server services customers in order of arrival.
Queuing Models Economic Analyses.
Internet Queuing Delay Introduction
Demo on Queuing Concepts
Internet Queuing Delay Introduction
Solutions Hwk Que3 1 The port of Miami has 3 docking berths for loading and unloading ships but is considering adding a 4th berth.
DECISION MODELING WITH Prentice Hall Publishers and
Lecture 13 – Queuing Systems
Discrete Event “Hand” Simulation of a GI/GI/1 Queue
Solutions Hwk Que3 1 The port of Miami has 3 docking berths for loading and unloading ships but is considering adding a 4th berth.
On average, there are 3(4.42) =13.26 claims waiting be processed.
Queuing Theory III.
Queuing Theory III.
Queuing Theory III.
Presentation transcript:

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 choose which idle server to go to These conditions do not meet the restrictions of queuing models developed earlierThese conditions do not meet the restrictions of queuing models developed earlier

TIME BETWEEN ARRIVALS MINUTES PROB RN

SERVICE TIME FOR ANN MINUTES PROB RN

SERVICE TIME FOR BOB MINUTES PROB RN

SERVICE TIME FOR CARL MINUTES PROB RN

CHOICE OF SERVER ALL THREE SERVERS IDLE CHOICE PROB RN ANN1/ BOB1/ CARL1/ * (* Carl’s prob. is.0001 more than 1/3) TWO SERVERS IDLE (A/B), (A/C), (B,C) CHOICE: A/B A/C B/C PROB RN Ann Ann Bob 1/2 0-4 Bob Carl Carl 1/25-9

ARBITRARY CHOICE OF COLUMNS FOR SIMULATION EVENT COLUMN ARRIVALS 10 CHOICE OF SERVER 15 ANN’S SERVICE 1 BOB’S SERVICE 2 CARL’S SERVICE 3

DESIRED QUANTITIES W Q -- the average waiting time in queue W -- the average waiting time in system L Q -- the average # customers in the queue L -- the average # customers in the system If we get estimates for W q and W, then from Little’s Laws we can estimate: –L Q = W Q –L = W

WILL WE REACH STEADY STATE? Average time between arrivals = 1/ =.4(1) +.3(2) +.2(3) +.1(4) = 2.0 minutes = 60/2 = 30/hr. Ann’s average service time = 1/  A =.1(3) +.2(4) + …+.05(9) = 5.3 minutes  A = 60/5.3 = 11.32/hr.

WILL WE REACH STEADY STATE? Bob’s average service time = 1/  B =.05(2) +.1(3) + …+.05(9) = 5.5 minutes  B = 60/5.5 = 10.91/hr. Carl’s average service time = 1/  C =.25(6) +.50(7) +.25(8) = 7 minutes  C = 60/7 = 8.57/hr. = 30/hr.  A +  B +  C = = 30.8/hr. Will reachSteady State! Will reach Steady State!

THE SIMULATION # RN IAT AT W Q RN SERV SB RN ST SE W : B 8: : : C : : B : : A 8: : : C : : B 8: : : A 8: : : C 8: : : B 8: :28 10

SIMULATION (CONT’D) # RN IAT AT W Q RN SERV SB RN ST SE W : A 8: : : A 8: : : C 8: : : B 8: : : A 8: : : C 8: : : B 8: : : A 8: : : B 8: :44 10

CALCULATING THE STEADY STATE QUANTITIES The quantities we want are steady state quantities -- –The system must be allowed to settle down to steady state –Throw out the results from the first n customers Here we use n = 8 –Average the results of the rest Here we average the results of customers 9 -18

CALCULATIONS FOR W, W q Total Wait in the queue of the last 10 customers = ( ) = 49 min. W Q  4.9 min. W Q  49/10 = 4.9 min. Total Wait in the queue of the last 10 customers = ( ) = 90 min. W  9.0 min. W  90/10 = 9.0 min.

CALCULATIONS FOR L, L q Little’s Laws: L Q = W Q and L = W and W and W q must be in the same time units – = 30/hr. =.5/min. L Q 2.45L Q = W Q  (.5)(4.9) = 2.45 L4.50L = W  (.5)(9.0) = 4.50 ρ2.05ρ = est. of system utilization  = 2.05 Est. of Average number of idle workers 0.95Est. of Average number of idle workers  = 0.95

Review Simulation of Queuing Models to Determine System Parameters Check to See if Steady State Will Be Reached Determine random number mappings Use of pseudorandom numbers to estimate W Q and W Ignore the results from the first few arrivals Use Little’s Laws to get L, L Q Average Number of Busy Workers = L - L Q