You are on page 1of 24

College of Management, NCTU

Operation Research II

Spring, 2009

Chap17 Queueing Theory


Introduction 9 Queues (waiting line) are a part of everyday life. 9 Providing too much service involves excessive costs. And not providing enough service capacity causes the waiting line to become excessively long. 9 The ultimate goal is to achieve an economic balance between the cost of service and the cost associated with the waiting for that service. 9 Queueing theory is the study of waiting in all these various guises. Prototype ExampleDoctor Requirement in a Emergence Room 9 Consider assigning an extra doctor to the emergency room, which has one doctor already. 9 How much can we reduce the average waiting time for patients if the extra doctor is hired? Basic Structure of Queueing Models Queueing system

Input source

Customers

Queue

Service Mechanism

Served customers

Queue Discipline

9 Input Source (Calling Population) One characteristic of the input source is its size. The size is the total number of customers. The size may be infinite (default one) or finite. When will each one arrive? Associate with a distributionusually, Poisson distribution (the number of customers generated until any specific time) or Exponential distribution (interarrival time). A customer may be balking, who refuses to enter the system and is lost if the queue is too long.

Jin Y. Wang

Chap17-1

College of Management, NCTU

Operation Research II

Spring, 2009

9 Queue The queue is where customers wait before being served. A queue is characterized by the maximum permissible number of customers that it can contain. Queue may be infinite (default one) or finite. 9 Queue Discipline Refers to the order in which members of the queue are selected for service. First-come-first-serve is normally used. 9 Service Mechanism Consists of one or more service facilities, each of which contains one or more parallel service channels, called servers. At a given facility, the customer enters one of the parallel service channels and is served by that server. Most elementary models assume one service facility with either one or a finite number of servers. Service time is usually defined by a probability distribution. An Elementary Queueing Process 9 A single waiting line forms in the front of a single service facility, within which are stationed one or more servers. Each customer is serviced by one of the servers, perhaps after some waiting in the queue. Queueing system C C C C S S S S

Customers

Queue CCCCCC

Service facility

Served customers

9 The prototype example is of this type. 9 We usually label a queueing model as ----/----/--- The first spot is for distribution of interarrival times. The second spot is for distribution of service times. The third one is for number of servers. M = exponential distribution (Markovian), which is the most widely used. D = degenerate distribution (constant time). Ek = Erlang distribution.

Jin Y. Wang

Chap17-2

College of Management, NCTU

Operation Research II

Spring, 2009

G = general distribution (any arbitrary distribution allowed) Terminology and Notation 9 State of system = number of customers in queueing system. 9 Queue length = number of customers waiting for service to begin = state of system minus number of customers being served. 9 N(t) = number of customers in queueing system at time t. 9 Pn(t) = probability of exactly n customers in queueing system at time t. 9 s = number of servers (parallel service channels) in queueing system. 9 n = mean arrival rate (expected number of arrival per unit time) of new customers when n customers are in system. When n is a constant for all n, this constant is denoted by . 1 / is the expected interarrival time. 9 n = mean service rate for overall system (expected number of customers completing service per unit time) when n customers are in system. n represents combined rate at which all busy servers achieve service completions. When the mean service rate per busy server is a constant for all n 1, this constant is denoted by . n = s when n s (all servers are busy). 1 / is the expected service time. 9 = /( s ) is the utilization factor for the service facility, i.e., the expected fraction of time the individual servers are busy. 9 Transient conditionwhen a queueing system has recently begun, the state of the system will be greatly affected by the initial state and by the time that has since elapsed. 9 Steady-state conditionafter sufficient time has elapsed, the state of the system becomes essentially independent of the initial state and the elapsed time. Queueing theory has tended to focus largely on the steady-state condition. 9 More notations are defined in a steady-state condition. 9 Pn = probability of exact n customers in queueing system. 9 L = expected number of customers in queueing system =

nP
n =0

Jin Y. Wang

Chap17-3

College of Management, NCTU

Operation Research II

Spring, 2009

9 Lq = expected queue length (excludes customers being served) =

(n s) P
n=s

9 W = waiting time in system (includes service time) for each customer. 9 W = E(W ). 9 Wq = waiting time in queue (exclude service time) for each customer. 9 Wq = E(Wq ). Relationships between L, W, Lq, and Wq 9 Assume that n is a constant for all n. 9 In a steady-state queueing process, L = W (Littles formula) and Lq = Wq . 9 If the n are not equal, then can be replaced in these equation by , the average arrival rate over the long time. 9 Assume that the mean service time ( 1 / ) is a constant. Thus, W = Wq +
1

