Chapter 8 Queuing Theory Roanna Gee. W = average number of time a customer spends in the system.

Similar documents
λ λ λ In-class problems

Chapter 5: Special Types of Queuing Models

Queueing Review. Christos Alexopoulos and Dave Goldsman 10/6/16. (mostly from BCNN) Georgia Institute of Technology, Atlanta, GA, USA

M/G/1 and M/G/1/K systems

Continuous-Time Markov Chain

Queuing Theory. Richard Lockhart. Simon Fraser University. STAT 870 Summer 2011

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

Review of Queuing Models

NANYANG TECHNOLOGICAL UNIVERSITY SEMESTER I EXAMINATION MH4702/MAS446/MTH437 Probabilistic Methods in OR

Solution: The process is a compound Poisson Process with E[N (t)] = λt/p by Wald's equation.

Queueing Review. Christos Alexopoulos and Dave Goldsman 10/25/17. (mostly from BCNN) Georgia Institute of Technology, Atlanta, GA, USA

Queuing Theory. Using the Math. Management Science

Computer Networks More general queuing systems

IEOR 6711, HMWK 5, Professor Sigman

Queuing Theory. 3. Birth-Death Process. Law of Motion Flow balance equations Steady-state probabilities: , if

Introduction to queuing theory

The exponential distribution and the Poisson process

Non Markovian Queues (contd.)

Name of the Student:

P (L d k = n). P (L(t) = n),

Queueing Theory I Summary! Little s Law! Queueing System Notation! Stationary Analysis of Elementary Queueing Systems " M/M/1 " M/M/m " M/M/1/K "

Quiz Queue II. III. ( ) ( ) =1.3333

Link Models for Packet Switching

Simple queueing models

Queueing Systems: Lecture 3. Amedeo R. Odoni October 18, Announcements

Contents Preface The Exponential Distribution and the Poisson Process Introduction to Renewal Theory

Introduction to Queuing Networks Solutions to Problem Sheet 3

SOLUTIONS IEOR 3106: Second Midterm Exam, Chapters 5-6, November 8, 2012

Chapter 5. Continuous-Time Markov Chains. Prof. Shun-Ren Yang Department of Computer Science, National Tsing Hua University, Taiwan

Exponential Distribution and Poisson Process

Queueing Theory. VK Room: M Last updated: October 17, 2013.

IEOR 6711: Stochastic Models I, Fall 2003, Professor Whitt. Solutions to Final Exam: Thursday, December 18.

CPSC 531: System Modeling and Simulation. Carey Williamson Department of Computer Science University of Calgary Fall 2017

Notes on Continuous Random Variables

Classification of Queuing Models

LECTURE #6 BIRTH-DEATH PROCESS

Figure 10.1: Recording when the event E occurs

1 IEOR 4701: Continuous-Time Markov Chains

Networking = Plumbing. Queueing Analysis: I. Last Lecture. Lecture Outline. Jeremiah Deng. 29 July 2013

Link Models for Circuit Switching

