transient behaviour of an m/m/1/n queue

5
Stochastic Processes and their Applications 13 (1982) 327-33 1 North-Holland Publishing Company 327 SHORT COMMUNICATION TRANSIENT BEHAVIOUR OF AN UE O.P. SHARMA and UC. GUPTA Department of Mathematics, Indian Institute of Technology, New Delhi 1 lo-OlS, India Received 22 April 1981 Revised 21 September 1981 For a simple queue with finite waiting space the difference equations satisfied by the Lsplace transforms of the state probabilities at finite time are solved and the state probabilities have been obtsined. The method economizes in algebra and the simple closed form of the state probabilities is used to obtain important parameters. 1. Introduction The transient behaviour of the M/M/l/N queue for .a general N has been discussed by Takacs [6] and Morse [4]. The expressions obtained by them are so complex that these cannot be used to obtain parameters of the queue length such as the mean in the explicit form. In this paper a very simple and elegant algebraic method developed by the first author is used to obtain the closed form solution of this important problem. 2. ain S The inter-arrival and service times are taken :o be negative exponenti.ally dis- tributed with mean A-* and g -‘, respectively. The waiting room capacity is limited to N - 1 places, that is, the maximum number of customers in the system is The system is taken to be empty at t = 0. Let p,(t) be the probability that ther system at the time t. Then PO(O) = 1 and p, (0) = 0 for n f 0. 0304-4149/82/00001-000@/$02.75 JJ 1?82 North-Holland

Upload: op-sharma

Post on 21-Jun-2016

226 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Transient Behaviour of an M/M/1/N queue

Stochastic Processes and their Applications 13 (1982) 327-33 1 North-Holland Publishing Company

327

SHORT COMMUNICATION

TRANSIENT BEHAVIOUR OF AN UE

O.P. SHARMA and UC. GUPTA Department of Mathematics, Indian Institute of Technology, New Delhi 1 lo-OlS, India

Received 22 April 1981

Revised 21 September 1981

For a simple queue with finite waiting space the difference equations satisfied by the Lsplace transforms of the state probabilities at finite time are solved and the state probabilities have been obtsined. The method economizes in algebra and the simple closed form of the state probabilities is used to obtain important parameters.

1. Introduction

The transient behaviour of the M/M/l/N queue for .a general N has been discussed by Takacs [6] and Morse [4]. The expressions obtained by them are so complex that these cannot be used to obtain parameters of the queue length such as the mean in the explicit form. In this paper a very simple and elegant algebraic method developed by the first author is used to obtain the closed form solution of this important problem.

2. ain S

The inter-arrival and service times are taken :o be negative exponenti.ally dis- tributed with mean A -* and g -‘, respectively. The waiting room capacity is limited

to N - 1 places, that is, the maximum number of customers in the system is The

system is taken to be empty at t = 0. Let p,(t) be the probability that ther system at the time

t. Then PO(O) = 1 and p, (0) = 0 for n f 0.

0304-4149/82/00001-000@/$02.75 JJ 1?82 North-Holland

Page 2: Transient Behaviour of an M/M/1/N queue

328 3.P. Sharma, U.C. Gupta / Transient beheeriour of an M/M/ l/N queue

of the system and taking Laplace transform of these equations, we get

(A + 6hw, 6) = 1.44, e),

(h+~+8)~(~~,8)=~.~~(n+l,e)+h~(n-1,8), lcn<N-1, (2.1)

where

$(n, 0) = lam e-“‘p,(t) dt.

These equations have a solution,

rl/(n, ti)=Acr”+Bp”, (2.2)

where

Using the fact that Cr=-, q9(n, e)= 8-l and the boundary condition (P + 8)+(N, 6) = A$(N - 1, I?), we obtain the values of A and B. We thus have