9 These four fundamental quantities (L, W, Lq, and Wq) could be immediately determined as soon as one is found analytically. Examplescommercial service system, transportation service system, internal service system, and social service system. The Role of the Exponential Distribution 9 The mostly commonly used distribution for interarrival and service time is exponential distribution. 9 A random variable (interarrival or service times), T, is said to have an exponential distribution with parameter if its probability density function is
e t f T (t ) = 0 for t0 for t<0

9 The cumulative probabilities are P{T t} = 1 e t , P{T > t} = e t for t 0 . 9 E (T ) =


1

, var(T ) =

Jin Y. Wang

Chap17-4

College of Management, NCTU

Operation Research II

Spring, 2009

9 Property 1: f T (t ) is a strictly decreasing function of t. P{0 T t} > P{t T t + t} for any strictly positive of t and t .

The value T takes on is more likely to be small [less than half of E(T))] than near its expected value. Is this property real?

1 1 3 1 1 1 T P 0 T = 0.393 , P = 0.383 . 2 2 2

Not real when the service required is essentially identical for each customer, with the server always performing the same sequence of service operations. It is suitable for the situations where the specific tasks required of the server differ among customers (hospital or banking cases). 9 Property 2: Lack of memory: P{T > t + t | T > t} = P{T > t} for any positive of t and t . The probability distribution of the remaining time until the event occurs always is the same, regardless of how much time already has passed. The process forgets its history. The phenomenon occurs with the exponential distribution.

For interarrival time, the time until next arrival is completely uninfluenced by when the last arrival occurred. 9 Property 3: The minimum of several independent exponential random variables has an exponential distribution. Let T1, T2, , Tn be independent exponential random variables with parameters 1 , 2 , , n . Also, let U be the random variable that takes on the value equal to the minimum of the values of T1, T2, , Tn.

Jin Y. Wang

Chap17-5

College of Management, NCTU

Operation Research II

Spring, 2009

If Ti represents the time until a particular event occurs, then U represents the time until the first of the n different events occurs.

U indeed has an exponential distribution with parameter = i .


i =1

If there are n different types of customers (interarrival time is exponential with parameter i ), the interarrival time for the queueing system as a whole, has an exponential distribution with parameter = i .
i =1 n

Suppose all n servers have the same exponential service-time distribution with parameter . The time until the next service completion from any server has an exponential distribution with parameter = n . 9 Property 4: Relationship to the Poisson distribution. Suppose that the time between consecutive occurrences of some particular kind of event has an exponential distribution with parameter . Then, the number of occurrence by time t (X(t)) has a Poisson distribution with parameter t .
P{ X (t ) = n} = (t ) n e t n!

With n = 0, P{ X (t ) = 0} = e t , which is just the probability from the exponential distribution that the first event occurs after time t. The mean of this Poisson distribution is E{ X (t )} = t , so that the expected number of events per unit time is . is said to be the mean rate at which the events occurs. When the events are counted on a continuing basis, the counting process { X (t ); t 0} is said to be a Poisson process with parameter . Define X(t) as the number of service completions achieved by a continuously busy server in elapsed time t, where = . For multiple-server queueing models, X(t) can also be defined as the number of service completions achieved by n servers in elapsed time t, where = n . Suppose the interarrival times have an exponential distribution with parameter . In this case, X(t) is the number of arrivals in elapsed time t, where = is the mean arrival rate. Therefore, arrivals occur according to a Poisson input process with parameter .

Jin Y. Wang

Chap17-6

College of Management, NCTU

Operation Research II

Spring, 2009

9 Property 5: For all positive values of t, P{T t + t | T > t} t , for small t .


x The series expansion of e for any exponent x is e x = 1 + x +
n=2

xn . n!

P{T t + t | T > t} = P{T t} = 1 e t = 1 1 + t

(t ) n t . n! n=2

