Next Article in Journal
A Survey on Domination in Vague Graphs with Application in Transferring Cancer Patients between Countries
Next Article in Special Issue
Vacation Queueing Model for Performance Evaluation of Multiple Access Information Transmission Systems without Transmission Interruption
Previous Article in Journal
Involutes of Pseudo-Null Curves in Lorentz–Minkowski 3-Space
Previous Article in Special Issue
Priority Multi-Server Queueing System with Heterogeneous Customers
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Analysis of Single-Server Multi-Class Queue with Unreliable Service, Batch Correlated Arrivals, Customers Impatience, and Dynamical Change of Priorities

1
Department of Applied Mathematics and Computer Science, Belarusian State University, 4, Nezavisimosti Ave., 220030 Minsk, Belarus
2
Applied Mathematics and Communications Technology Institute, Peoples’ Friendship University of Russia (RUDN University), 6 Miklukho-Maklaya St., 117198 Moscow, Russia
*
Author to whom correspondence should be addressed.
Mathematics 2021, 9(11), 1257; https://doi.org/10.3390/math9111257
Submission received: 28 April 2021 / Revised: 22 May 2021 / Accepted: 25 May 2021 / Published: 31 May 2021
(This article belongs to the Special Issue Applications of Mathematical Analysis in Telecommunications)

Abstract

:
A single-server non-pre-emptive priority queueing system of a finite capacity with many types of customers is analyzed. Inter-arrival times can be correlated and batch arrivals are allowed. Possible unreliability of the server, implying the loss of a customer or the necessity of its service from the early beginning or some phase of the service, is taken into account. Initial priorities provided to various types of customers at the arrival moment can be varied (increased or decreased) after the random amount of time during the customer stay in the buffer. Such a type of queues arises in the modeling operation of various emergency care systems, information, and perishable goods delivering systems, etc. The stationary behavior of the system is described by the finite state multi-dimensional continuous-time Markov chain with the upper-Hessenberg block structure of the generator. The stationary distribution of the system states and some important characteristics of the system are calculated. The presented numerical examples illustrate opportunities to quantitatively evaluate the impact of the buffer capacity and customers’ mean arrival rate on the most important characteristics of the system. The possibility of solving optimization problems is briefly shown.

1. Introduction

Queueing theory provides a powerful tool for design, capacity planning, performance evaluation, and optimization of many real-world systems. In the simplest settings, all customers of a queueing system are assumed to be homogeneous, having equal requirements and rights to receive service. However, in many real-world systems, this is not true. Some customers or classes of customers, for certain reasons, are more important for the system and are provided higher priority in access to the servers comparing to other classes. These reasons can be versatile. For example, in information transmission systems, signaling information is much more important than the information sent by the users, time-sensitive information should be transferred earlier than the elastic insensitive information. In intellectual vehicular networks, the transmission of driving safety information is much more urgent than the transmission of the info-entertainment information. Processing of information generated by the certified user is more urgent than the processing of information by the cognitive user in cognitive radio systems. The handover user who arrived at the cell of a mobile network has to be treated differently than the new user trying to establish a connection within a given cell, etc. In emergency service systems, in particular, an emergency healthcare system, the patients can be sorted and treated by injury severity. In food delivery services, the most rapidly deteriorating (perishable) items have to be delivered first. In communication systems, the clients can sign agreements with different service levels (and different fees). The ultra-reliable low-latency communication (URLLC) applications in 5G networks have higher priority than the enhanced mobile broadband (eMBB) applications, etc. A proper choice of the priorities can significantly increase the economic profit gained from the operation of a corresponding system and revenue generating businesses. Therefore, the priority queueing models have attracted a lot of attention from researchers. In the overwhelming majority of the existing research, the priorities (non-pre-emptive or pre-emptive) are assigned from the early beginning and remain permanently valid.
However, there exist a lot of various situations where it is necessary to be more flexible and change the current priorities of customers. For example, in an emergency healthcare system, after assigning the priorities to various customers as the result of the initial triage, the state of the health of a patient can become essentially worse during his or her waiting for the treatment and his or her priority has to be increased. In dispatching the ambulance cars, the priority of an initially non-urgent patient can increase due to approaching some existing deadline for the provision of an ambulance. The same situation occurs in signal processing systems with information obsolescence in which the further processing of the signal becomes meaningless after some amount of time.
The short surveys of the literature devoted to the queueing systems with changing the priority of customers are given, e.g., in [1,2,3,4,5,6,7,8,9,10,11]. In [5,6,7,8], the change of the priority occurs deterministically as a function of the elapsed sojourn time. In the rest of the cited papers, the change of the priority occurs stochastically after some random time. In [1], a table giving the brief classification of the existing results for the case of the stochastic change is presented. The existing papers are classified according to the number of priority classes, arrival process, distribution of the service time, and time until the change of the priority and the obtained results. The model considered in paper [1] is the most general with respect to the pattern of the arrival process and the distribution of the service time and time until the change of the priority. The main restriction of this paper is that only the case of two priority classes is dealt with. The closest queueing system to the model considered in this paper was analyzed in paper [12]. That queueing system has a single-server and a buffer of a finite capacity. Arriving customers are heterogeneous and impatient. Impatience depends on the type of a customer. Different types of customers are assigned the different non-pre-emptive priorities at an arrival moment. However, after the exponentially distributed interval of time during the stay in the buffer, the established priority of a customer can increase. This can occur several times during the customer waiting time. The dynamics of the considered system is described in [12] by the multi-dimensional continuous-time Markov chain. The generator of this chain is obtained, the problem of computation of the stationary state probabilities is touched. Explicit formulas for computing the key performance measures of the system via the obtained stationary probabilities are derived. The dependencies of certain performance measures on the capacity of the buffer are graphically illustrated. The importance of account of correlation in the arrival process and variance of the service time is numerically confirmed.
The distinguishing features of the model considered in this paper comparing to [12] are the following ones:
  • The batch arrival of customers of different classes in the batch marked Markov arrival process (BMMAP), which is typical in many real-world systems, is supposed while the customers arrive only one-by-one in the marked Markov arrival process (MMAP) in [12];
  • The server is supposed to be unreliable with the options of the loss of a customer, during service of which the breakdown occurs, service repetition from the beginning or from the phase of service at which the breakdown occurs, while the server is assumed reliable in [12];
  • Both possibilities of the priority increase and decrease are explored here while only the case of the possible increase of the priority is supposed in [12].