N-t1 tap)n c (;ykpN-n-k _(ap)n+l N-$m1 akpN-n-l-k

k=O k =I1 =

N

6 c cYkpN-k

(2.4)

(2.5)

k=O

J.t is easily observed that for integral values of n

i- J k X tn-k ,[y] (_likn-kck(xy)k.(x+y)n-2k. (2.6) k=O k=O

Writing

i Y X k n-k = fi (x + y+&,kJ~) k=O k=l

(2.7)

and comparing it with (2.6) we find that &k are n roots of the 0th degree Chebychev’k polynomial of the first kind

[n/21 &z(X) = C (-l)k n-kC;@n-2k, (2.8)

k=O

Page 3: Transient Behaviour of an M/M/1/N queue

Q.P. Sharma, U.C. Gupra ! Transient behaviour of an M/M/ I/N queue 329

Let us define

k=l

where &k are as defined in (2.8) and (~~(6) = 1, (p,(8) = 0 for n < 0. Making tise of (2.7) and (2.9) in (2.5) and remembering that cy +/3 = (9 + h + p)/p, cup = n/p, we get

cLcn 9

eJ = A”[QN-n(e)-hQN-n-l(e)]

&N(e) l

(2.10)

Because of (2.8), p&8) has distinct real factors. Making use of partial fractions and taking the inverse Laplace transform of (2.10), we get after some simplification

-(h_1_cl)t ~ A

.e -~,tJ~

nJ j=l

where

A, = (-l)N-n( t) n’2 gN-n((yNj)+Jh/cLgN-n_1((yNi)

- (Jz+ J&L/A+aN;)bNj

(2.11)

(2.12)

and N

b Nj = II( QNk -O!Nj), n=O&:.,N,j=1,2 ,..., N, k=l k#j

for A # p, and

Pn (t) N-n gN-n ~NJ ( .)+gN-n-l(aNj) e--aNihr

(2+Q~iJbNj

(2.13)

for A = p. It is easily seen that as t + OC, (2.11) and (2.13) reduce to the well known steady

state distributions. Also, when t + CO, N + 00, and if it is assumed that A < p, we

get the well known steady state distribution given by

pra=(l-;)($ n=0,1,2 ,.... (2.14)

Letting N + 00 we see from (2.3) that 0 < p 4: CY. If we divide the numerator and denominator on the right-hand side of (2.4) by aN+l and take the limit as N + a, we get

clh e) = (1 -P)S” (1 -Ph’d” = (3.1)

e n3cun l

Page 4: Transient Behaviour of an M/M/1/N queue

330 O.P. Sharmu, L1.C. Gupta / Transient behatjiour of an M/M/l/N queue

Ehlt8= -~(1 -a)(1 -p)l so we get

o/b )” l+b(n,O)=--

@(l--&C l

(3.2)

This agrees with [S, eq. (4.10), p. 891. The probabilities p,(t) can now be obtained by the method developed in [5].

Let Q(t) be the queue length at the time t. After some algebra we get

E{Q(t)}= f npn(t) n=O

f p{l --(N,+ l)pN -f-NpN+l} e_(Ji+F)f --

(1 -p)(l -p $I+l)

=

i

i< E f (-l~N-“p”‘2gN-n(~Nj)

j=l n=l (p I’* +p-l’* + aNj)bNj e

-~,,,p/~ 9 A # P, P = AIF (4.1)

i

I N N (-l)N-ngN-,(aNj) emQNi At

IN-e -2hr c c 9 A =p. j=l n=l (2 + ffNj)bNj

(4.2)

Let us now find the probability that the queue length exceeds a given number. We have that

; P n (t) =

n=r

= ,” (A/~)r’2(-l)N-rg~-r((YNi) --~~,,dji;l

x i?l (m+ Jp/A+CUNj)bNi e ’ A #cc,

N--d- 1

~ N+l -e -*At N wN-rglv-rhvj) -eNiA?

jC, (2 +a,)bNj e ’ A = @’

In a similar way other parameters, involving p!,(t), can be easily calculated.

(4.3)

(4.4)

he authors are grateful to the referee for her comments and suggestions.

Page 5: Transient Behaviour of an M/M/1/N queue

0.P. Sharma, U.C. Gupta / Transient behaviour of an M,‘M/llN queue 331

References

[l] M. Abramowitz and LA. Stegun, Handbook of Mathematical Functions (Dover Publications, New York).

[2] B.W. Conolly, A difference equation technique applied to the simple queue, 3. Roy. Statist. Sot. Ser. B (1958) 165-167.

[3] D. Gross and C.M. Harris, Fundamentals of Queueing Tbcor y (Wiley, New York, 1974). [4] P.M. Morse, Queues, Inventories and Maintenance (Wrley, New Yor?<, 1958). [5] T.L. Saaty, Elements of Queuing Theory with kppiications (McGraw-Hill, New York, 1961). [6] L. Takacs, Introduction to the Theory of Queues (Oxford University Press, London, 1962).