9 Property 6: Unaffected by aggregation or disaggregation. If there are n different types of customers (each is a Poisson input process with parameter i , the aggregated input is a Poisson with = 1 + 2 ... + n . Assuming that each arriving customer has a fixed probability pi of being of type i, with i = pi and

p
i =1

= 1 , the property says that the input process

for customers of type i also must be Poisson with parameter i . The Birth-and-Death Process 9 birth = arrival; death = departure; state , N(t), is the number of customers in the queueing system at time t. 9 The birth-and-death process describes probabilistically how N(t) changes as t increases. 9 Assumption 1: Given N(t) = n, the current probability distribution of the remaining time until the next birth (arrival) is exponential with parameter n . 9 Assumption 2: Given N(t) = n, the current probability distribution of the remaining time until the next death (service completion) is exponential with parameter n . 9 Assumption 3: The random variable of assumption 1 and the random variable of assumption 2 are mutually independent. The next transition in the state of the process is either nn+1 or nn-1 depending on whether the former or latter random variable is smaller. 9 That is, the birth-and-death process can be illustrated by the rate diagram.

9 The following analysis only focuses on the steady state condition. 9 En(t) = number of times that process enters state n by time t. 9 Ln(t) = number of times that process leaves state n by time t.

Jin Y. Wang

Chap17-7

College of Management, NCTU

Operation Research II

Spring, 2009

9 |En(t)) - Ln(t)| 1. Dividing both sides by t and letting t .


E n (t ) Ln (t ) 1 E (t ) L (t ) , so lim n n = 0. t t t t t t

9 lim n 9 lim n

E n (t ) = mean rate at which process enters state n. t


Ln (t ) = mean rate at which process leaves state n. t

9 Rate In = Rate Out Principle: for any state of the system n, mean entering rate = mean leaving rate. The equation expressing this principle is called the balance equation for state n. 9 Pi is the steady-state probability of being in state i. 9 Consider state 0: the mean entering rate of state 0 is 1 P1 ; the mean leaving rate of state is 0 P0 . The balance equation for state 0 is 1 P1 = 0 P0 9 For every other state there are two possible transitions both into and out of the state. Therefore, each side of the balance equations for these states represents the sum of the mean rates for the two transitions involved. 9 We can write the balance equations for the other states.

9 Notice that there is always one extra variable in these equations. Solve P1, P2 in term of P0.

Jin Y. Wang

Chap17-8

College of Management, NCTU

Operation Research II

Spring, 2009

9 Thus, the steady-state probabilities are


Pn = C n P0 , where C n =

n 1 n 2 ...0 for n = 1, 2, .; when n = 0, Cn = 1. n n 1 ...1

9 Then, use the sum of all probabilities equal 1 to solve for P0.
1 P = 1 implies that C n P0 = 1 , so that P0 = ( C n ) . n n =0 n =0 n =0

9 The key measures of performance for the queueing system (L, Lq, W, and Wq) can be obtained immediately after calculating the Pn.
L = nPn , Lq = ( n s ) Pn ,
n =0
n=s

W=

L , W = Lq q

where is the average arrival rate over the long run and = n Pn .
n=0

9 The above calculations are based on the steady-state condition. Steady-state condition holds if n = 0 or = /( s ) < 1 . The M/M/s model 9 All interarrival and service times are independently and identically distributed according to an exponential distribution. The number of servers is s. 9 This model is a special case of the birth-and-death process where the queueing systems mean arrival rate and mean service rate per busy server are constant. 9 When the system has just a single server (s = 1), the parameters for the birth-and-death process are n = , and n = . Rate diagram is as follow.

9 When the system has multiple server (s > 1), n represents the mean service rate for the overall queueing system when there are n customers in the system.

Jin Y. Wang

Chap17-9

College of Management, NCTU

Operation Research II

Spring, 2009

The service rate per busy server is , the overall mean service rate for n busy servers must be n . Therefore, n = n when n s , and n = s when n s .

9 When the maximum mean service rate s exceeds the mean arrival rate , that is, when =
< 1 , a queueing system will eventually reach a steady-state s

condition. We can use the results derived in the birth-and-death model. Results for the Single-Server Case (M/M/1)
n 9 The Cn factors reduce to C n = = , for n = 0, 1, 2,
n

9 Therefore, Pn = P0 , for n = 0, 1, 2, , where P0 = n n =0


n

1 = 1

= 1 .

9 Thus, Pn = (1 ) n , for n = 0, 1, 2, 9 Consequently, L = n(1 ) n =


n =0

9 Lq = (n 1) Pn =
n =1

2 ( )

9 When the mean arrival rate exceeds the mean service rate, the preceding solution blows up.

Jin Y. Wang

Chap17-10

College of Management, NCTU

Operation Research II

Spring, 2009

