Lecture 14 – Queuing Systems

Slides:



Advertisements
Similar presentations
Introduction to Queuing Theory
Advertisements

Chapter Queueing Notation
Queueing Models and Ergodicity. 2 Purpose Simulation is often used in the analysis of queueing models. A simple but typical queueing model: Queueing models.
INDR 343 Problem Session
Lecture 13 – Continuous-Time Markov Chains
1 Waiting Lines Also Known as Queuing Theory. 2 Have you ever been to the grocery store and had to wait in line? Or maybe you had to wait at the bank.
Nur Aini Masruroh Queuing Theory. Outlines IntroductionBirth-death processSingle server modelMulti server model.
Queuing Models Basic Concepts
Model Antrian By : Render, ect. Outline  Characteristics of a Waiting-Line System.  Arrival characteristics.  Waiting-Line characteristics.  Service.
Queueing Theory (2). Home Work 12-9 and Due Day: October 31 (Monday) 2005.
Queuing Systems Chapter 17.
EMGT 501 Fall 2005 Midterm Exam SOLUTIONS.
Waiting Line Models And Service Improvement
Chapter 13 Queuing Theory
Queueing Theory: Part I
Queueing Theory Chapter 17.
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),
To Accompany Russell and Taylor, Operations Management, 4th Edition,  2003 Prentice-Hall, Inc. All rights reserved. Chapter 16 Waiting Line Models and.
Waiting line Models.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.
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