The brief outline of the paper is as follows. In Section 2, the mathematical model is described. In Section 3, the operation of the system is described by the multi-dimensional continuous-time Markov chain with the upper-Hessenberg block structure of the generator. Some results from [12] and their extensions are used to compute the blocks of the generator. A numerically stable algorithm for computation of the stationary distribution of this Markov chain, which essentially exploits the revealed structure of the generator, is presented. Formulas for computation of the key performance measures of the system based on the knowledge of the stationary distribution of the Markov chain are presented in Section 4. Section 5 contains the numerical results that show the dependencies of some performance measures (including the average number of customers of different types in the buffer and customer loss probabilities due to the buffer overflow, breakdown of the server, and impatience of the customers) on the buffer capacity and the average arrival rate. The possibility of the optimal choice of the capacity of the buffer, which guarantees that the loss probability does not exceed the pre-assigned small value, is illustrated. It is numerically shown that sometimes, due to the existence of customer losses caused not by the buffer overflow but by the server unreliability or customers impatience, it is not possible to decrease the loss probability to some admissible level by means of the corresponding increase of the buffer capacity. Section 6 concludes the paper.

2. Mathematical Model

We consider a single-server queueing system with a finite buffer of capacity N and R types of customers. The structure of the system is presented in Figure 1.
Customers of different types have identical requirements to the service process but different priorities. We assume that the types of customers are enumerated in the decreasing order of the priority. This means that type-1 customers have the highest priority, etc., type-R customers have the lowest priority. We assume that a customer having the highest priority among the presented in the buffer is selected for service at any service completion epoch.
The input flow of customers is described by the B M M A P . Customers arrival in the B M M A P is defined by the irreducible continuous time Markov chain ν t , t 0 , having the finite state space { 1 , , W } . The sojourn time of the chain ν t , t 0 , in the state ν is exponentially distributed with a positive parameter λ ν . After this time expires, with probability p 0 ( ν , ν ) this chain jumps into the state ν , ν { 1 , , W } , ν ν , without generation of customers and with probability p r ( k ) ( ν , ν ) the chain jumps into the state ν , ν { 1 , , W } , and a batch consisting of k customers of type-r is generated. Here, we assume that the maximal batch size of type r customers is limited by the parameter K r , K r 1 . Let us denote as K the maximal batch size among all types of customers, i.e., K = max { K r , r = 1 , R ¯ } .
The parameters defining the B M M A P can be stored in the square matrices D 0 , D r ( k ) , r = 1 , R ¯ , k = 1 , K r ¯ , of size W defined by their entries:
( D 0 ) ν , ν = λ ν ,
( D 0 ) ν , ν = λ ν p 0 ( ν , ν ) , ( D r ( k ) ) ν , ν = λ ν p r ( k ) ( ν , ν ) , ν , ν = 1 , W ¯ , k = 1 , K r ¯ , r = 1 , R ¯ .
The matrix
D ( 1 ) = D 0 + r = 1 R k = 1 K r D r ( k )
is a generator of the Markov chain ν t , t 0 .
Let us denote as θ the stationary probability vector of the states of the Markov chain ν t , t 0 .
This vector can be found as the unique solution to the system
θ D ( 1 ) = 0 , θ e = 1 .
Hereinafter, 0 is a zero row vector and e is the column vector consisting of ones.
The average intensity λ r of type-r customers arrival is defined as
λ r = θ k = 1 K r k D r ( k ) e , r = 1 , R ¯ .
The average intensity λ r b a t c h of batches of type-r customers arrival is calculated by
λ r b a t c h = θ k = 1 K r D r ( k ) e , r = 1 , R ¯ .
The average intensity λ of customers arrival is defined as
λ = r = 1 R λ r .
For more information about the B M M A P , see, e.g., [13].
If a batch of customers of any type arrives when the server is idle, the first customer of the batch immediately starts processing by the server (service), and the rest of the customers are placed into the buffer. If the capacity of the buffer is not enough for storing all the customers from the batch, the customers, for which there is not enough buffer space, leave the system permanently (are lost). This means that we assume the partial admission discipline.
During the stay in the buffer, each customer of type- r , r = 1 , R ¯ , can change (increase or decrease) its priority. Obviously, for most applications, it is sufficient to consider the model with increasing priority of customers. However, for the mathematical generality of the model and having in mind the potential application in information processing systems where long waiting implies the obsolescence of information and the decrease of its value, we consider the possibility of both increasing and decreasing the priority. We assume that after an exponentially distributed time with the parameter α r any type- r , r = 2 , R ¯ , customer becomes a type-l customer with the probability p r , l , l = 1 , r 1 ¯ , independently of other customers. Here, l = 1 r 1 p r , l = 1 , r = 2 , R ¯ . After the exponentially distributed time with the parameter β r , r = 1 , R 1 ¯ , any type-r customer becomes a type-l customer with the probability q r , l , l = r + 1 , R ¯ , independently of other customers. Here, l = r + 1 R q r , l = 1 , r = 1 , R 1 ¯ .
Customers can be impatient and leave the buffer without service, independently of other customers. If, during an exponentially distributed with parameter γ r time, a type-r customer does not succeed to enter the service, this customer departs from the system permanently (is lost), r = 1 , R ¯ . If, during the stay in the buffer, the customer changes his or her priority and becomes type- r customer, the patience time restarts and has an exponential distribution with the parameter γ r , r = 1 , R ¯ . We denote γ = ( γ 1 , , γ R ) .
Customers’ service times have the so called phase-type distribution with failures ( P H F ), see [14]. This distribution is an essential generalization of the classical phase-type distribution. The duration of a service time and the result of service are defined by the continuous-time underlying Markov chain m t , t 0 , having a finite state space { 1 , , M , M + 1 , M + 2 } . Here, the states { 1 , , M } are transient while the states M + 1 and M + 2 are the absorbing states. The initial state of the underlying Markov chain at the service beginning moment is randomly chosen from the set of the transient states. The probabilities defining the choice are given by the components of the stochastic row vector σ = ( σ 1 , , σ M ) . The intensities of the transition between transient states (phases) of the process m t are defined by the entries of the sub-generator S .
The transition of the chain to one of the two absorbing states corresponds to the end of the current stage of the service. The transition intensities of the chain to the absorbing state M + 1 are given by the components of the column vector S 1 . The transitions to the absorbing state M + 1 correspond to the successful service of a customer. The intensities of the transition to this state M + 2 are given by the components of the column vector S 2 . The transition of the chain to the absorbing state M + 2 means the end of the stage of the service due to a failure occurrence. When a failure occurs, then the serviced customer is lost with probability q 1 , restarts service from the early beginning with probability q 2 , and continues service from the phase at which the failure occurred with probability 1 q 1 q 2 .
For more information about P H F distribution and its properties see [14,15].