9 Consider the case when < and the queue discipline is first-come-first-served. We can derive the probability distribution of the waiting time in the system W for a random arrival. 9 If this arrival finds n customers already in the system, then the arrival will have to wait through n+1 exponential service times, including his/her own. 9 Let T1, T2, be independent service-time random variables having an exponential distribution with parameter , and let Sn+1=T1+T2++Tn+1. 9 P{W >t} = Pn P{S n +1 > t} = e (1 )t . That is, W has an exponential distribution
n =0

with parameter (1 ) . 9 Therefore, W = E(W ) =


1 1 . = (1 )

9 Sometimes, we are concern about Wq , the waiting time in the queue. 9 If this arrival finds no customers already in the system, there is no waiting time in queue. P{Wq = 0} = P0 = 1 . 9 If this arrival finds n > 0 customers already in the system, then the arrival has to wait through n exponential service times until his/her own service begins. 9 P{Wq > t} = Pn P{S n > t} = e (1 )t .
n =1

9 Wq does not quite have an exponential distribution, because P{Wq=0} > 0. 9 The conditional distribution of Wq, given that Wq > 0, does have an exponential distribution with parameter (1 ) , because
P{Wq > t | Wq > 0} = P{Wq > t} P{Wq > 0} = e (1 ) t .

9 By deriving the mean of the (unconditional) distribution of Wq (or applying either Lq = Wq or Wq = W


1

), Wq = E(Wq) =

. ( )

Jin Y. Wang

Chap17-11

College of Management, NCTU

Operation Research II

Spring, 2009

Results for the Multiple-Server Case (M/M/s) s > 1


( / ) n ( / ) n . For n = s, s+1,, C n = . 9 For n = 1, 2, , s, C n = n! s! s n s

9 P0 =

s 1 ( / ) n ( / ) s 1 = 1 / + . s! 1 /( s ) n =0 n!

9 For 0 n s, Pn = 9 Lq =
P0 ( / ) s s!(1 ) 2

( / ) n ( / ) n P0 . For n s, Pn = P0 . n! s! s n s

9 Wq = L q / , W = W q +

, L = (Wq + ) = Lq +

Jin Y. Wang

Chap17-12

College of Management, NCTU

Operation Research II

Spring, 2009

9 P{W > t} = e

P / s 1 + 0 s!(1 )

1 e t ( s 1 / ) s 1 /


s 1

9 P{Wq > t} = (1 P{Wq = 0})e s (1 )t , where P{Wq = 0} = Pn .


n =0

The County Hospital Example with the M/M/s Model 9 Estimate that patients will arrive at an average rate of 1 every 1/2 hour. A doctor requires an average of 20 minutes to treat each patient. That is, = 2 customers per hour, = 3 customers per hour. 9 Steady-State Results

P0
P1

Pn (for n 2) Lq

L Wq
W P{Wq > 0}

P{Wq > 1 / 2} P{Wq > 1} P{Wq > t} P{W > t}

s=1 2/3 1/3 2/9 (1/3)(2/3)n 4/3 2 2/3 1 0.667 0.404 0.245 2/3e-t e-t

s=2 1/3 1/2 1/3 (1/3)n 1/12 3/4 1/24 (hour) 3/8 (hour) 0.167 0.022 0.003 1/6e-4t 1/2e-3t(3-e-t)

The Finite Queue Variation of the M/M/s Model (Called the M/M/s/K Model) 9 The queueing systems sometimes have a finite queue. That is, the number of customers in the system is not permitted to exceed some specified number (denoted by K). Thus, the queue capacity is K s. 9 Any customer that arrives while the queue is full is refused entry into the system. That is, the mean input rate becomes zero at these times. For n = 0, 1, 2, , K-1, n = ; For n K, n = 0 . 9 A queueing system that fits this model will eventually reach a steady-state condition. Results for the Single-Server Case (M/M/1/K)

Jin Y. Wang

Chap17-13

College of Management, NCTU

Operation Research II

Spring, 2009

n 9 For n = 0, 1, 2, , K, C n = = ; for n > K, C n = 0 .

9 Therefore, for 1 , P0 =

1 1 , so that Pn = n , for n = 0, 1, 2, , K. K +1 + 1 K 1 1

9 Thence, L =

( K + 1) K +1 , Lq = L (1 P0 ) . 1 K +1

