Queuing Theory. Introduction Queuing is the study of waiting lines, or queues. The objective of queuing analysis is to design systems that enable organizations.

Slides:



Advertisements
Similar presentations
Introduction Queuing is the study of waiting lines, or queues.
Advertisements

QUEUING THEORY/WAITING LINE ANALYSIS
LESSONs NINE and TEN QUEUING MODELS.
Queuing Models.
Review of Probability Distributions
Nur Aini Masruroh Queuing Theory. Outlines IntroductionBirth-death processSingle server modelMulti server model.
Queuing Models Basic Concepts
Final Exam Tuesday, December 9 2:30 – 4:20 pm 121 Raitt Hall Open book
Queuing Models Basic Concepts. QUEUING MODELS Queuing is the analysis of waiting lines It can be used to: –Determine the # checkout stands to have open.
Model Antrian By : Render, ect. Outline  Characteristics of a Waiting-Line System.  Arrival characteristics.  Waiting-Line characteristics.  Service.
Waiting Lines and Queuing Theory Models
Queuing Systems Chapter 17.
Queuing CEE 320 Anne Goodchild.
Waiting Line Models And Service Improvement
Queuing and Transportation
CEE 320 Fall 2008 Queuing CEE 320 Anne Goodchild.
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 14-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 14.
Lecture 11 Queueing Models. 2 Queueing System  Queueing System:  A system in which items (or customers) arrive at a station, wait in a line (or queue),
CEE 320 Spring 2007 Queuing CEE 320 Steve Muench.
1 Service A Queuing System Arrival Rate (  Average Number in Queue ( L q ) Avg Time in System ( W ) Avg Number in System ( L ) Average Wait in Queue.
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 14-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 14.
Operations Management Waiting-Line Models Module D
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.
Chapter 9: Queuing Models
Group members  Hamid Ullah Mian  Mirajuddin  Safi Ullah.

Queuing Theory (Waiting Line Models)
Queuing Models and Capacity Planning
Spreadsheet Modeling & Decision Analysis
Introduction to Management Science
Management of Waiting Lines McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
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.
Chapter 9 Queuing Models.
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.
Waiting Line and Queuing Theory Kusdhianto Setiawan Gadjah Mada University.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
1 Elements of Queuing Theory The queuing model –Core components; –Notation; –Parameters and performance measures –Characteristics; Markov Process –Discrete-time.
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.
Waiting Lines and Queuing Models. Queuing Theory  The study of the behavior of waiting lines Importance to business There is a tradeoff between faster.
1 Queuing Systems (2). Queueing Models (Henry C. Co)2 Queuing Analysis Cost of service capacity Cost of customers waiting Cost Service capacity Total.
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
Traffic Flow Fundamentals
1 ISE 195 Introduction to Industrial & Systems Engineering.
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.
Chapter 1 Introduction. “Wait-in-line” is a common phenomenon in everywhere. Reason: Demand is more than service. “How long must a customer wait?” or.
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.
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.
© 2015 McGraw-Hill Education. All rights reserved. Chapter 17 Queueing Theory.
Management of Waiting Lines Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent.
Queuing Models.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
Simple Queueing Theory: Page 5.1 CPE Systems Modelling & Simulation Techniques Topic 5: Simple Queueing Theory  Queueing Models  Kendall notation.
Queuing Models Part 1: Basics
Models of Traffic Flow 1.
Queueing Theory What is a queue? Examples of queues:
Chapter 9: Queuing Models
Solutions Queueing Theory 1
Delays Deterministic Stochastic Assumes “error free” type case
System Performance: Queuing
Queuing Analysis Two analytical techniques can be employed to study queuing processes: Shock wave analysis Demand-capacity process is deterministic Suited.
Mitchell Jareo MAT4340 – Operations Research Dr. Bauldry
Delays Deterministic Stochastic Assumes “error free” type case
Solutions Queueing Theory 1
Waiting Line Models Waiting takes place in virtually every productive process or service. Since the time spent by people and things waiting in line is.
Queuing Models J. Mercy Arokia Rani Assistant Professor
Presentation transcript:

Queuing Theory

Introduction Queuing is the study of waiting lines, or queues. The objective of queuing analysis is to design systems that enable organizations to perform optimally according to some criterion. Possible Criteria – Maximum Profits. – Desired Service Level.

Analyzing queuing systems requires a clear understanding of the appropriate service measurement. Possible service measurements – Average time a customer spends in line. – Average length of the waiting line. – The probability that an arriving customer must wait for service.

The Arrival Process – There are two possible types of arrival processes Deterministic arrival process. Random arrival process. – The random process is more common in businesses. – A Poisson distribution can describe the random arrival process.

Types of Queuing Systems Single Channel Single Phase: Trucks unloading shipments into a dock.

Types of Queuing Systems Single Line Multiple Phase: Wendy’s Drive Thru -> Order + Pay/Pickup

Types of Queuing Systems Multiple Line Single Phase: Walgreens Drive- Thru Pharmacy

Types of Queuing Systems Multiple Line Multiple Phase: Hospital Outpatient Clinic, Multi-specialty

Fundamentals of Queuing Theory Microscopic traffic flow Arrivals – Uniform or random Departures – Uniform or random Service rate – Departure channels Discipline – FIFO and LIFO are most popular – FIFO is more prevalent in traffic engineering

Poisson Distribution Count distribution – Uses discrete values – Different than a continuous distribution P(n)=probability of exactly n vehicles arriving over time t n=number of vehicles arriving over time t λ=average arrival rate t=duration of time over which vehicles are counted

Poisson Distribution Video

Poisson Ideas Probability of exactly 4 vehicles arriving – P(n=4) Probability of less than 4 vehicles arriving – P(n<4) = P(0) + P(1) + P(2) + P(3) Probability of 4 or more vehicles arriving – P(n≥4) = 1 – P(n<4) = 1 - P(0) + P(1) + P(2) + P(3) Amount of time between arrival of successive vehicles

Poisson Distribution Example Group Activity Vehicle arrivals at the Olympic National Park main gate are assumed Poisson distributed with an average arrival rate of 1 vehicle every 5 minutes. What is the probability of the following: 1.Exactly 2 vehicles arrive in a 15 minute interval? 2.Less than 2 vehicles arrive in a 15 minute interval? 3.More than 2 vehicles arrive in a 15 minute interval?

Example Calculations Exactly 2: Less than 2: More than 2:

The Poisson Arrival Distribution PXk e k !  t) k t () (  Where = mean arrival rate per time unit. t = the length of the interval. e = (the base of the natural logarithm). k! = k (k -1) (k -2) (k -3) … (3) (2) (1).

The Waiting Line – Line configuration A Single service Queue. Multiple service queue with single waiting line. Multiple service queue with multiple waiting lines. Tandem queue (multistage service system). – Jockeying Jockeying occurs if customers switch lines when they perceived that another line is moving faster. – Balking Balking occurs if customers avoid joining the line when they perceive the line to be too long.

– Priority rules Priority rules define the line discipline. These rules select the next customer for service. There are several commonly used rules: – First come first served (FCFS). – Last come first served (LCFS). – Estimated service time. – Random selection of customers for service. – Homogeneity An homogeneous customer population is one in which customers require essentially the same type of service. A Nonhomogeneous customer population is one in which customers can be categorized according to: – Different arrival patterns – Different service treatments.

The Service Process – Some service systems require a fixed service time. – In most business situations, however, service time varies widely among customers. – When service time varies, it is treated as a random variable. – The exponential probability distribution is used sometimes to model customer service time.

The Exponential Service Time Distribution f(X) =  e -  X where  = is the average number of customers who can be served per time period. The probability that the service time X is less than some “t.” P(X t) = 1 - e -  t

Schematic illustration of the exponential distribution The probability that service is completed within t time units X = t f(X)

Measures of Queuing System Performance Performance can be measured by focusing on: – Customers in queue. – Customers in the system. Transient and steady state periods complicate the service time analysis

The transient period occurs at the initial time of operation. – Initial transient behavior is not indicative of long run performance. The steady state period follows the transient period. In steady state, long run probabilities of having “n” customers in the system do not change as time goes on. In order to achieve steady state, the effective arrival rate must be less than the sum of effective service rates.      …    k  For one server For k serversFor k servers each with service rate 

Steady State Performance Measures P 0 = Probability that there are no customers in the system. P n = Probability that there are “n” customers in the system. L = Average number of customers in the system. L q = Average number of customers in the queue. W = Average time a customer spends in the system. W q = Average time a customer spends in the queue. P w = Probability that an arriving customer must wait for service.  = Utilization rate for each server (the percentage of time that each server is busy).

Little’s Formulas – Little’s Formulas represent important relationships between L, L q, W, and W q. – These formulas apply to systems that meet the following conditions: Single queue systems, Customers arrive at a finite arrival rate  and The system operates under steady state condition. L =  W L q = W q L = L q +  /  For the infinite population case

Queue Notation Popular notations: – D/D/1, M/D/1, M/M/1, M/M/N – D = deterministic distribution – M = exponential distribution Arrival rate nature Departure rate nature Number of service channels

Queuing Theory Applications D/D/1 – Use only when absolutely sure that both arrivals and departures are deterministic M/D/1 – Controls unaffected by neighboring controls M/M/1 or M/M/N – General case Factors that could affect your analysis: – Neighboring system (system of signals) – Time-dependent variations in arrivals and departures Peak hour effects in traffic volumes, human service rate changes – Breakdown in discipline People jumping queues! More than one vehicle in a lane! – Time-dependent service channel variations Grocery store counter lines

Queue Analysis – Graphical Arrival Rate Departure Rate Time Vehicles t1t1 Queue at time, t 1 Maximum delay Maximum queue D/D/1 Queue Delay of n th arriving vehicle Total vehicle delay

Queue Analysis – Numerical M/D/1 – Average length of queue – Average time waiting in queue – Average time spent in system λ = arrival rateμ = departure rate

Queue Analysis – Numerical M/M/1 – Average length of queue – Average time waiting in queue – Average time spent in system λ = arrival rateμ = departure rate

Performance Measures for the M / M /1 Queue P 0 = 1- ( /  ) P n = [1 - ( /  )] ( /  ) n L = / (  - ) L q = 2 / [  (  - )] W = 1 / (  - ) W q = / [  (  - )] P w = /   = /  The probability that a customer waits in the system more than “t” is P(X>t)= e - (  - )t

Queue Analysis – Numerical M/M/N – Average length of queue – Average time waiting in queue – Average time spent in system λ = arrival rateμ = departure rate

M/M/N – More Stuff – Probability of having no vehicles – Probability of having n vehicles – Probability of being in a queue λ = arrival rateμ = departure rate

Example 1 You are entering a Club to watch a basketball game. There is only one ticket line to purchase tickets. Each ticket purchase takes an average of 18 seconds. The average arrival rate is 3 persons/minute. Find the average length of queue and average waiting time in queue assuming M/M/1 queuing.

Solution Departure rate: μ = 18 seconds/person or 3.33 persons/minute Arrival rate: λ = 3 persons/minute ρ = 3/3.33 = 0.90 Q-bar = /(1-0.90) = 8.1 people W-bar = 3/3.33(3.33-3) = 2.73 minutes T-bar = 1/(3.33 – 3) = 3.03 minutes

Example 2 You are now in line to get into the Arena. There are 3 operating turnstiles with one ticket-taker each. On average it takes 3 seconds for a ticket-taker to process your ticket and allow entry. The average arrival rate is 40 persons/minute. Find the average length of queue, average waiting time in queue assuming M/M/N queuing. What is the probability of having exactly 5 people in the system?

Solution N = 3 Departure rate: μ = 3 seconds/person or 20 persons/minute Arrival rate: λ = 40 persons/minute ρ = 40/20 = 2.0 ρ/N = 2.0/3 = < 1 so we can use the other equations P 0 = 1/(2 0 /0! /1! /2! /3!(1-2/3)) = Q-bar = (0.1111)(2 4 )/(3!*3)*(1/(1 – 2/3) 2 ) = 0.88 people T-bar = ( )/40 = minutes = 4.32 seconds W-bar = – 1/20 = minutes = 1.32 seconds Since n > N (5 > 3) P n = 2 5 (0.1111)/(3 5-3 *3!) = = 6.58%

Example 3 You are now inside the Arena. They are passing out Harry the Husky doggy bags as a free giveaway. There is only one person passing these out and a line has formed behind her. It takes her exactly 6 seconds to hand out a doggy bag and the arrival rate averages 9 people/minute. Find the average length of queue, average waiting time in queue, and average time spent in the system assuming M/D/1 queuing.

Solution N = 1 Departure rate: μ = 6 seconds/person or 10 persons/minute Arrival rate: λ = 9 persons/minute ρ = 9/10 = 0.9 Q-bar = (0.9) 2 /(2(1 – 0.9)) = 4.05 people W-bar = 0.9/(2(10)(1 – 0.9)) = 0.45 minutes = 27 seconds T-bar = (2 – 0.9)/((2(10)(1 – 0.9) = 0.55 minutes = 33 seconds

MARY’s SHOES Customers arrive at Mary’s Shoes every 12 minutes on the average, according to a Poisson process. Service time is exponentially distributed with an average of 8 minutes per customer. Management is interested in determining the performance measures for this service system.

SOLUTION – Input = 1 / 12 customers per minute = 60 / 12 = 5 per hour.  = 1 / 8 customers per minute = 60 / 8 = 7.5 per hour. – Performance Calculations P 0 = 1- ( /  ) = 1 - (5 / 7.5) = P n = [1 - ( /  )] ( /  ) = (0.3333)(0.6667) n L = / (  - ) = 2 L q = 2 / [  (  - )] = W = 1 / (  - ) = 0.4 hours = 24 minutes W q = / [  (  - )] = hours = 16 minutes P 0 = 1- ( /  ) = 1 - (5 / 7.5) = P n = [1 - ( /  )] ( /  ) = (0.3333)(0.6667) n L = / (  - ) = 2 L q = 2 / [  (  - )] = W = 1 / (  - ) = 0.4 hours = 24 minutes W q = / [  (  - )] = hours = 16 minutes P w = /   = / 