Queuing Models and Capacity Planning
___________________________________________________________________________ Operations Research  Jan Fábry Waiting Line Models.
Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
CDA6530: Performance Models of Computers and Networks Examples of Stochastic Process, Markov Chain, M/M/* Queue TexPoint fonts used in EMF. Read the TexPoint.
Spreadsheet Modeling & Decision Analysis
Copyright 2006 John Wiley & Sons, Inc. Beni Asllani University of Tennessee at Chattanooga Waiting Line Analysis for Service Improvement Operations Management.
Introduction to Management Science
Simulation Examples ~ By Hand ~ Using Excel
Waiting Line Models ___________________________________________________________________________ Quantitative Methods of Management  Jan Fábry.
1 Chapter 16 Applications of Queuing Theory Prepared by: Ashraf Soliman Abuhamad Supervisor by : Dr. Sana’a Wafa Al-Sayegh University of Palestine Faculty.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
4/11: Queuing Models Collect homework, roll call Queuing Theory, Situations Single-Channel Waiting Line System –Distribution of arrivals –Distribution.
Introduction to Operations Research
Lecture 14 – Queuing Networks Topics Description of Jackson networks Equations for computing internal arrival rates Examples: computation center, job shop.
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
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.
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 Queuing Models Dr. Mahmoud Alrefaei 2 Introduction Each one of us has spent a great deal of time waiting in lines. One example in the Cafeteria. Other.
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.
CS433 Modeling and Simulation Lecture 12 Queueing Theory Dr. Anis Koubâa 03 May 2008 Al-Imam Mohammad Ibn Saud University.
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.
Machine interference problem: introduction
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.
Chapter 6 Queueing Models
Waiting Line Models Production and Operations Management Reporter:
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.
8/14/04J. Bard and J. W. Barnes Operations Research Models and Methods Copyright All rights reserved Lecture 11 – Stochastic Processes Topics Definitions.
© 2015 McGraw-Hill Education. All rights reserved. Chapter 17 Queueing Theory.
Queuing Models.
Simple Queueing Theory: Page 5.1 CPE Systems Modelling & Simulation Techniques Topic 5: Simple Queueing Theory  Queueing Models  Kendall notation.
Managerial Decision Making Chapter 13 Queuing Models.
Module D Waiting Line Models.
Lecture 14 – Queuing Networks
Queueing Theory What is a queue? Examples of queues:
Solutions Queueing Theory 1
System Performance: Queuing
Lecture 13 – Queuing Systems
Lecture 14 – Queuing Networks
Course Description Queuing Analysis This queuing course
Presentation transcript:

Lecture 14 – Queuing Systems Topics Basic structure and components Performance measures Steady-state analysis and Little’s law Birth-death processes Single-server and multi-server examples Flow balance equations

Structure of Single Queuing Systems Arriving Exiting customers Input source Service Queue customers mechanism Note Customers need not be people; other possibilities include parts, vehicles, machines, jobs. Queue might not be a physical line; other possibilities include customers on hold, jobs waiting to be printed, planes circling airport.

Components of Model Input Source The size of the “calling population” may be modeled as infinite or finite. Calculations are easier in the infinite case and in many cases this is a reasonable approximation (bank, pizza parlor, blood bank). Queuing Discipline First-come first-served (FCFC or FIFO) is the most frequent assumption, but priority ordering is important in some settings. Service Mechanism One or more servers may be placed in parallel.

Queuing Applications System Arrival Process Service Process Bank Customers Arrive Tellers serve customers Pizza Orders are phoned Orders are driven to parlor in customers Blood Pints of blood arrive Patients use up bank via donation pints of blood Shipyard Damaged ships sent Ships are repaired to shipyard for repair & return to sea Printers Jobs arrive from Documents are computers printed

Typical Performance Questions What is the ... 1. average number of customers in the system? 2. average time a customer spends in the system? 3. probability a customer is rejected? 4. fraction of time a server is idle? These questions are aimed at characterizing complex systems. Analyses used to support decision-making. In queuing (and most analyses of complex stochastic systems), design takes the form of asking “what if ” questions rather than trying to optimize the design.

Multiple Servers, Single Queue What is average wait in the queue? What is average time in the system?

Multiple Servers, Multiple Queues What is average wait in the queue? What is average time in the system?

Notation and Terminology N(t ) = # of customers in the system at time t  0 Pk(t ) = probability exactly k customers in system at time t, given # in system at time 0 s = # of parallel servers k = mean arrival rate (expected # of arrivals per unit time) k = mean service rate (expected # of departures per unit time) (Both k and k assume k customers are in system)

If k does not depend on # of customers in system, k = . If there are s servers, each with the same service rate, then k = s for k  s and k = k for 0  k < s. s = customer service capacity per unit time r = /s = utilization factor (traffic intensity) The systems we study will have r < 1 because otherwise the # of customers in the system will grow without bound. We will be interested in the steady-state behavior of queuing systems (the behavior for t large). Obtaining analytical results for N(t ), Pk(t ), . . . for arbitrary values of t (the transient behavior) is much more difficult.

Notation for Steady-State Analysis pk = probability of having exactly k customers in the system L = expected number of customers in the system Lq = expected queue length (doesn’t include those being served) W = expected time in system, including service time Wq = expected waiting time in the queue (doesn’t include service)

Little’s Law For any queuing system that has a steady state and has an average arrival rate of , L = W For example, if the average waiting time is 2 hours and customers arrive at a rate of 3 per hour then, on average, there are 6 customers in the system. Similarly, Lq = Wq If k =  for all k  1 then W = Wq + 1/ (1/ is the mean service time here)

Benefit of Little’s Law These three relationships allow us to calculate all four quantities L, Lq, W and Wq (once one of them is known). L = W requires no assumptions about arrival or service time distributions, the size of the calling population, or limits on the queue.

Birth and Death Processes Applications in a variety of areas, but in queuing “birth” refers to the arrival of a customer while “death” refers to the departure of a customer. Recall, N(t ) = # of customers in the system at time t. Assumptions Given that N(t ) = k, the pdf governing the remaining time until the next birth (arrival) is exp(k) k = 0, 1, 2, . . . Given that N(t ) = k, the pdf governing the remaining time until the next death (service completion) is exp(k) k = 1, 2, . . . All random variables are assumed to be independent.

Transition Rate Diagram 0 1 2 2 3 1 1 2 3 We will investigate steady-state (not transient) results for birth-death processes based on the Expected rate in = Expected rate out principle Let pk = steady-state probability of being in state k.

Balance Equations – Section 15.5 Flow into 0  1p1 = 0p0  flow out of 0 Flow into 1  0p0 + 2p2 = (1 + 1)p1  flow out of 1 Flow into 2  1p1 + 3p3 = (2 + 2)p2  flow out of 2 • Flow into k k-1pk-1 + k+1pk+1 = (k + k)pk  flow out of k

Thus pk = Ckp0 , k = 1, 2, . . . and Skpk = 1 l l 1 l l l p1 = , 1 p1 + 1 1 p0 p0 p2 = (m1p1 – l0p0) = p1 = m m m m m m 1 2 2 2 2 1 . . . = 0 Thus pk = Ckp0 , k = 1, 2, . . . and Skpk = 1 so (C0 + C1 + C2 + • • • )p0 = 1 or p0 = 1 / (1 + Sk Ck)

Some Steady-State Results Once we have calculated the pk’s we can find: L = S kpk = expected # of customers in the system Lq = S (k–s)pk = expected # of customers in queue Ls = L – Lq = expected # of customers in service  = S kpk = average (effective) arrival rate E = Ls / s = efficiency of system (utilization) ¥ k=1 ¥ k=s+1 ¥ k=0

Queuing Example with 3 Servers Assume Average arrival rate: l = 5/hr Average service rate: m = 2/hr Arriving customer balks when 6 are in system. 4. Steady-state probabilities: State 1 2 3 4 5 6 Component p0 p1 p2 p3 p4 p5 p6 Probability 0.068 0.170 0.212 0.177 0.147 0.123 0.102

Determining System Characteristics What is the probability that all servers are idle? Pr{all servers idle} = p0 = 0.068 What is the probability that a customer will not have to wait? Pr{no wait} = p0 + p1 + p2 = 0.45 What is the probability that a customer will have to wait? Pr{wait} = 1 – Pr{no wait} = 0.55 What is the probability that a customer balks? Pr{customer balks} = p6 = 0.102

Steady-State Measures for Example Expected number in queue: Lq = 1p4 + 2p5 + 3p6 = 0.700 Expected number in service: Ls = p1 + 2p2 + 3(1 – p0 – p1 – p2) = 2.244 Expected number in the system: L = Lq + Ls = 2.944 Efficiency of the servers: E = Ls /s = 2.244/3 = 0.748 or 74.8%

Little’s Law with Average Arrival Rate Applying Little’s Law with , we can calculate W = L / l & Wq = Lq / l Expected waiting time in the system Expected waiting time in the queue Results assume that steady state will be reached.

Example with 3 Servers (cont.) To compute average waiting times we must first find the average arrival rate: l = S kpk where k =  = 5 (k = 0,1,…,5) and k = 0 (k > 5), simplifies to = l(p0 + p1 + p2 + p3 + p4 + p5) = l(1 – p6) = 5(1 – 0.102) = 4.488 / hour ¥ k=0 Consequently, Ws = Ls / l = 0.5 hours Wq = Lq / l = 0.156 hours W = L / l = 0.656 hours

M/M/1 Queue M / M / 1 arrival service # of process process servers “M ” stands for Markovian, meaning exponential inter-arrival & exponential service times. 2 1  3  . . . so, k = , k = 0,1,… k = , k = 1,2,… where r = l/m Utilization factor or traffic intensity

Derivation of Steady-State Probabilities provided r < 1, i.e., l < m Thus, p0 = 1 – r and pk = r k(1 – r).

Performance Measures for M/M/1 Queue l L = provided    m - l l2 l l Lq = L - (1 - p0) = - = m-l m m (m-l) From Little’s law, we know W = 1 l L and Wq = Lq or W = m-l and Wq = m (m-l)

Methodology vs. Formulas The important thing is not the specific M/M/1 formulas, but the methodology used to find the results. Model the system as a birth-and-death process and construct the rate diagram. Depending on the system, defining the states may be the first challenge. Develop the balance equations. Solve the balance equations for pk, k = 0, 1, 2, . . . Use the steady-state distribution to derive L and Lq and, use Little’s law to get W and Wq .

Example of M/M/1/2/2 Queue A maintenance worker must keep 2 machines in working order. The 2 machines operate simultaneously when both are up. The time until a machine breaks has an exponential distribution with a mean of 10 hours. The repair time for the broken machine has an exponential distribution with a mean of 8 hours. The worker can only repair one machine at a time.

Evaluating Performance Model the system as a birth-and-death process. Develop the balance equations. Calculate the steady-state distribution pk . Calculate and interpret L, Lq, W, Wq . What is the proportion of time the repairman is busy ? What is the proportion of time that a given machine, e.g., machine #1, is working ?

State-Transition Diagram  = rate at which a single machine breaks down = 1/10 hr  = rate at which machines are repaired = 1/8 hr State of the system = # of broken machines. 2  Rate network: 2 1 2  

Balance Equations for Repair Example p1 = 2p0 2p0 + p2 = ( +  )p1 p1 = p2 p0 + p1 + p2 = 1 state 0 state 1 state 2 normalize Ck = lk-1… l0 mk … m1 pk = Ckp0 and p0 = 1 /  Ck We can solve these balance equations for p0, p1 and p2, but in this case, we can simply use the formulas for general birth-and-death processes: 2 k=0

Lq = 0p1 + 1p2 = 0.33 (avg # waiting for repair) Here, 0 = 2 1 =  1 =  2 =  2 = 0 L = 0p0 + 1p1 + 2p2 = 1.072 (avg # machines in system) Lq = 0p1 + 1p2 = 0.33 (avg # waiting for repair)

S average arrival rate  = kpk = 0p0 + 1p1 + 2p2 = 3.56 hours Average amount of time that a machine has to wait until the repairman initiates the work. = 11.55 hours Average amount of time that a machine has to wait to be repaired, including the time until the repairman initiates the work. Proportion of time repairman is busy = p1 + p2 = 0.742 Proportion of time that machine #1 is working = p0 + 1 2 p1 = 0.258 + (0.412) = 0.464

Excel Add-in for M/M/1/2/2 Queue

Multi-Channel Queues – M/M/s Additional measures of performance Efficiency: E = r Pr{ Tq = 0 } = k=0,s-1 pk Pr{ Tq > t } = (1 – Pr{ Tq = 0 })e-sm(1-r)t for t > 0

M/M/s Queue

Telephone Answering System Example Situation: A utility company wants to determine a staffing plan for its customer representatives. Calls arrive at an average rate of 10 per minute, and it takes an average of 1 minute to respond to each inquiry. Both arrival and service processes are Poisson. Problem: Determine the number of operators that would provide a “satisfactory” level of service to the calling population. Analysis: l = 10, 1/m = 1; r = l/sm < 1 or s > l/m = 10

Comparison of Multi-Server Systems Measure M/M/11 M/M/12 M/M/13 Lq 6.821 2.247 0.951 Wq 0.682 0.225 0.0.95 E 0.909 0.833 0.767 Pr{ Tq = 0 } 0.318 0.551 0.715 Pr{ Tq > 1 } 0.251 0.061 0.014

Machine Processing with Limited Space for Work in Process Parts arrive at a machine station at the rate of 1.5/min on average. The mean time for service is 30 seconds. Both processes are assumed to be Poisson. When the machine is busy, parts queue up until there are 3 waiting. At that point arrivals sent for alternative processing. Goal: Analyze the situation under the criteria that no more than 5% of arriving parts receive alternative processing and that no more than 10% of the parts that are serviced directly spend more than 1 minute in the queue.

Parameters for Machine Processing Queuing System Number of servers: s = 1 Maximum number in system: K = 4 Size of calling population: N =  Arrival rate: l = 1.5/min Service rate: m = 2/min Utilization: r = l/m = 0.75 Model: M/M/1/4

M/M/1/K Queue, r  1 Measure M / /1/ K /1 r l/m p 1 - – , 1 £ P ( ) L 1 - + – n , 1 £ P B ( ) L q 2 [( ] )( s (1 l E

Excel Add-in for M/M/1/4 Queue

Solution for M/M/1/4 Model Parameters l = 1.5/min, m = 2/min r = l/m = 0.75 K = 4 Steady state probabilities (see page 566 in text) p0 = (1 - r) / (1 - r K+1) = (1 – 0.75) / (1 – 0.755) = 0.25 / 0.7627 = 0.328 pk = p0 r k = (0.328) (0.75k); k = 1,…,K p1 = 0.246, p2 = 0.184, p3 = 0.138, p4 = 0.104

Solution for M/M/1/4 Model (cont’d) Balking probability: PF = p4 = 0.104 or 10.4% (does not meet 5% goal) Average arrival rate: l = l(1 – PF) = 1.344/min L = 1.444 W = 1.074 min E = r (1 – PF) = 0.75(1 – 0.104) = 0.672 or 67.2% Pr{Tq > 1} = 0.225 (see text for computations; does not meet 10% goal)

Add Second Machine – M/M/2/5 Model New results PF = 0.0068, l = l(1 – p5) = 1.49 L = 0.85, W = 0.57 min E = 37.2% Pr{Tq > 1} = 0.049 or 4.9% This solution meets our original goals with the percentage of balking parts now less than 1% and the probability of a wait time greater than 1 minute less than 5%

What You Should Know About Queuing Systems The major components The 5-field notation How to use Little’s law Components of a Markov queuing system The important performance measures How to compute performance measures