3. Process of the System States

The behavior of the system under study can be described by the regular irreducible continuous-time Markov chain
ξ t = { n t , ν t , m t , η t ( 1 ) , , η t ( R ) } , t 0 ,
where, during the epoch t ,
  • n t is the number of customers in the system, n t = 0 , N + 1 ¯ ;
  • ν t is the state of the underlying process of the B M M A P , ν t = 1 , W ¯ ;
  • m t is the state of the underlying process of P H F service process, m t = 1 , M ¯ ;
  • η t ( r ) is the number of type-r customers in the buffer, η t ( r ) = 0 , n t 1 ¯ , r = 1 , R ¯ , r = 1 R η t ( r ) = n t 1 , n t > 1 .
To investigate the Markov chain ξ t , t 0 , let us enumerate its states in the direct lexicographic order of the components ν t and m t , and the reverse lexicographic order of the components η t ( 1 ) , , η t ( R ) .
Let us firstly consider the process ζ t ( n ) = { η t ( 1 ) , , η t ( R ) } , t 0 , η t ( r ) = 0 , n ¯ , r = 1 , R ¯ , r = 1 R η t ( r ) = n . Under the fixed total number n of customers in the buffer, the components of the R-dimensional process ζ t ( n ) describe the dynamics of the number of customers of different types currently presenting in the buffer. To describe transition intensities of this process, we use several auxiliary matrices.
(a)
The intensities of transition of this process when some customer departs from the buffer due to impatience are the elements of the matrix L n ( γ ) ;
(b)
The intensities of transition of this process when some customer changes the priority are the elements of the matrix Y n = Y n ( H ) . Here, the matrix H defines the intensities of increasing and decreasing of priorities. It is described by formula:
H = 0 q 1 , 2 β 1 q 1 , 2 β 1 q 1 , R 1 β 1 q 1 , R β 1 α 2 0 q 2 , 3 β 2 q 2 , R 1 β 2 q 2 , R β 2 p 3 , 1 α 3 p 3 , 2 α 3 0 q 3 , R 1 β 3 q 3 , R β 3 p R 1 , 1 α R 1 p R 1 , 2 α R 1 p R 1 , 3 α R 1 0 q R 1 , R β R 1 p R , 1 α R p R , 2 α R p R , 3 α R p R , R 1 α R 0 .
(c)
The transition probabilities of the process ζ t ( n ) when a new customer arrives and is admitted to the system are the elements of the matrix A n ( h ) , n = 0 , N 1 ¯ . Here, the entries h r of the row vector h = ( h 1 , h 2 , , h R ) are the probabilities that the arrived to the system customer has type- r , r = 1 , R ¯ ;
(d)
The transition probabilities of the process ζ t ( n ) when new customer is picked up for service are the elements of the matrix E n , n = 1 , N ¯ . This customer has the highest priority among all customers currently waiting in the system.
The algorithms for computation of the matrices L n ( γ ) , Y n ( H ) , A n ( h ) and E n and their proofs are presented in [12].
Let us introduce the following notation:
  • ⊗ and ⊕ indicate the symbols of the Kronecker product and sum of matrices, respectively, see [16];
  • h r = ( 0 , , 0 r 1 , 1 , 0 , , 0 R r ) , r = 1 , R ¯ ;
  • I ^ n = diag { Y n e + L n e } , n = 1 , N ¯ , where diag { } is the diagonal matrix with the diagonal elements listed in the brackets;
  • T n =   n + R 1 R 1   = ( n + R 1 ) ! n ! ( R 1 ) ! , n = 1 , N ¯ , T 0 = 1 .