YORK UNIVERSITY FACULTY OF ARTS DEPARTMENT OF MATHEMATICS AND STATISTICS MATH , YEAR APPLIED OPTIMIZATION (TEST #4 ) (SOLUTIONS)

Queueing Theory II. Summary. ! M/M/1 Output process. ! Networks of Queue! Method of Stages. ! General Distributions

All models are wrong / inaccurate, but some are useful. George Box (Wikipedia). wkc/course/part2.pdf

The Transition Probability Function P ij (t)

Chapter 6 Queueing Models. Banks, Carson, Nelson & Nicol Discrete-Event System Simulation

GI/M/1 and GI/M/m queuing systems

Data analysis and stochastic modeling

Waiting Line Models: Queuing Theory Basics. Metodos Cuantitativos M. En C. Eduardo Bustos Farias 1

Intro to Queueing Theory

M/G/1 and Priority Queueing

Engineering Mathematics : Probability & Queueing Theory SUBJECT CODE : MA 2262 X find the minimum value of c.

Class 11 Non-Parametric Models of a Service System; GI/GI/1, GI/GI/n: Exact & Approximate Analysis.

Solutions to COMP9334 Week 8 Sample Problems

ISyE 2030 Practice Test 2

MATH 56A: STOCHASTIC PROCESSES CHAPTER 6

Bulk input queue M [X] /M/1 Bulk service queue M/M [Y] /1 Erlangian queue M/E k /1

λ, µ, ρ, A n, W n, L(t), L, L Q, w, w Q etc. These

Performance Evaluation of Queuing Systems

4.7 Finite Population Source Model

Interlude: Practice Final

Performance Modelling of Computer Systems

57:022 Principles of Design II Final Exam Solutions - Spring 1997

Stochastic Models in Computer Science A Tutorial

Renewal theory and its applications

Answers to selected exercises

Continuous Time Markov Chains

M/G/1 queues and Busy Cycle Analysis

Introduction to Queueing Theory

Computer Systems Modelling

Continuous-time Markov Chains

Queuing Analysis. Chapter Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall

Queues and Queueing Networks

PBW 654 Applied Statistics - I Urban Operations Research

Operations Research II, IEOR161 University of California, Berkeley Spring 2007 Final Exam. Name: Student ID:

Readings: Finish Section 5.2

CDA5530: Performance Models of Computers and Networks. Chapter 4: Elementary Queuing Theory

16:330:543 Communication Networks I Midterm Exam November 7, 2005

Analysis of an M/M/1/N Queue with Balking, Reneging and Server Vacations

Chapter 3 Balance equations, birth-death processes, continuous Markov Chains

EXAM IN COURSE TMA4265 STOCHASTIC PROCESSES Wednesday 7. August, 2013 Time: 9:00 13:00

Probability and Statistics Concepts

Queuing Theory. Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues

Slides 9: Queuing Models

Statistics 150: Spring 2007

Continuous Time Processes

2905 Queueing Theory and Simulation PART IV: SIMULATION

A Study on M x /G/1 Queuing System with Essential, Optional Service, Modified Vacation and Setup time

PROBABILITY & QUEUING THEORY Important Problems. a) Find K. b) Evaluate P ( X < > < <. 1 >, find the minimum value of C. 2 ( )

Glossary availability cellular manufacturing closed queueing network coefficient of variation (CV) conditional probability CONWIP

Since D has an exponential distribution, E[D] = 0.09 years. Since {A(t) : t 0} is a Poisson process with rate λ = 10, 000, A(0.

Systems Simulation Chapter 6: Queuing Models

International Journal of Pure and Applied Mathematics Volume 28 No ,

An M/G/1 Retrial Queue with Non-Persistent Customers, a Second Optional Service and Different Vacation Policies

ISyE 6650 Test 2 Solutions

Introduction to Queueing Theory with Applications to Air Transportation Systems

Page 0 of 5 Final Examination Name. Closed book. 120 minutes. Cover page plus five pages of exam.

56:171 Operations Research Fall 1998

Recap. Probability, stochastic processes, Markov chains. ELEC-C7210 Modeling and analysis of communication networks

M/M/1 Queueing System with Delayed Controlled Vacation

Waiting time characteristics in cyclic queues

Transcription:

8. Preliminaries L, L Q, W, W Q L = average number of customers in the system. L Q = average number of customers waiting in queue. W = average number of time a customer spends in the system. W Q = average amount of time a customer spends waiting in queue. The reason why we are using averages is because we are looking at a dynamic system where the actual numbers change over time. One of the reasons we do modeling is to get expected values (averages). For instance, if we open a barbershop then we may want an estimate of how many chairs to provide for the customers waiting (in the queue). W Q Queue Server Service time min min min 3 min 8.5 The System M/G/ M stands for memoryless (exponential arrival times and Poisson counts). Memoryless means that at any time the probabilities of an arrival and the counts of arrivals will be the same as at any other times. G stands for a general distribution of service times. stands for a single (one) server system. M/M/ Let s look for a moment at the M/M/ system for comparison. Both the arrival and service times are memoryless, so the number of customers in the system completely determines the state. In my picture, there are 4 people in the system, so that completely determines the state of the system. This allows us to look at the system at any point in time and know the probabilities of the transitions to the other states. Because of this you can define a transition as when the number of customers changes (either an arrival or a service completion). of 8

Transition diagram: 3 4 5 6 All transitions are to the adjacent states: a service completion and a customer departs, state i to state i-, or an arrival, state i to state i+. M/G/ The service time has a general distribution, and as such may not be memoryless. (It would still be valid if the distribution was memoryless, but in that case it would be better to use the simpler M/M/ model.) Let s say the distribution was uniform (,). At 9 minutes after the service had started, completion is much more likely than at minutes after the service had started. At 9 minutes, it will complete within the next minute, while at minutes, it could take up to 8 minutes more to complete. Because of this, the number of customers does not adequately describe the system; its state would also depend on the amount of service time already completed on the current customer. To get around this obstacle we only look at the system at the beginning of the general distribution, that is, when a service completes and the next begins. Now the number of customers does describe the system, as we would know the amount of service completed on the current customer: none. The arrivals, being memoryless, can be safely ignored as they occur, the arrival of the next customer does not depend on how long it has been since the previous customer arrived. If we must be mindful of one type of event (service completions), it is very useful to be able to ignore the other (arrivals). We define a transition as a service completion (i.e. a customer departing). Since we ignored arrivals during a service, any number of customers could have arrived during the last service. Since we are watching service completions, the possible transitions are: the only transition down is to the lower adjacent state (the customer leaves and there are no new arrivals); a transition to itself (one arrival to replace the departing customer); or a transition to any of the higher states (more customers arrive to replace the departing one). Transition diagram (only some transitions from 4 are drawn): 3 4 5 6 7 of 8

M/G/ Equations We want to consider the work represented by the customer in the system. To simplify matters, let s consider a fixed service time ( minutes). At 6 minutes into the service with 3 people in the queue, there is a total of 34 minutes (3 + 4) of work in the system. To calculate the average work in the system, we are going to equate money with work. For each person in the queue, he is representing minutes of work the amount of service time he will get when he is serviced. So for every minute in the queue, we are going to charge him $. While he is being serviced, at the beginning of service, he is still representing minutes of work so we charge him $/min., as work progresses, such as after minute; he represents 9 minutes of work remaining, so we charge him $9/min., etc. So, based on the fundamental cost equation: average rate at which the system earns = λ a average amount a customer pays giving us for V, the average work in the system: V = λ a E[amount paid by a customer One customers waits W* minutes in the queue being charged S dollars per minute, or SW* Q dollars. While being serviced, he is charged S x dollars per minute x minutes into the service, or S (S x) dx = S / dollars. S [ E[amount paid by a customer = E SW Q * + (S x)dx V = λ a E SW Q * [ + λ a E[ S (8.3) With S independent of W* Q : V = λ a E[SW Q + λ a E[ S (8.3) (The * is dropped because we went from the wait time for a customer to the expected value.) 3 of 8

8.5. Application of Work to M/G/ A customer s wait in the queue is the work he sees on arrival, because he must wait until the existing work is completed before he is serviced. Since Poisson arrivals see work averages, the average wait in the queue is the average work seen on arrival is the average work in the system. W Q = V Using (8.3) and solving for W Q, we get the Pollaczek-Khintchine formula: W Q = [ ( [ ) λe S λe S (8.33) Add the expected service time to queue wait time to get the total wait time. W = W Q + E[S = [ ( [ ) λe S λe S + E[S (8.34) As the wait times depend on the number of customers waiting, L Q = λw Q = L = λw = λ E[ S ( [ ) λe S λ E[ S ( [ ) + λe[s λe S 8.5.3 Busy Periods Let I n and B n be the lengths of the n th idle time and n th busy time. P = proportion of idle time P = lim I +L+ I n I +L+ I n + B +L+ n B n We divide both the numerator and denominator by n to use averages rather than totals; P = lim ( I +L+ I n ) n I +L+ I n + B +L+ n ( B n ) n P = E[ I [ + E[ S E I (8.35) 4 of 8

As an idle period is the time until a Poisson arrival: E[I = λ (8.36) The proportion of busy time (using the fundamental cost equation) is λe[s, so we get: P = λe[s (8.37) Substituting the last equations into (8.35): λe[s = λ λ + E B [ Solving for E[B, the expected length of a busy period: E[B = [ [ E S λe S The expected number of customers in a busy period, E[C, can be calculated by noting that exactly one customer out of C customers will find the system empty, namely the first customer of that busy period. So the proportion of customers who find the system empty, a is: a = E C [ Because Poisson arrivals see time averages, a = P and: E[C = λe S [ 5 of 8

8.7 The Model G/M/ As with the M/G/, the general distribution causes us difficulty with the state of the system. This time, however, the arrival distribution is general and the service distribution is memoryless. We deal with the problem similarly, ignoring the services and only looking at the system at the beginning of the general distribution. We define a transition as an arrival: X n the number in the system as seen by the n th arrival Since we ignored service completions between arrivals, any number of customers (in the system) may have been serviced since the last arrival. Our transition diagram needs to account for that (only transitions from 4 are shown): 3 4 5 The transition probabilities, P i,j, can be determined as follows: For j > i +, P i,j =. For P i, to P i,i+ (here j represents the number of customers who have left since the last arrival): P i,i+ j = e µt ( µt) j! j ( ) dg t, j =,,..., i P i, is more difficult because the transition to the idle state. The server possibility had time to service more customers, if they had been there. Thus, P i, should be obtained by: P i = i j= P i,i+ j The limiting probabilities can be found by solving π k = π i P ik, k i π i = i By trying a geometric sequence as a solution, we determine that: π k = ( β)β k, k =,, does satisfy the equations, for some value of β. 6 of 8

8.9. The System M/M/k With the M/M/ system, the arrival and service times are memoryless, so the state of the system is completely described by the number of customers in it. State Rate at which a process leaves = rate at which it enters λp = µp (λ + µ)p = λp + µp n, n > (λ + µ)p n = λp n + µp n+ To solve these equations, let β = λ, and rewrite them as follows: µ P = βp P = (β +.5)P βp P n+ = (β + )P n βp n, n > In terms of P ; P = P P = βp P = (β +.5)(βP ) βp = β(β + )P = β P P 3 = (β + )(β P ) β( βp ) = β (β + - )P = β 3 P P 4 = (β + )(β 3 P ) β( β P ) = β 3 (β + - )P = β 4 P P n+ = (β + )(β n P ) β( β n P ) = β n (β + - )P = β n+ P To determine P, use the fact that the P n must sum to = P n = P + n= β n P = P ( + β β ) = P + β β n= We get the solution: P = β + β = µ λ µ + λ P n = µ λ ( λ ) µ + λ µ n 7 of 8

8.9.3 The System G/M/k We ignore service completions (being memoryless) as with G/M/ and only look at the system when an arrival occurs. We can calculate the transition probabilities as follows: Case : j > i + It cannot go up more than state as we are watching arrivals, P i,j =. Case : j i + k The new arrival finds a server available, as did the last arrival, and i + j services have been completed, service completions during the interarrival time are binomial. P i,j = i + ( e µt ) i+ j (e ut ) j dg t j ( ) Case 3: k j i + The new arrival finds all servers busy, as did the last arrival, and i + j services have been completed, service completions during the interarrival time are Poisson. P i,j = e kµt i+ j ( kµt) ( i + j )! dg t ( ) Case 4: j k i + The new arrival finds a server avalable, but the last arrival found all servers busy, and i + j services have been completed. During the interarrival time enough services are completed to make a server available, we must divide the interarrival time into the period when the queue is not empty, and the period when the queue is empty. The period when the queue is not empty has a gamma distribution (i + k, kµ), waiting for i + k Poisson events to occur. The period when the queue is empty has a binomial distribution. P i,j = k (kµs) i k ( e µ(t s) ) k j (e u(t s) ) j kµe kµs j (i k)! t dg( t) 8.9.4 The System M/G/k The model is problematic because even by looking at the system at service completions, there are other services still in process, so the number of customers is not adequate to describe the system even at these times. The system is not amenable to a Markov process. 8 of 8