9 Notice that the preceding results do not require that < . 9 When < 1 , the second term in the expression for L converges to 0 as K , so that all the preceding results converge to the corresponding results given for the M/M/1 model.

9 W = , Wq =

Lq

, where = n Pn = (1 PK )
n =0

Results for the Multiple-Server Case (M/M/s/K) s > 1

Jin Y. Wang

Chap17-14

College of Management, NCTU

Operation Research II

Spring, 2009

9 For n = 1, 2, , s, C n =

( / ) n ; n!

( / ) n ; For n = s, s+1, , K, C n = s! s n s

For n > K, Cn = 0. 9 Hence, For n = 1, 2,, s, For n = s, s+1,, K, For n > K,


Pn =
( / ) n P0 ; n!

( / ) n Pn = P0 ; s! s n s

Pn = 0 .
n = s +1 s
K ns

s ( / ) n ( / ) s where P0 = 1 / + n! s! n =0

9 Lq =

P0 ( / ) s 1 K s ( K s ) K s (1 ) , where = /( s ) . 2 s!(1 )

9 L = nPn + Lq + s (1 Pn ) .
n =0 n =0

s 1

s 1

9 W and Wq are obtained from these quantities as shown for the single-server case. The Finite Calling Population Variation of the M/M/s Model 9 The input source is limited; i.e., the size of the calling population is finite. 9 Let N denote the size of the calling population. 9 When the number of customers in the queueing system is n, there are only N - n potential customers remaining in the input source. 9 The most important application of this model has been to the machine repair problem. There are N machines. The maintenance people are servers. 9 Each member of the calling population alternates between inside and outside the queueing system. 9 Assumes that each members outside time has an exponential distribution with parameter .

Jin Y. Wang

Chap17-15

College of Management, NCTU

Operation Research II

Spring, 2009

9 When n members are inside, and so N - n members are outside, the probability distribution of the remaining time until the next arrival is the distribution of the minimum of the remaining outside times for the latter N - n members. This distribution is exponential with parameter n = ( N n) . The rate diagram is as followings.

Results for the Single-Server Case (s=1) for the Finite Call Population 9 For n N , For n > N,
N! C n = N ( N 1)...( N n + 1) = ( N n)!
n n

Cn = 0
N

N! n 9 Therefore, P0 = 1 / n = 0 ( N n)!

N! Pn = P0 , if n = 1, 2, , N ( N n)! Lq = (n 1) Pn = N
n =1 N N

+ (1 P0 ) (1 P0 )

L = nPn = Lq + 1 P0 = N
n =0

W =

and Wq =

Lq

Jin Y. Wang

Chap17-16

College of Management, NCTU

Operation Research II

Spring, 2009

where = n Pn = ( N n)Pn = ( N L)
n =0 n =0

Results for the Multiple-Server Case (s>1) for the Finite Call Population 9 For n = 0, 1, 2, , s,
N! Cn = . ( N n)!n!
n

For n = s, s+1, , N, For n > N, 9 If 0 n s , If s n N , If n > N ,

N! Cn = ( N n)! s! s n s Cn = 0 .

N! Pn = P0 ( N n)!n!

N! Pn = ( N n)! s! s n s Pn = 0

P0

n N s 1 N! N! 9 P0 = 1 / + ns n = s ( N n )! s! s n =0 ( N n)!n!

9 Lq = (n s ) Pn
n=s

9 L = nPn + Lq + s1 Pn
n =0

s 1

s 1

n =0

Queueing Models Involving Nonexponential Distributions M/G/1 9 No restrictions are imposed on what the service-time distribution can be. 9 It is only necessary to know the mean 1 / and variance 2 of this distribution. 9 Thanks for the Pollaczek-Khintchine formula, we have (when < 1 )
P0 = 1

Jin Y. Wang

Chap17-17

College of Management, NCTU

Operation Research II

Spring, 2009

Lq =

2 2 + 2 2(1 )

L = + Lq Wq = Lq

W = Wq +

9 For any fixed expected service time 1 / , notice that Lq, L, Wq, and W all increase as 2 is increased.

9 When the service-time distribution is exponential, 2 = 1 / 2 , and the preceding results will reduce to the corresponding results for the M/M/1 model. Queueing Models Involving Nonexponential Distributions M/D/s 9 When the service consists of essentially the same routine task for all customers, there tends to be little variation in the service time required. 9 It assumes that all service times equal some fixed constant (the degenerate service-time distribution). 9 When there is just a single server, the M/D/1 model is just the special case of the M/G/1 model where 2 = 0 . The Pollaczek-Khintchine formula reduces to Lq =
2
2(1 )