By analyzing all possible transitions of the Markov chain ξ t , t 0 , during an interval of infinitesimal length and rewriting the intensities of these transitions in the block matrix form, we obtain the following result.
Theorem 1.
The infinitesimal generator Q of the Markov chain ξ t , t 0 , has the following block-tridiagonal structure
Q = Q 0 , 0 Q 0 , 1 Q 0 , 2 Q 0 , 3 Q 0 , N Q 0 , N + 1 Q 1 , 0 Q 1 , 1 Q 1 , 2 Q 1 , 3 Q 1 , N Q 1 , N + 1 O Q 2 , 1 Q 2 , 2 Q 2 , 3 Q 2 , N Q 2 , N + 1 O O O O Q N + 1 , N Q N + 1 , N + 1 .
The non-zero blocks are defined as follows:
Q 0 , 0 = D 0 ,
Q 1 , 1 = D 0 S + I W [ ( 1 q 1 q 2 ) diag { ( S 2 ) l , l = 1 , M ¯ } + q 2 S 2 σ ] ,
Q n , n = D 0 S I T n 1 + I W [ ( 1 q 1 q 2 ) diag { ( S 2 ) l , l = 1 , M ¯ } + q 2 S 2 σ ] I T n 1 + I W M ( Y n 1 + I ^ n 1 ) , n = 2 , N ¯ ,
Q N + 1 , N + 1 = ( D 0 S ) I T N + ( 1 q 1 q 2 ) I W diag { ( S 2 ) l , l = 1 , M ¯ } I T N + I W M ( Y N + I ^ N ) + r = 1 R k = 1 K r D r ( k ) I M T N + q 2 I W S 2 σ I T N ,
Q 0 , 1 = r = 1 R D r ( 1 ) σ ,
Q 0 , n = r = 1 R Z n r , n = 2 , min { N , K } ¯ ,
where
Z n r = D r ( n ) σ ( A 0 ( h r ) × A 1 ( h r ) × A n 2 ( h r ) ) , i f n K r , O , o t h e r w i s e ,
Q 0 , N + 1 = r = 1 R k = N + 1 K r D r ( k ) σ ( A 0 ( h r ) × A 1 ( h r ) × A N 1 ( h r ) ) ,
Q n , n + k = r = 1 R Z ˜ n r , k , n = 1 , N ¯ , k = 1 , min { N n , K } ¯ ,
where
Z ˜ n r , k = D r ( k ) I M A n 1 ( h r ) × A n ( h r ) × A n + k 2 ( h r ) , i f k K r , O , o t h e r w i s e ,
Q n , N + 1 = r = 1 R k = N + 1 n K r D r ( k ) I M A n 1 ( h r ) × A n ( h r ) × A N 1 ( h r ) , n = 1 , N ¯ ,
Q 1 , 0 = I W ( q 1 S 2 + S 1 ) ,
Q n , n 1 = I W ( q 1 S 2 + S 1 ) σ E n 1 + I W M L n 1 ( γ ) , n = 2 , N + 1 ¯ .
Proof. 
The proof of the theorem is based on the analysis of all possible transitions of the Markov chain ξ t , t 0 , during the time interval of infinitesimally small length. The diagonal entries of the matrices Q n , n , n = 0 , N + 1 ¯ , are negative. The moduli of these elements define the total intensity of the exit of the Markov chain ξ t , t 0 , from the corresponding state.
  • In the case n = 0 , the system is empty and the Markov chain ξ t , t 0 , can only leave its state when the underlying process of the B M M A P arrival flow makes a transition from one state to another. The intensities of such transitions are defined by the modulus of the diagonal entries of the matrix D 0 ;
  • In the case n = 1 , the server is busy and the buffer is empty. In this case, the Markov chain ξ t , t 0 , can leave its current state also due to a transition in the underlying process of service. The intensities of the underlying process of service exit from its states are given as the modulus of the diagonal entries of the matrix S and the total intensities of transitions of the service and arrival process in the case n = 1 are given as the modulus of the corresponding entries of the matrix D 0 S . However, not all the transitions of the service process lead to the change of the state of the chain ξ t . There are possible situations when the service process transits from some state to the second absorbing state, a failure occurs and a customer who received service when a failure occurred, restarts the service from the same state. When such a situation occurs, the chain ξ t does not exit from its state. The intensities of such transitions are given by the diagonal entries of the matrix I W [ ( 1 q 1 q 2 ) diag { ( S 2 ) l , l = 1 , M ¯ } + q 2 S 2 σ ] . Thus, the total intensities of the leaving the states of the Markov chain ξ t , t 0 , in the case n = 1 are given by the modulus of the corresponding entries of the matrix defined by formula (1);
  • In the case n = 2 , N ¯ , there are n 1 customers in the buffer. Therefore, in contrast to the case n = 1 , the Markov chain ξ t , t 0 , can also leave its state due to a transition of the process ζ t ( n 1 ) that describes the dynamics of the types of the customers staying in the buffer. The intensities of transitions of the process ζ t ( n 1 ) are given as the modulus of the diagonal entries of the matrix I ^ n 1 . Thus, the total intensities of the leaving the states of the Markov chain ξ t , t 0 , in the case n = 2 , N ¯ , are given by the modulus of the corresponding entries of matrix (2);
  • In the case n = N + 1 , the Markov chain ξ t , t 0 , can leave its state due to the same reasons as in the previous case. The reason why we separately consider this case is the following. When the buffer is full, the situation is possible when the underlying process of the B M M A P makes a transition from one state to the same state with the generation of a batch of customers (transitions to the same state without a batch generation are not allowed in B M M A P ). Since the buffer is full, the arriving batch will be lost. So, such a transition does not change the state of the Markov chain ξ t , t 0 , and it is required to add to the negative diagonal entries of the matrix ( D 0 S ) I T N + ( 1 q 1 q 2 ) I W diag { ( S 2 ) l , l = 1 , M ¯ } I T N + I W M I ^ N + q 2 I W S 2 σ I T N the positive diagonal entries of the matrix r = 1 R k = 1 K r D r ( k ) I M T N . Thus, the total intensities of the exit from the states of the Markov chain ξ t , t 0 , in the case n = N + 1 are given by the modulus of the corresponding entries of matrix (3).
The non-diagonal entries of the matrices Q n , n , n = 0 , N + 1 ¯ , are positive and define the intensities of the Markov chain ξ t , t 0 , transitions that do not lead to the change the number of customers in the system n . These transitions are:
  • The transitions of the B M A P underlying process without generation of a batch (the intensities are defined by non-diagonal entries of the matrix D 0 ) in the case n = 0 , N + 1 ¯ ;
  • The transitions of the service process to the second absorbing state which are accompanied with the restart of the service of a customer from the beginning from another state (they are defined by the non-diagonal entries of the matrix I W q 2 S 2 σ I T n 1 ) in the case n = 1 , N + 1 ¯ ;
  • The transitions of the process ζ t ( n 1 ) due to the change of the priority by some customer (the intensities of such transitions are defined by non-diagonal entries of the matrix I W M Y n 1 ) in the case n = 2 , N + 1 ¯ ;
  • The transitions of the B M A P underlying process with generation of a batch to the same state (the intensities are defined by non-diagonal entries of the matrix r = 1 R k = 1 K r D r ( k ) I M T N ) in the case n = N + 1 .
