Mathematical Problems in Engineering

Volume 2017 (2017), Article ID 3246934, 14 pages

https://doi.org/10.1155/2017/3246934

## On the Queue with Vacations and Multiple Service Phases

School of Science, Nanjing University of Science and Technology, Nanjing 210094, China

Correspondence should be addressed to Jianjun Li

Received 6 March 2017; Revised 27 June 2017; Accepted 9 July 2017; Published 8 August 2017

Academic Editor: J.-C. Cortés

Copyright © 2017 Jianjun Li and Liwei Liu. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

This paper considers a queue with vacations and multiple service phases. Whenever the system becomes empty, the server takes a vacation, causing the system to move to vacation phase . If the server returns from a vacation to find no customer waiting, another vacation begins. Otherwise, the system jumps from phase to some service phase with probability Using the matrix geometric solution method and semi-Markov process, we obtain the distributions of the stationary system size at both arrival and arbitrary epochs. The distribution of the stationary waiting time of an arbitrary customer is also derived. In addition, we present some performance measures such as mean waiting time of an arbitrary customer, mean length of the type- cycle, and mean number of customers in the system at the end of phase . Finally, some numerical examples are presented.

#### 1. Introduction

Queueing system with vacations has been well studied in the past three decades and widely used to model many problems in computer networks, communication, service systems, and manufacturing systems. Levy and Yechiali [1] were first to investigate the queueing model with vacations. Later, many researchers have made an extensive study of such a model under the assumption that the server takes vacations between two successive busy periods. Excellent surveys on queueing models with vacations can be found in Doshi [2], Takagi [3], Tian and Zhang [4], Ke et al. [5], and so on.

We consider a type vacation queue in which the interarrival times form an independent identically distributed sequence of random variables having a general distribution function. Some literatures on this type of vacation queue have emerged. In 1989, Tian et al. [6] applied the matrix analytic method to analyze a queue with exhaustive service and multiple exponential vacations. Chatterjee and Mukherjee [7] analyzed the same model as that in Tian et al. [6]. But in [7], the vacation times are independently and identically distributed with a general distribution. Chae et al. [8] studied the queue with single vacation and obtained the stochastic decomposition structures of queue length and the sojourn time. Baba [9] considered a queue with multiple working vacations. Banik et at. [10] provided a study on a finite buffer queue with multiple working vacations. The queue with multiple working vacations and vacation interruption was analyzed by Li et al. [11]. Recently, a queue with single working vacation can be seen in the survey of Li and Tian [12]. Tao et al. [13] analyzed the queue with Bernoulli-schedule-controlled vacation and vacation interruption. Ye and Liu [14] investigated the with single working vacation and vacations.

In this paper, we extend the excellent works of Tian et al. [6] and Li and Liu [15] to a vacation queue with multiple service phases. In [6], the service rate is a constant. In fact, in most of the literature on queueing theory, the service rate is homogeneous; that is, it is a constant. But, it is not reasonable in some cases. In real life, the service rate may change with the change of the environment. Several authors have contributed to the investigation of the queueing systems whose service rates are variable, including Yechiali and Naor [16], Neuts [17], Boxma and Kurkova [18], Cordeiro and Kharoufeh [19], and B. Kim and J. Kim [20]. Most recently, Paz and Yechiali [21] considered an queue in a multiphase random environment with disasters. In their model, the system moves from repair phase to some service environment with a certain probability after being repaired. Jiang et al. [22, 23] extended Paz and Yechiali’s work to an and queue. In [15], Li and Liu studied a discrete-time queue with vacations in random environment in which the system jumps from vacation phase to a service phase with a certain probability when vacation phase ends. Inspired by [6, 15], we investigate the vacation queue with multiple service phases. When vacation phase ends, the system switches to a service environment with a certain probability, where the service rate in each service phase may be different.

The queueing system we discuss has potential application in several situations. For example, in manufacturing systems, a flexible manufacturing facility can be considered to be a server, which is mainly used to produce customer-specified products. When there are no customer backorders, the facility keeps on taking vacations. If, on return from a vacation, there is at least one customer order waiting, the facility then resumes service normally. But the service rate may change since the operator may be different.

The rest of this paper is organized as follows. Section 2 presents the model description. In Section 3, we provide the transition analysis for an embedded Markov chain. Section 4 is devoted to derive the stationary system size distribution at arrival epochs. Section 5 gives the stationary system size distribution at arbitrary epochs. Sections 6, 7, and 8 present the waiting time distribution, mean number of customers in the system at the end of phase , and results for cycle analysis, respectively. Section 9 provides some numerical examples and Section 10 concludes the paper.

#### 2. Model Description