Queueing Models Involving Nonexponential Distributions M/Ek/s 9 M/D/s model assumes zero variation and the exponential distribution assumes a very large variation ( = 1 / ). 9 Between these two rather extreme cases lies another distribution the Erlang Distribution. 9 The PDF is f (t ) =

(k )k
(k 1)!

t k 1e kt , where and k are strictly positive parameters


1

and k needs to be integer. Mean =

, and standard deviation =

1 1

9 Suppose that T1, T2, .., Tk are k independent random variables with an identical exponential distribution whose mean is 1 /(k ) . Then their sum T = T1 + T2 + + Tk has an Erlang distribution with parameters and k.

Jin Y. Wang

Chap17-18

College of Management, NCTU

Operation Research II

Spring, 2009

9 The Erlang distribution is a large (two-parameter) family of distributions permitting only nonnegative values. Both the exponential and the degenerate distribution are special cases of the Erlang distribution with k = 1 and k = , respectively. 9 Consider M/Ek/1 model, which is just the special case of the M/G/1 model. Applying Pollaczek-Khintchine formula with 2 = 1 / (k 2 ) , we have
2 /(k 2 ) + 2 1 + k 2 = Lq = 2(1 ) 2k ( )
Wq = 1+ k 2k ( )

W = Wq +
L = W

Priority-Discipline Queueing Models 9 The queue discipline is based on a priority system. 9 With nonpreemptive priorities, a customer being served cannot be ejected back into the queue (preempted) if a higher-priority customer enters. 9 With preemptive priorities, the lowest-priority customer being served is preempted whenever a higher-priority customer enters. Results for the Nonpreemptive Priorities Model 9 Let Wk be the steady-state expected waiting time in the system (including service time) for a member of priority class k.
Wk =
1

ABk 1 Bk

, for k = 1, 2, , N,

s s 1 r j where A = s! s + s , r j = 0 j! B0 = 1 , Bk

= 1

i =1

s = number of servers
= mean service rate per busy server, i = mean arrival rate for priority class i,

Jin Y. Wang

Chap17-19

College of Management, NCTU

Operation Research II

Spring, 2009

= i ,
i =0

r=

9 Littles formula still applies to individual priority class, so Lk = k Wk . A Single-Server Variation of the Nonpreemptive Priority Model 9 Different priority classes have different expected service time. 9 Let 1 / k denote the mean of the exponential service-time distribution for priority class k, so k = mean service rate for priority class k.
k k i ak 1 9 Wk = + , where a k = 2 , b0 = 1 , bk = 1 i . bk 1bk k i =1 i i =1 i

Results for the Preemptive Priority Model 9 Assume the expected service time is the same for all priority classes. 9 Wk =
1/ , for the single-server cases. Bk 1 Bk

9 When s > 1, Wk can be calculated by an iterative procedure that will soon be illustrated by an example. 9 Lk = k W k . The County Hospital Example with Priorities 9 There are three patient categories: (1) critical (10%), (2) serious (30%), and (3) stable (60%). 9 Give = 2 and = 3 , we have 1 = 0.2 , 2 = 0.6 , and 3 = 1.2 . Preemptive Priorities s=1 A B1 B2 B3
W1 1 / W2 1 /

Nonpreemptive Priorities s=1 4.5 0.933 0.733 0.333 0.238 hr 0.325 hr 0.889 hr s=2 36 0.967 0.867 0.667 0.029 hr 0.033 hr 0.048 hr

s=2 ----0.00037 hr 0.00793 hr 0.06542 hr

-0.933 0.733 0.333 0.024 hr 0.154 hr 1.033 hr

W3 1 /

Jin Y. Wang

Chap17-20

College of Management, NCTU

Operation Research II

Spring, 2009

9 The waiting time for priority class 1 customers are unaffected by the presence of lower-priority classes customers. Thus, W1 must equal W for the corresponding one-class M/M/1 model with s = 2, =3, and = 0.2 , which yield W1 = 0.3337 hour. Waiting time in the queue for class 1 customers is W1 1 / = 0.33370 0.33333 = 0.00037 9 Now consider the first two priority classes. Let W 1 2 be the expected waiting time in the system of a random arrival in either of these two classes. The probability is 1 /(1 + 2 ) =1/4 that this arrival is in class 1 and 2 /(1 + 2 ) =3/4 that it is in class 2.
1 3 W 1 2 = W1 + W2 . 4 4