Taking into account all these reasonings, we obtain the form of the diagonal blocks Q n , n , n = 0 , N + 1 ¯ , of the generator Q.
The entries of the matrices Q n , n + k , n = 0 , N ¯ , k = 1 , max { K , N + 1 n } ¯ , are positive and define the intensities of the Markov chain ξ t , t 0 , transitions that lead to the increase in the number of customers in the system from n to n + k . The entries of the matrix Q 0 , 1 define the intensity of the chain ξ t transitions that lead to the increase in the number of customers in the system from 0 to 1. Such transitions occur when exactly one customer of any type arrives at the empty system. In this case, we have to establish the state of the service process according to the probabilistic vector σ . Thus, the matrix Q 0 , 1 has form (4).
The entries of the matrices Q 0 , n , n = 2 , min { N , K } ¯ , define the intensity of the chain ξ t transitions that lead to the increase in the number of customers in the system from 0 to n. Such transitions occur when exactly n customers of any type arrive at the empty system. In this case, except for the establishing the state of the underlying process of service, we also have to establish the states of the process that describes the transitions of the number of different types of customers in the buffer using the matrices A 0 ( h r ) × A 1 ( h r ) × A n 2 ( h r ) , in the case of type-r customers arrival. Note, the arrival of n type-r customers is not possible when n is greater than the maximal batch size K r . For accounting such situations we introduce the matrices Z n r . Thus, the matrices Q 0 , n , n = 2 , min { N , K } ¯ , have form (5).
The matrix Q 0 , N + 1 is not zero only when N + 1 K . The entries of this matrix give the transitions of the chain ξ t that lead to the arrival of more than N customers to the empty system. The explanation of form (6) of the matrix Q 0 , N + 1 is the same as in the previous case. The form of the matrices Q n , n + k and Q n , N + 1 can be explained similarly as above, only taking into account that there is no need to establish the state of the service process because the server is busy in these cases. Taking into account all these reasonings we obtain the form of the blocks Q n , n + k , n = 0 , N ¯ , of the generator Q.
The entries of the matrices Q n , n 1 , n = 1 , N + 1 ¯ , are positive and define the intensities of the Markov chain ξ t , t 0 , transitions that lead to the decrease in the number of customers in the system by one. In the case n = 1 , such a decrease occurs when the service of a customer is successfully finished or terminated due to a failure occurrence with subsequent loss of the customer under the service. The intensities of such transitions are given by the entries of the matrix I W ( q 1 S 2 + S 1 ) . In the case n = 2 , N + 1 ¯ , such a decrease also can occur due to the successful service or loss of a customer due to the failure. Since the buffer is not empty, in such a situation it is necessary to choose a customer with the highest priority from the buffer and establish the state of a new service process. Besides this, such a decrease can occur due to the customer loss from the buffer due to impatience. The intensities of such transitions are given by the matrix I W M L n 1 ( γ ) . Taking into account all these reasonings, we obtain the form of the blocks Q n , n 1 , n = 1 , N 1 ¯ , of the generator Q. Since the customers are serviced only one by one, the service completion of two or more customers during a infinitesimally small time interval is impossible. Thus, Q n , n k , n = 1 , N 1 ¯ , k = 0 , n 2 ¯ , are zero matrices. □
The Markov chain ξ t , t 0 , has a finite state space and is irreducible. This implies that, the steady-state probabilities of the system
π ( n , ν , m , η ( 1 ) , , η ( R ) ) =
= lim t P { n t = n , ν t = ν , m t = m , η t ( 1 ) = η ( 1 ) , , η t ( R ) = η ( R ) }
exist for all values of the system parameters.
Let these probabilities be enumerated in the reverse lexicographic order of the components η t ( 1 ) , , η t ( R ) and the direct lexicographic order of the components ν t and m t into the row vectors π n , n = 0 , N + 1 ¯ . of
The vectors π n , n = 0 , N + 1 ¯ , satisfy the following system of equilibrium (Chapman-Kolmogorov) equations:
( π 0 , π 1 , , π N + 1 ) Q = 0 ,
( π 0 , π 1 , , π N + 1 ) e = 1
where Q is the infinitesimal generator of the Markov chain ξ t , t 0 .
If the number of equations of system (7) is large, to solve it one should use an algorithm that takes into account the sparse structure of the generator Q . We propose the following Algorithm 1.
The idea of this algorithm is to substitute the system (7) with the system of equilibrium equations for the family of specially constructed censored Markov chain with varying censoring levels for the initial Markov chain ξ t , t 0 . This idea is borrowed from the paper [17] where the analyzed Markov chain had an infinite state space. The presented above algorithm is essentially less memory consuming than the algorithm that is the direct adaptation of the algorithm from [17]. The latter algorithm has a step similar to step 3 in the presented algorithm. However, in [17] the sequence of the matrices of size W M T n 1 × W M T n 1 , n = 1 , N + 1 ¯ , is recursively computed and stored while in the presented algorithm we recursively compute and store only the row vectors ϕ n of size W M T n 1 .
Algorithm 1: Computation of the probability vectors π n , n = 0 , N + 1 ¯
  • Step 1. Calculate the matrices P i , n using the following recursive formulas:
    P i , N + 1 = Q i , N + 1 ( Q N + 1 , N + 1 ) 1 , i = 0 , N ¯ ,
    P i , n = ( Q i , n + P i , n + 1 Q n + 1 , n ) ( Q n , n + P n , n + 1 Q n + 1 , n ) 1 ,
    i = 0 , n 1 ¯ , n = N , N 1 , , 1 .
  • Step 2. Find the vector ϕ 0 as the only solution to the following system of linear algebraic equations:
    ϕ 0 ( Q 0 , 0 + P 0 , 1 Q 1 , 0 ) , ϕ 0 e = 1 .
  • Step 3. Calculate the vectors ϕ n , n = 1 , N + 1 ¯ , as:
    ϕ n = i = 0 n 1 ϕ i P i , n = 0 , n = 1 , N + 1 ¯ .
  • Step 4. Find the constant c = n = 0 N + 1 ϕ n e 1 .
  • Step 5. Find the vectors of the stationary distribution π n , n = 0 , N + 1 ¯ , as
    π n = c ϕ n .

4. Performance Measures