In this paper, we provide a detailed analysis of the GI/M/1 queue with vacations and multiple service phases. Our queueing system is described as follows. Whenever the system becomes empty, the server begins a vacation of random length ; that is to say, the system moves to vacation phase . If the server returns from a vacation to find no customer waiting, another vacation begins. Otherwise, the system jumps from phase to some service phase with probability , where and . Let represent the arrival epoch of th customer with . The interarrival times are independent and identically distributed (i.i.d.) with a general distribution function, denoted by , a mean, denoted by , and a Laplace Stieltjes transform (LST), denoted by . When the system is in phase , the server stops serving customers, and the vacation times are i.i.d. exponentially distributed with rate . When the system is in service phase , the service times are i.i.d. exponential random variables with rate of . Note that the system can not directly move from one service phase to another service phase. That is, if the system becomes empty, it must move to phase first. In addition, once the system moves to service phase , the customers are served with the fixed rate . Finally, the interarrival times, service times, and vacation times are assumed to be mutually independent, and customers are served according to the discipline of first-come-first-served.

#### 3. Embedded Markov Chain

Let denote the number of customers in the system at time , and let represent the number of customers before the th arrival. Definewhere .

Because both vacation and service times have memoryless property, the process is an embedded Markov chain with the state space

In order to express the transition matrix of , let us define

Now, we consider the transition probabilities of . First, considering the case that the system is in service phase , the transition from to occurs if there are service completions during an interarrival time. Then, we haveThe transition from to arises if customers are served and then the server enters into the vacation phase. From (4), we obtainSecond, the transition from to is possible, only if . This transition occurs if the remaining vacation time is greater than an interarrival time. Then, we haveThird, the transition from to occurs if there are service completions between the end of a vacation and a customer arriving. Therefore we havefor . For , , we haveFrom (6)–(8), we get

If we sequence the states in the lexicographic order, , the transition probability matrix of can be written as the Block-Jacobi matrixwhereIt is clear that is a stochastic matrix and the process is irreducible and aperiodic.

#### 4. Stationary Distribution at Arrival Epochs

In this section, we will derive the stationary distribution of at the arrival epochs by using the matrix geometric approach. First, we introduce the following lemmas.

Lemma 1. *The Markov chain is stable if and only if and , .*

*Proof. *It is easy to see that our system acts as the classical queue with arrival rate and service rate during service phase . So as long as and , , the Markov chain is stable. That is, and , , are a sufficient condition for stability of . On the other hand, obviously, if , the Markov chain will not be stable, and if there is an , , since , then when the system moves to service phase , the Markov chain will not be stable, either. Thus, and , , are necessary for stability of .

Lemma 2. *If , then the equation has a unique root in the range , .*

*Proof. *We set . Evidently, , and . Further, for , we haveSince , , then . Thus, the equation has a unique root in the range , denoted by .

Lemma 3. *If , , then the matrix equation has the minimal nonnegative solutionwhere , is the unique root of equation in the range , , and*

*Proof. *Since each is a special upper diagonal matrix, if there exists the solution of the matrix equation , then can be assumed having the same upper diagonal structure asThenSubstituting into the matrix equation, we haveThus, , and from Lemma 2, is the unique root of equation in the range , . Substituting in the third equation of (17), we haveBy substituting (18) and in the third equation of (17), we can obtain Then the proof is completed.

Let be the stationary probability vector of , where

Theorem 4. *If and , , the stationary probability vector exists and is given byand for , can be obtained bywhere is a column vector with all its components equal to one, is the identity matrix, andwith*

*Proof. *Based on Theorem 1.5.1 of Neuts [24], if the Markov chain is positive recurrent, then the matrixhas positive left invariant vector, and is given by the positive left invariant vector and the normalizing conditionwhere is a column vector with all its components equal to one and is the identity matrix. From Lemma 1, if and , , then is positive recurrent; thus we have (21) and (22).

For , using equation (1.5.4) of Neuts [24], we obtainNow, we are ready to derive the expression of in the following.

Substituting the expressions for , , , , and in (25), we havewhereFor , we first haveFrom (see Lemma 3), then can be obtained byObviously, we have , and from (30), we obtainFor , we haveIt is easy to obtain the expressions for ,To compute the expression for , we first haveTherefore, from (14),Finally, the expressions for , can be easily obtained byThen the proof is completed.

*Remark 5. *If , let ; we havewhere , is the unique root in the range of equation , and , which are derived by Tian et al. [6].

*Remark 6. *If , let ; thenwhereFrom (21) and (22), we havewhereAll the above results coincide with the results derived in [6].

#### 5. The Stationary Distribution at Arbitrary Epochs

In this section, we will derive the limiting distribution of by using the method of the semi-Markov process (SMP). To this end, we consider another stochastic process , where , and . Clearly, is a SMP, and is its embedded Markov chain.

Let denote the time that SMP resides in state , where . By the definition of SMP, we have , and , for all . LetThenEvidently, we have ; that is, the SMP and its embedded Markov chain have an identical limiting distribution.

Let . From the theory of SMP (see Gross et al. [25], P. 299), we obtainFor , from (22), we have

Similarly, for , we haveFinally, for , we can obtain .

Then, the expected stationary system size at an arbitrary epoch, denoted by , can be given by

*Remark 7. *If , let ; substituting the results in Remarks 5 and 6 into (46) and (47), we obtainthenwhich coincide with the result derived in [6].

#### 6. The Stationary Waiting Time Distribution

Let and denote the stationary waiting time of an arbitrary customer and its LST, respectively. Due to the memoryless property of exponential distribution, the waiting time distribution of an arbitrary customer is given by