W 12 must equal W for the M/M/s model with s = 2, =3, and = 0.8, which yields W 12 = W = 0.33937. We already know the value of W1, so W2 = 0.34126. W2 1 / = 0.00793. 9 Similarly, W 13 = 0.1W1 + 0.3W2 + 0.6W3 . W 13 equals W for the M/M/s model with s = 2, =3, and = 2, which yields W 13 = W = 0.375. So, W3 = 0.39875. W3 1 / = 0.06542. Queueing Network 9 Thus far we have considered only queueing systems that have a single service facility with one or more servers. 9 Queueing systems are sometimes actually queueing networks, i.e., networks of service facilities where customers must receive service at some of or all these facilities. For example, orders being processed through a job shop must be routed through a sequence of machine groups. Equivalence Property 9 Assume that a service facility with s servers and an infinite queue has a Poisson input with parameter and the same exponential service-time distribution with parameter for each server (the M/M/s model), where s > . Then the steady-state output of this service facility is also a Poisson process with parameter . Jackson Networks (with m facilities, i = 1, 2, , m) 9 An infinite queue. 9 Customers arriving from outside the system according to a Poisson input process with parameter ai.
Jin Y. Wang Chap17-21

College of Management, NCTU

Operation Research II

Spring, 2009

9 si servers with an exponential service-time distribution with parameter i . 9 A customer leaving facility i is routed next to facility j (j = 1, 2, , m) with probability pij or departs the system with probability qi = 1 pij .
j =1 m

Key properties of Jackson Network 9 Under steady-state conditions, each facility j (j = 1, 2, , m) in a Jackson network behaves as if it were an independent M/M/s system with arrival rate
j = a j + i pij , where s j j > j .
i =1 m

9 Consider a Jackson network with three service facilities that have the parameter shown below. Pij Facility j j=1 j=2 j=3 We have
1 = 1 + 2 = 4 + 0.6 1
sj

aj

i=1 0 0.6 0.3

i=2 0.1 0 0.3

i=3 0.4 0.4 0

1 2 1

10 10 10

1 4 3

0.1 2 + 0.4 3 + 0.4 3

3 = 3 + 0.3 1 + 0.3 2

The simultaneous solution for this system is 1 = 5, 2 = 10, 3 = 7.5. 9 Each of the three facilities now can be analyzed independently by using the formulas for the M/M/s model given before.
i = i (That is, 1 = 1/2, 2 = 1/2, 3 = 3/4). si i

Pn1 =

Pn2 =

Jin Y. Wang

Chap17-22

College of Management, NCTU

Operation Research II

Spring, 2009

Pn3 =

The join probability of (n1, n2, n3) = Pn1Pn2Pn3 L1 = L2 = L3 = L = W = L / = L / (a1 + a2 + a3) = The Application of Queueing Theory How Many Servers Should be Provided? 9 The two primary considerations in making these decisions are (1) the cost of the service capacity and (2) the waiting cost of customers. 9 E(TC) = expected total cost per unit time. E(SC) = expected service cost per unit time. E(WC) = expected waiting cost per unit time. 9 When each server costs the same, the service cost is E(SC) = Css, where Cs is the marginal cost of a server per unit time. 9 To evaluate WC for any value of s, E(WC) = CwL, where Cw is the waiting cost per unit time for each customer. 9 Therefore, after estimating the constants, Cs and Cw, the goal is to choose the value of s so as to Minimize E(TC) = Css + CwL.

Jin Y. Wang

Chap17-23

College of Management, NCTU

Operation Research II

Spring, 2009

An Example for Determining the Number of Servers 9 For a M/M/s model with =120 customers per hour and = 80 customers per hour. 9 We need at least two servers to reach the steady-state, since
120 < 1. 2(80)

9 Each server costs $20 per hour and waiting cost is $48 per hour. 9 We want to minimize 20s + 48L. 9 Use the results obtained before, we have s 2 3 4 5 L 3.43 1.74 1.54 1.51 E(SC)= Css $40 $60 $80 $100 E(WC)= CwL $164.57 $83.37 $74.15 $72.41 E(TC)=E(SC)+E(WC) $204.57 $143.37 $154.15 $172.41

Jin Y. Wang

Chap17-24

You might also like