When the stationary probabilities have been computed, we can find different system performance measures.
The average number of customers in the buffer is
N b u f f e r = n = 2 N + 1 ( n 1 ) π n e .
The average number N b u f f e r ( r ) of type- r , r = 1 , R ¯ , customers in the buffer can be computed as
N b u f f e r ( r ) = n = 2 N + 1 π n ( I W M L n 1 ( h r ) ) e .
Here, the matrix L n 1 ( h r ) is computed by the same formulas as the matrix L n 1 ( γ ) , with replacement of the vector γ of impatience rates by the stochastic vector h r .
The output rate of successfully serviced customers is
λ o u t = n = 1 N + 1 π n ( I W S 1 I T n 1 ) e .
The output rate of customers who leave the system due to service failure is
λ f a i l = q 1 n = 1 N + 1 π n ( I W S 2 I T n 1 ) e .
The output rate of customers who leave the buffer due to impatience is
λ i m p = n = 2 N + 1 π n ( I W M L n 1 ( γ ) ) e .
The probability P l o s s of loss of an arbitrary customer is computed as
P l o s s = 1 λ o u t λ .
The probability P f a i l l o s s of loss of an arbitrary customer due to service failure is computed as
P f a i l l o s s = λ f a i l λ .
The probability P i m p l o s s of loss of an arbitrary customer due to impatience is computed as
P i m p l o s s = λ i m p λ .
The output rate λ i m p ( r ) of the type- r , r = 1 , R ¯ , customers who leave the buffer due to impatience is
λ i m p ( r ) = n = 2 N + 1 π n ( I W M L n 1 ( γ r ) ) e
where γ r is the row vector of size R with all zero entries except the r-th entry which is equal to γ r .
The average rate λ ˜ ( r ) of changing the types- l , l = r + 1 , R ¯ , of a customer to type- r , r = 1 , R 1 ¯ , is computed as
λ ˜ ( r ) = l = r + 1 R α l N b u f f e r ( l ) p l , r .
The average rate λ ^ ( r ) of of changing the types- l , l = 1 , r 1 ¯ , of a customer to the type- r , r = 2 , R ¯ , is computed as
λ ^ ( r ) = l = 1 r 1 β l N b u f f e r ( l ) q l , r .
The probability P i m p l o s s ( r ) , r = 1 , R ¯ , that an arbitrary type-r customer will be lost due to impatience can be computed
P i m p l o s s ( r ) = λ i m p ( r ) λ r + λ ˜ ( r ) λ ^ ( r ) .
Here, we assume that λ ˜ ( R ) = 0 and λ ^ ( 1 ) = 0 .
The probability of an arbitrary type-r customer loss upon arrival is
P e n t l o s s ( r ) = λ r 1 [ π 0 k = N + 2 K r ( k ( N + 1 ) ) D r ( k ) e + n = 1 N + 1 k = N + 2 n K r π n ( k ( N + 1 n ) ) ( D r ( k ) I M T n 1 ) e ] , r = 1 , R ¯ .
The probability of an arbitrary customer loss upon arrival is
P e n t l o s s = λ 1 r = 1 R [ π 0 k = N + 2 K r ( k ( N + 1 ) ) D r ( k ) e + n = 1 N + 1 k = N + 2 n K r π n ( k ( N + 1 n ) ) ( D r ( k ) I M T n 1 ) e ] .
Remark 1.
To control the accuracy of calculations, the following equality can be used
P l o s s = P e n t l o s s + P i m p l o s s + P f a i l l o s s .

5. Numerical Example

