Outline. Finite source queue M/M/c//K Queues with impatience (balking, reneging, jockeying, retrial) Transient behavior Advanced Queue.

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

INDEX. production, see Applications, manufacturing

Kendall notation. PASTA theorem Basics of M/M/1 queue

Elementary queueing system

Performance Evaluation of Queuing Systems

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 "

Stochastic process. X, a series of random variables indexed by t

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

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

Queuing Theory. Using the Math. Management Science

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

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

QUEUING SYSTEM. Yetunde Folajimi, PhD

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

Queuing Theory. The present section focuses on the standard vocabulary of Waiting Line Models.

Systems Simulation Chapter 6: Queuing Models

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

Chapter 5: Special Types of Queuing Models

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

Queues and Queueing Networks

PBW 654 Applied Statistics - I Urban Operations Research

Part II: continuous time Markov chain (CTMC)

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

Lecturer: Olga Galinina

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

Data analysis and stochastic modeling

SYMBOLS AND ABBREVIATIONS

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

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

Introduction to queuing theory

An M/M/1/N Queuing system with Encouraged Arrivals

Computer Systems Modelling

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

λ λ λ In-class problems

Slides 9: Queuing Models

ENGINEERING SOLUTION OF A BASIC CALL-CENTER MODEL

Introduction to Queueing Theory with Applications to Air Transportation Systems

Basic Queueing Theory

Answers to selected exercises

5/15/18. Operations Research: An Introduction Hamdy A. Taha. Copyright 2011, 2007 by Pearson Education, Inc. All rights reserved.

Introduction to Markov Chains, Queuing Theory, and Network Performance

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

Link Models for Circuit Switching

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

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

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

J. MEDHI STOCHASTIC MODELS IN QUEUEING THEORY

Exercises Stochastic Performance Modelling. Hamilton Institute, Summer 2010

Review of Queuing Models

Exercises Solutions. Automation IEA, LTH. Chapter 2 Manufacturing and process systems. Chapter 5 Discrete manufacturing problems

The effect of probabilities of departure with time in a bank

System with a Server Subject to Breakdowns

4.7 Finite Population Source Model

Queuing Theory and Stochas St t ochas ic Service Syste y ms Li Xia

Lecture 20: Reversible Processes and Queues

Time Reversibility and Burke s Theorem

Introduction to Queuing Networks Solutions to Problem Sheet 3

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

Queueing Theory (Part 4)

Multiserver Queueing Model subject to Single Exponential Vacation

Irreducibility. Irreducible. every state can be reached from every other state For any i,j, exist an m 0, such that. Absorbing state: p jj =1

Queueing. Chapter Continuous Time Markov Chains 2 CHAPTER 5. QUEUEING

Classification of Queuing Models

Queueing systems. Renato Lo Cigno. Simulation and Performance Evaluation Queueing systems - Renato Lo Cigno 1

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

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

Photo: US National Archives

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

Performance Analysis of an M/M/c/N Queueing System with Balking, Reneging and Synchronous Vacations of Partial Servers

LECTURE #6 BIRTH-DEATH PROCESS

Math 597/697: Solution 5

Queuing Theory. Queuing Theory. Fatih Cavdur April 27, 2015

Time Dependent Solution Of M [X] /G/1 Queueing Model With second optional service, Bernoulli k-optional Vacation And Balking

Analysis of a Two-Phase Queueing System with Impatient Customers and Multiple Vacations

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

Transient Solution of a Multi-Server Queue. with Catastrophes and Impatient Customers. when System is Down

Figure 10.1: Recording when the event E occurs

Transient Solution of M [X 1] with Priority Services, Modified Bernoulli Vacation, Bernoulli Feedback, Breakdown, Delaying Repair and Reneging

Classical Queueing Models.

Non Markovian Queues (contd.)

Waiting Time Analysis of A Single Server Queue in an Out- Patient Clinic