In this numerical experiment, we assume that the number of types of customers is R = 3 .
The matrices D 0 and D r ( k ) , which define the B M M A P , are given by
D 0 = 0.529945 0 0 0.5315542 ,
D 1 ( 1 ) = 0.00643918 0.0070831 0.006117 0.006439 , D 1 ( 2 ) = 0.0128784 0.00998072 0.0122344 0.0135223 ,
D 1 ( 3 ) = 0.0177077 0.0170638 0.0164199 0.0189956 , D 1 ( 4 ) = 0.0193175 0.0196395 0.0199615 0.0189956 ,
D 2 ( 1 ) = 0.0325179 0.0647138 0.0972316 0.0962657 , D 2 ( 2 ) = 0.0482939 0.112686 0.0486158 0.112364 ,
D 3 ( 1 ) = 0.0482939 0.0321959 0 0 , D 3 ( 2 ) = 0.0643918 0.0006439 0.0321959 0 ,
D 3 ( 3 ) = 0.016098 0 0.0321959 0 .
These matrices provide the value of intensities λ r , r = 1 , R ¯ , such as λ 1 = 0.322758 , λ 2 = 0.467236 , λ 3 = 0.210007 . The total customers arrival intensity is λ = 1 .
We assume that the P H F distribution of the service time is defined by the vectors σ = ( 0.05 , 0.95 ) , S 1 = ( 0.29 , 13.3 ) T , S 2 = ( 0.01 , 1 ) T , the matrix S = 0.5 0.2 0.7 15 , and the probabilities q 1 = 0.2 , q 2 = 0.3 .
The mean service time (successful or not) is b 1 = 0.258152 .
The intensities and probabilities that define the changes of customers priorities are the following: α 2 = 0.1 , α 3 = 0.15 ,   β 1 = 0.01 , β 2 = 0.04 ,   p 2 , 1 = 1 , p 3 , 1 = p 3 , 2 = 0.5 , q 1 , 2 = 0.6 , q 1 , 3 = 0.4 , q 2 , 3 = 1 . The intensities of impatience are γ 1 = 0.02 , γ 2 = 0.015 , γ 3 = 0.01 .
Let us vary the values of the buffer capacity N over the interval [ 1 , 40 ] with step 1. Also, we vary the values of the total arrival intensity λ over the interval [ 1 , 3 ] with step 0.25. It is done using multiplication of the matrices D 0 and D r ( k ) by the corresponding intensity λ . For example, the B M M A P with matrices 1.25 D 0 and 1.25 D r ( k ) has the total arrival intensity λ = 1.25 .
Figure 2, Figure 3, Figure 4 and Figure 5 illustrate the dependence of the average number N b u f f e r of customer in the buffer and average number N b u f f e r ( r ) of type- r , r = 1 , R ¯ , customers in the buffer on the buffer capacity N and average total arrival rate λ .
As it is seen from Figure 2, Figure 3, Figure 4 and Figure 5, the average numbers of customers (total and of each type) in the buffer increase with the increase of the buffer capacity and the average arrival rate.
Figure 6 illustrates the dependence of the probability P e n t l o s s of an arbitrary customer loss upon arrival on the buffer capacity N and average total arrival rate λ .
The loss probability P e n t l o s s decreases with the increase of the buffer capacity N and increases with the increase of the arrival intensity λ . Our results allow us to estimate this intuitively clear dependence quantitatively.
Figure 7 shows the dependence of the probability P f a i l l o s s of loss of an arbitrary customer due to service failure on the buffer capacity N and average total arrival rate λ .
The loss probability P f a i l l o s s increases with the increase of the buffer capacity N and decreases with the increase of the arrival intensity λ . When the buffer capacity N increases and the arrival intensity λ decreases, the share of customers that succeed to reach the server grows, which implies the increase of the loss probability P f a i l l o s s .
Figure 8 illustrates the dependence of the probability P i m p l o s s of loss of an arbitrary customer due to impatience on the buffer capacity N and average total arrival rate λ .
The loss probability P i m p l o s s grows with the increase of the buffer capacity N. It can be explained as follows. With the growth of N, the number of customers staying in the buffer increases, and more customers leave the buffer due to impatience. The behavior of the loss probability P i m p l o s s with the increase of λ can be not monotonic. For example, for N = 5 for λ = 1 the loss probability P i m p l o s s = 0.008144564 , for λ = 2.5 the loss probability P i m p l o s s = 0.00967045 , and for λ = 3 the loss probability P i m p l o s s = 0.0095407 . This is because the increase of λ leads, on the one hand, to the increase in the number of customers in the buffer that has to increase the probability P i m p l o s s , but on the other hand, the increase of λ implies the growth of the share of the customers that leave the system upon arrival and cannot be lost due to impatience.
Figure 9 illustrates the dependence of the loss probability of an arbitrary customer P l o s s on the buffer capacity N and average total arrival rate λ .
As it is seen from Figure 9, the loss probability P l o s s increases with the increase of the average total arrival rate λ and the decrease of the buffer capacity N .
Using the obtained results we can solve various optimization problems. For example, let the optimization problem be formulated as follows: it is required to determine the minimal buffer capacity N that guarantees the fulfillment of the inequality P l o s s ( N ) < 0.05 .
In the considered example, for the average total arrival rate λ = 1 , the optimal value of the buffer capacity is N = 8 and the corresponding loss probability P l o s s ( N ) is equal to 0.04762911 .
For the average total arrival rate λ = 1.25 , the optimal value of the buffer capacity is N = 11 and the corresponding loss probability P l o s s ( N ) is equal to 0.047593474 .
For the average total arrival rate λ = 1.5 , the optimal value of the buffer capacity is N = 15 and the corresponding loss probability P l o s s ( N ) is equal to 0.04719013 .
For the average total arrival rate λ = 1.75 , the optimal value of the buffer capacity is N = 19 and the corresponding loss probability P l o s s ( N ) is equal to 0.04984426 .
For the average total arrival rate λ = 2 , the optimal value of the buffer capacity is N = 27 and the corresponding loss probability P l o s s ( N ) is equal to 0.049408936 .
For the average total arrival rates λ = 2.25 , 2.5 , 2.75 , and 3, it is impossible to determine the optimal buffer size only from the values presented on Figure 9 because P l o s s ( 40 ) > 0.05 for all these arrival intensities. In the case of λ = 3 , the optimal solution doesn’t exist because the value of the probability P i m p l o s s of loss of an arbitrary customer due to impatience when N = 40 is equal to 0.05445345, and as we mentioned above, this probability grows with the increase of buffer capacity N. So, the loss probability P l o s s in the case λ = 3 is greater than 0.05445345 for all N 40 .
In the cases λ = 2.5 and λ = 2.75 , the probability P i m p l o s s of loss of a customer due to impatience when N = 40 is less than 0.05 (0.04119366 and 0.0478299, respectively). However, the sum of probabilities P i m p l o s s and P f a i l l o s s is 0.05485347 in the case λ = 2.5 , and 0.061301324 in the case λ = 2.75 and exceeds the value 0.05. Since the loss probability P f a i l l o s s also increases with increase of N, the optimal solution doesn’t exist in the case λ = 2.5 and λ = 2.75 .
In the case of λ = 2.25 , it is necessary to increase the buffer capacity to obtain the optimal solution. In the considered example, the optimal buffer capacity is N = 52 , and the corresponding loss probability P l o s s ( N ) is equal to 0.049960257 .

6. Conclusions

A single-server queueing model with a buffer of a finite capacity, heterogeneous correlated arrival process with the possibility of batch arrivals and non-pre-emptive priorities is analyzed. Customers are impatient with the impatience rate depending on the type of the customer. The server is unreliable. The priorities can be changed (increased or decreased) randomly in the Markov manner during the customer’s stay in the buffer. The stationary behavior of the system having the listed features is analyzed via the analysis of the properly constructed Markov chain. The numerical results give some insight into the dependence of the main performance measures of the system on the total arrival rate and capacity of the buffer. The possibility of achieving the admissible value of an arbitrary customer loss probability via the proper choice of the buffer capacity is discussed.
As the directions for further research, generalizations of the model to the cases with a dependence of service time distribution on the type of a customer, possibility of the service pre-emption and the loss of the customers whose service is interrupted or their retrials deserve investigation in the future.

Author Contributions

Conceptualization, S.D. and A.D.; methodology, S.D., O.D., and K.S.; software, S.D. and O.D.; validation, S.D. and O.D.; formal analysis, S.D., K.S., and A.D.; investigation, A.D.; writing, original draft preparation, K.S. and A.D.; writing, review and editing A.D. and K.S.; supervision A.D. and K.S.; project administration O.D. and A.D. All authors read and agreed to the published version of the manuscript.

Funding