reversed chain is ergodic and has the same equilibrium probabilities (check that π j =

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

Performance Modelling of Computer Systems

Review Paper Machine Repair Problem with Spares and N-Policy Vacation

Transient Analysis of Queueing Model

Introduction to Queueing Theory

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

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

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.

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

Introduction to queuing theory

Introduction to Queuing Theory. Mathematical Modelling

1 Basic concepts from probability theory

Q = (c) Assuming that Ricoh has been working continuously for 7 days, what is the probability that it will remain working at least 8 more days?

Readings: Finish Section 5.2

International Journal of Pure and Applied Mathematics Volume 28 No ,

Chapter 1. Introduction. 1.1 Stochastic process

IEOR 6711, HMWK 5, Professor Sigman

Continuous Time Processes

Transcription:

Outline Finite source queue M/M/c//K Queues with impatience (balking, reneging, jockeying, retrial) Transient behavior Advanced Queue Batch queue Bulk input queue M [X] /M/1 Bulk service queue M/M [Y] /1 Erlangian queue Erlangian queue M/E k /1 Erlangian queue E k /M/1 1

Queues with finite source, M/M/c//K queue Infinite calling population Arrival rate is constant, λ Example, the outpatient of hospital, passengers of bus station, etc. Finite calling population Arrival rate is variant Example, K machines, breakdown rate λ, service rate of maintenance is μ, # in maintenance is n, arrival rate is (K-n)λ 2

M/M/c//K Population size: K Arrival rate of outside customers: (K-n)λ Service rate of each server: μ Special case of birth-death process Birth rate: Death rate: n ( K n) n ( nc) 3

State transition rate diagram State transition rate diagram K ( K 1) ( K 2) ( Kc1) ( K c) ( K c1) 0 1 2 c c+1 K 2 3 c c c With local balance equation, we have n K!/ ( K n)! r n 0, n 0,1,..., c 1 n! K!/ ( K n )! r n 0, n c, c 1,..., K nc c c! c 4

Steady state distribution Steady state distribution of M/M/c//K n K n r 0, n 0,1,..., c 1 n K n! n r 0, n c, c 1,..., K nc n c c! π 0 can be calculated with the Law of total probability, but the form is complicated 5

Special case: M/M/1//K When c=1, we have n K K! 0 ( )! n n n! 0 n K n and 0 K n0 n K! ( K n)! 1 Analysis of other metrics is similar 6

Average queue length and mean waiting time Average number of customers in the system L K n n n0 Effective arrival rate K ( K n) ( K L) eff n0 Average queue length eff Lq L L ( K L) r n Mean waiting time and sojourn time W L q eff Lq L L T ( K L) ( K L) eff 7

Example: models with spares M/M/c//K queue can model the production system with spares (Gross book p.88) n: number of failed machines c: number of technicians to repair machine At most K machines in operation, Y spares Every machine has a failure rate λ; when fails, if has spares, immediately replace the failed one; when repaired, become spare Analyze the queue similar to M/M/c//K When Y, equivalent to M/M/c queue 8

Queues with impatience Customer is not patient during its waiting period model for practical situation Call center, crowded service facility, etc. types of queues with impatience Queues with balking (not joining when crowded) Queues with reneging (leave the line with probability) Queues with jockeying (moving among multiple lines) Retrial queues (balk when crowded and rejoin the line after a random time) 9

M/M/1 with Balking One example is finite storage queue M/M/c/K Balking function is to decrease the arrival rate when system becomes crowded (discouraged) {b n }, b n+1 < b n for all n=0,1,2, arrival rate: λ n =λb n for example, b n =1/n, or 1/n 2, or e -αn Waiting time is more reasonable than queue length, so Estimate the mean service time and set b n = e -αn/μ 10

M/M/1 with reneging All arrivals join the queue, but estimate the waiting time and leave the line if with long waiting time Reneging function r(n), total leaving rate at n r(0)=r(1)=0 Equivalent to a variant service rates, μ+r(n) Similar analysis to birth-death process Example: r(n) = e αn/μ, n>1 11

Other queues with impatience Queues with jockeying Difficult to analyze, no meaningful results Retrial queues Intensively studied, good model for many practical systems, such as call center Particular results with insights to queuing theory Discuss it later 12

Transient behavior Balance equation for equilibrium behavior or steady-state distribution Analysis for transient behavior is much more complicated M/M/1/1 and M/M/1, as example 13

Transient behavior of M/M/1/1 Differential-difference equation (optional) So, 0 1 We have d 0() t 1( t) 0( t) dt d1() t 1( t) 0( t) dt ( t) ( t) 1 ( t) ( ) ( t) 1 1 0( t) [ 0(0) ] e 1( t) [ 1(0) ] e Chalk drawing, curve of probability ( ) t ( ) t 14

Transient behavior of M/M/1 Differential-difference equation (optional) ( t) ( ) ( t) ( t) ( t), n 0 n n n1 n1 ( t) ( t) ( t) 0 0 1 Z-transform and Laplace-transform Sum all of the equations and have P( z, s) i z 1 (1 z) P0 ( s) ( s) z z With initial condition n(0)=i 2 15

Transient behavior of M/M/1 Reverse transform and obtain (optional) p t e I t I t ( ) t ( ni)/2 ( ni1)/2 n( ) ni (2 ) ni1(2 ) (1 n j/2 ) I j (2 t ) jni2 where modified Bessel function of the first kind n2k ( y / 2) In( x) :, n 1 k!( n k)! k0 16

Advanced Markovian queues Batch queue Bulk input queue M [X] /M/1 Bulk service queue M/M [Y] /1 Erlangian queue Erlangian queue M/E k /1 Erlangian queue E k /M/1 17

Bulk input queue M [X] /M/1 Batch arrival, Poisson process, arrival rate λ number of customers in each arrival is an integer random number X Probability of X is c n =Pr[X=n] State transition rate diagram X={1,2} as example, pp.118 of Gross book 18

Balance equation of M [X] /M/1 Global balance equation 0 ( ) p p p c, n 1 0 p p 0 1 n n1 nk k k 1 n To solve these equations, use Z-transforms of c and p 19

Balance equation of M [X] /M/1 Multiply z n on both sides and sum all 0 We have Thus, n n n n n pnz pnz pnz pnkck z n0 n1 z n1 n1 k 1 0 P( z) [ P( z) p0] [ P( z) p0] C( z) P( z) z p (1 ) 0 z P( z), z 1 (1 z) z[1 C( z)] 20

Average metrics of M [X] /M/1 Let z=1, obtain the average metrics p 1, r /, re[ X ] 0 L r E X E X re X 2(1 ) 2(1 ) 2 2 ( [ ] [ ]) [ ] L L (1 p ) L q T L /, W L / 0 q q 21

Example of M [X] /M/1 X is a constant K, apply the results we have L K K 1, K 2(1 ) 2 1 What s the difference from M/M/1 with Kλ? Equivalent to M/M/1 with Kλ and a scale factor (K+1)/2 Worse performance metrics Why? more bursty 22

Bulk service queue M/M [Y] /1 Similar to M/M/1, except the server serves K customers at a time, called M/M [K] /1. K is a constant. Two model for different service mode Partial-batch Start service no matter n<k Full-batch Start service until n>=k 23

M/M [K] /1 v.s. M/M/1 formulas of metrics are similar Formulas for distribution, L, T, L q, W q are similar similar to M/M/1 with service rate Kμ r 0 is the root of characteristic equation ρ=λ/kμ is the utilization factor of M/M/1 which one is bigger? Guess: r 0 > ρ (because M/M [K] /1 is more bursty more crowded) Metrics of M/M [K] /1 is worse than those of M/M/1 24

Erlangian queues and M/E k /1 Exponential distribution Memoryless property, simplify the analysis Limitation, more general cases Erlang distribution for service time and interarrival time Sum of K-stage exponential distributions More general model Other distributions PH, Coxian, hyperexponential, etc. 25

Erlang distribution k-stage Erlang distribution, each stage is exponentially distributed with rate kμ By convolution, pdf is f ( x) 1 1 1 E[ X ], Var[ X ], c 2 X k k k( kx) ( k 1)! k1 e kx kμ kμ kμ kμ 1 2 i k 26

Erlang distribution Distribution with 2-parameters, c x <1, to model smooth stochastic process Approximate empirical distribution, use the mean and variance to match μ and k If c x >1, we can use other distribution model, such as hyperexponential distribution 27

M/E k /1 queue Service time is Erlang-k distribution k stage, each stage is exponential with kμ State definition (n,i): n customers and customer in service is in phase i, i=1,2,,k. (k is the first phase and 1 is the last phase) Global balance equation 28

Average metrics of M/E k /1 Consider equivalent queue with state (n-1)k+i, # of phase requests Equivalent to M [k] /M/1, average # of customer k 1 is average # of phase requests L, So, 2 k1 k1 Wq, Lq Wq 2 k (1 ) 2 k (1 ) 2 1 1 T Wq, L Lq Can we use PASTA to do mean value analysis? 29

Example of M/E k /1 Suppose a queuing system λ=16/h, Poisson arrival Mean service time 2.5min, std. deviation is 1.25min not exponentially distribution Use Erlang-k to approximate, C X =0.5=(1/k) 0.5, k=4 M/E 4 /1 queue, with λ=4/15/min, μ=0.4/min, ρ=2/3 So, L q =5/6, W q =25/8min 30

E k /M/1 queue The arrival process is not Poisson arrival Erlang-k distribution with mean 1/λ, each stage is exponential distribution with kλ State: (n,i), or change to nk+i The balance equation is identical to that of full-batch bulk-service queue M/M [k] /1 with kλ arrival and constant batch size k 31

Average metrics of E k /M/1 The distribution is similarly as p (1 r ) r, j k 1, / ( P) j The distribution of E k /M/1 is We have k 0 jk 0 0 nk k 1 p p (1 r ) r (1 r... r ) n jnk (1 r ) r ( P) nk k k 1 j 0 0 0 0 k nk k 0 0 L, Lq L, T L /, Wq T 1 r 1 32

Midterm Exam Midterm Exam 1.5 hours 33