The publication was prepared with the support by the RUDN University Strategic Academic Leadership Program.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Klimenok, V.; Dudin, A.; Dudina, O.; Kochetkova, I. Queuing System with Two Types of Customers and Dynamic Change of a Priority. Mathematics 2020, 8, 824. [Google Scholar] [CrossRef]
  2. Cao, P.; Xie, J. Optimal control of a multiclass queueing system when customers can change types. Queueing Syst. 2016, 82, 285–313. [Google Scholar] [CrossRef]
  3. He, Q.-M.; Xie, J.; Zhao, X. Priority Queue with Customer Upgrades. Nav. Res. Logist. 2012, 59, 362–375. [Google Scholar] [CrossRef] [Green Version]
  4. Xie, J.; Cao, P.; Huang, B.; Ong, M.E.H. Determining the conditions for reverse triage in emergency medical services using queuing theory. Int. J. Prod. Res. 2012, 54, 3347–3364. [Google Scholar] [CrossRef]
  5. Fajardo, V.A.; Drekic, S. Waiting Time Distributions in the Preemptive Accumulating Priority Queue. Methodol. Comput. Appl. Probab. 2017, 19, 255–284. [Google Scholar] [CrossRef]
  6. Mojalal, M.; Stanford, D.A.; Caron, R.J. The lower-class waiting time distribution in the delayed accumulating priority queue. INFOR Inf. Syst. Oper. Res. 2020, 58, 60–86. [Google Scholar] [CrossRef] [Green Version]
  7. Sharma, K.C.; Sharma, G.C. A delay dependent queue without preemption with general linearly increasing priority function. J. Oper. Res. Soc. 1994, 45, 948–953. [Google Scholar] [CrossRef]
  8. Stanford, D.A.; Taylor, P.; Ziedins, I. Waiting time distributions in the accumulating priority queue. Queueing Syst. 2014, 77, 297–330. [Google Scholar] [CrossRef] [Green Version]
  9. Xie, O.; He, Q.-M.; Zhao, X. Stability of a priority queueing system with customer transfers. Oper. Res. Lett. 2008, 36, 705–709. [Google Scholar] [CrossRef]
  10. Xie, J.; Zhu, T.; Chao, A.K.; Wang, S. Performance analysis of service systems with priority upgrades. Ann. Oper. Res. 2017, 253, 683–705. [Google Scholar] [CrossRef]
  11. Cildoz, M.; Ibarra, A.; Mallor, F. Accumulating priority queues versus pure priority queues for managing patients in emergency departments. Oper. Res. Health Care 2019, 23, 100224. [Google Scholar] [CrossRef]
  12. Lee, S.K.; Dudin, S.; Dudina, O.; Kim, C.S.; Klimenok, V. A Priority Queue with Many Customer Types, Correlated Arrivals and Changing Priorities. Mathematics 2020, 8, 1292. [Google Scholar] [CrossRef]
  13. Khalid, A.; Dudin, A.; Mushko, V. Novel queueing model for multimedia over downlink in 3.5 G wireless network. J. Commun. Softw. Syst. 2006, 2, 68–80. [Google Scholar]
  14. Dudin, A.; Dudin, S. Analysis of a Priority Queue with Phase-Type Service and Failures. Int. J. Stoch. Anal. 2016, 2016, 9152701. [Google Scholar] [CrossRef] [Green Version]
  15. Dudin, S.; Dudina, O. Retrial multi-server queuing system with PHF service time distribution as a model of a channel with unreliable transmission of information. Appl. Math. Model. 2019, 65, 676–695. [Google Scholar] [CrossRef]
  16. Graham, A. Kronecker Products and Matrix Calculus with Applications; Horwood, E., Ed.; Courier Dover Publications: Cichester, UK, 1981. [Google Scholar]
  17. Klimenok, V.I.; Dudin, A.N. Multi-dimensional asymptotically quasi-Toeplitz Markov chains and their application in queueing theory. Queueing Syst. 2006, 54, 245–259. [Google Scholar] [CrossRef]
Figure 1. Structure of the system.
Figure 1. Structure of the system.
Mathematics 09 01257 g001
Figure 2. Dependence of N b u f f e r on N and λ .
Figure 2. Dependence of N b u f f e r on N and λ .
Mathematics 09 01257 g002
Figure 3. Dependence of N b u f f e r ( 1 ) on N and λ .
Figure 3. Dependence of N b u f f e r ( 1 ) on N and λ .
Mathematics 09 01257 g003
Figure 4. Dependence of N b u f f e r ( 2 ) on N and λ .
Figure 4. Dependence of N b u f f e r ( 2 ) on N and λ .
Mathematics 09 01257 g004
Figure 5. Dependence of N b u f f e r ( 3 ) on N and λ .
Figure 5. Dependence of N b u f f e r ( 3 ) on N and λ .
Mathematics 09 01257 g005
Figure 6. Dependence of the probability P e n t l o s s on N and λ .
Figure 6. Dependence of the probability P e n t l o s s on N and λ .
Mathematics 09 01257 g006
Figure 7. Dependence of the probability P f a i l l o s s on N and λ .
Figure 7. Dependence of the probability P f a i l l o s s on N and λ .
Mathematics 09 01257 g007
Figure 8. Dependence of the probability P i m p l o s s on N and λ .
Figure 8. Dependence of the probability P i m p l o s s on N and λ .
Mathematics 09 01257 g008
Figure 9. Dependence of the probability P l o s s on N and λ .
Figure 9. Dependence of the probability P l o s s on N and λ .
Mathematics 09 01257 g009
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Dudin, A.; Dudina, O.; Dudin, S.; Samouylov, K. Analysis of Single-Server Multi-Class Queue with Unreliable Service, Batch Correlated Arrivals, Customers Impatience, and Dynamical Change of Priorities. Mathematics 2021, 9, 1257. https://doi.org/10.3390/math9111257

AMA Style

Dudin A, Dudina O, Dudin S, Samouylov K. Analysis of Single-Server Multi-Class Queue with Unreliable Service, Batch Correlated Arrivals, Customers Impatience, and Dynamical Change of Priorities. Mathematics. 2021; 9(11):1257. https://doi.org/10.3390/math9111257

Chicago/Turabian Style

Dudin, Alexander, Olga Dudina, Sergei Dudin, and Konstantin Samouylov. 2021. "Analysis of Single-Server Multi-Class Queue with Unreliable Service, Batch Correlated Arrivals, Customers Impatience, and Dynamical Change of Priorities" Mathematics 9, no. 11: 1257. https://doi.org/10.3390/math9111257

APA Style

Dudin, A., Dudina, O., Dudin, S., & Samouylov, K. (2021). Analysis of Single-Server Multi-Class Queue with Unreliable Service, Batch Correlated Arrivals, Customers Impatience, and Dynamical Change of Priorities. Mathematics, 9(11), 1257. https://doi.org/10.3390/math9111257

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop