Next Article in Journal
Noncommutative Multi-Parameter Subsequential Wiener–Wintner-Type Ergodic Theorem
Previous Article in Journal
Coexistence of Algebraic Limit Cycles and Small Limit Cycles of Two Classes of Near-Hamiltonian Systems with a Nilpotent Singular Point
Previous Article in Special Issue
Review on Some Boundary Value Problems Defining the Mean First-Passage Time in Cell Migration
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimal Service Time Distribution for an M/G/1 Waiting Queue

Department of Mathematics and Industrial Engineering, Polytechnique Montréal, C.P. 6079, Succursale Centre-ville, Montréal, QC H3C 3A7, Canada
*
Author to whom correspondence should be addressed.
Axioms 2024, 13(9), 594; https://doi.org/10.3390/axioms13090594
Submission received: 13 June 2024 / Revised: 21 August 2024 / Accepted: 30 August 2024 / Published: 31 August 2024
(This article belongs to the Special Issue Applied Mathematics and Mathematical Modeling)

Abstract

:
Suppose that in an M / G / 1 waiting queue, the server can choose between two service time distributions. We look for the choice that enables us to minimize the expected value of a cost criterion that takes into account the cost incurred by working faster and the time needed to empty the waiting line. The random final time is the first time there is no customer waiting for service. When the service times are exponential random variables, we can appeal to dynamic programming to obtain the optimal solution. In the general case, conditional probability is used. Particular problems in which the capacity of the system is finite are solved explicitly.

1. Introduction

Queuing theory plays an important role in decision making by providing insight into the operation and efficiency of queuing systems. It deals with the mathematical modeling of customer arrivals and the corresponding service times in queuing systems. A key aspect of queuing theory is decision optimization, which focuses on examining the underlying parameters and constraints of a model and helps decision makers optimize performance measures. Various queue configurations can be analyzed, such as the speed of service and number of servers, to assess the most cost-effective and efficient strategy.
Another aspect of queuing theory in the context of decision making is sensitivity analysis. It allows decision-makers to analyze various scenarios by modeling several queue configurations and to identify the impact of variations in system parameters, particularly the cost of changes in customer service models. In addition, it allows decision makers to realize the possible consequences of different system parameters and to take informed action by understanding system dynamics (see [1]).
Queues are used in a variety contexts, such as mobile data in the wireless mobile systems discussed by Li et al. [2] and patient flow in the clinics studied by Aziati and Hamdan [3], etc.
Reducing customer congestion in any service system is a common problem, and it is the main challenge in queue management. Its importance is highlighted in a variety of ways in numerous research studies, such as, for example, the loss of productivity that occurs due to time lost in traffic (De and Rajbongshi [4]), health impacts (Requia et al. [5]), etc.
To solve the problem of reducing customer congestion in queues, increasing the number of servers assigned to a system is an immediate solution, but adding each server incurs service costs. This challenge has been taken up by many researchers in order to determine the optimal number of servers while considering the cost function as an objective, as explained by Lefebvre and Yaghoubi [6]. Consequently, a compromise must be found between customer congestion and the total cost of a faster service, either through the speed of service or the number of servers. Therefore, characterizing the optimal-service rate in a system is a fundamental factor in practice for how operations should be conducted.
Many papers have investigated variations in the service rate to reduce queues. In the age of artificial intelligence, a wide range of optimization techniques based on computational methods have been introduced, as shown by Laxmi and Jyothsna [7]. The aforementioned authors examined a discrete-time queue using particle swarm optimization to optimize service rates in order to minimize costs, and their paper explored its application in inbound email contact centers.
New mathematical programming models are recent directions of the research in this area, such as Tian et al. [8]. These authors studied a single-server queuing system with varying service rates to analyze how customer decisions affect the equilibrium performance of a queue using continuous-time Markov chains for modeling and analysis. Singh et al. [9] investigated a method for detecting change points in the service rate of an M / M / 1 / m queue by analyzing the changes in the probability distribution of a stochastic process using a likelihood function based on the number of customers observed at departures and via employing Bayesian estimators.
Laxmi et al. [10] proposed an M / M / 2 queuing system with an alternative second service using a system stabilization and performance evaluation method. Wu et al. [11] examined a queuing system that could be used to control customer arrivals, as well as a G I / M / 1 queue with variable service speeds. They performed a steady-state analysis for system optimization, with the objective of reducing costs and waiting times. The results show a diminishing return on additional investment in efficient systems, and regression models are proposed for decision making. Chen et al. [12] studied service rate control using event-based optimization to obtain optimal control policies. They proposed an algorithm for determining service rates and compared its effectiveness with state-based optimization.
Dudin et al. [13] analyzed a queuing system with two different types of requests: Type 1, i.e., with a constant service rate; and Type 2, i.e., with flexible rates. They explored the behavior of the system through a Markov chain, focusing on performance measures and the optimal service assigned for the two types of requests. Lakkumikanthan and Balasubramanian [14] developed an optimal service rate decision for a discrete-time queuing system with a finite buffer employing Markov decision theory and linear programming. The aim was to optimize costs by regulating service rates based on customer arrival and inventory reloading. Su and Li [15] focused on a single-server queue in communication networks with varying service rates and various types of customers. Their paper compared control levels based on various parameters and chose an optimal policy when multiple optimal policies were available. Büke and Qin [16] studied multi-server queuing systems with varying rates of service using stochastic processes to analyze performance. They used martingales to characterize these processes under different policies.
For an overview of other studies in this area, the reader is referred to Dai et al. [17], Chen and Xia [18], and Rodrigues et al. [19].
In this paper, we suppose that the random service time is either S 1 or S 2 . Moreover, in Section 2, the server can switch between S 1 and S 2 at any time instant.

2. Problem Description

We denote respectively by X ( t ) and X q ( t ) the total number of customers in the system and the number of customers who are waiting in line at time t. We suppose that at the initial time t 0 , X ( t 0 ) = X q ( t 0 ) { 2 , 3 , , c p } , where c p is the capacity of the system, which can be infinite. The server therefore starts his/her service at time t 0 , which could be, for example, the opening time of a shop.
We define the first-passage time  T ( k ) [ = T ( k , t 0 , t 1 ) ] as follows:
T ( k ) = inf { t > t 0 : X q ( t ) = 0 or t = t 1 ( > t 0 ) X ( t 0 ) = k } .
Our aim is to determine whether the server should choose the service time S 1 or S 2 at time t to minimize the expected value of the criterion function:
J ( k ) : = t 0 T ( k ) q 0 ( E [ S ( t ) ] ) 2 + λ d t + K [ T ( k ) ] ,
where S ( t ) = S 1 or S 2 , q 0 and λ are positive constants, and K ( · ) is the terminal cost function. If E [ S 1 ] > E [ S 2 ] , then the instantaneous (or running) cost q 0 / ( E [ S ( t ) ] ) 2 will be smaller. However, it will take longer to reduce the number of waiting customers to zero, thus incurring a larger penalty (since λ > 0 ). The optimizer must also take into account the terminal cost K [ T ( k ) ] .
Remark 1.
The term ( E [ S ( t ) ] ) 2 in the cost function J ( k ) corresponds to u 2 ( t ) in LQ or LQG optimal control problems. Moreover, when S ( t ) does not depend on t and E [ T ( k ) ] = E [ S ] , as will be the case in Section 4, if we use q 0 / E [ S ] in the cost function, then E [ S ] cancels out, so that the expected service time is not taken into account.
The optimal control problem considered is a particular homing problem (see Whittle [20]). In these problems, the optimizer tries to find the control of a stochastic process that minimizes the expected value of a given cost function between an initial time and the time when a certain event occurs. Whittle [20] treated the case when the stochastic process is an n-dimensional diffusion process. Rishel [21] set up such problems for n-dimensional diffusion processes that can be used to model the wear of devices. Lefebvre has written numerous papers on homing problems. In a recent one ([22]), he extended homing problems to the case of autoregressive processes (see also Lefebvre and Pazhoheshfar [23] for an optimal maintenance problem).
Homing problems for modified M / G / k queuing systems were treated by Lefebvre in [24,25], and by Lefebvre and Yaghoubi [6]. In these papers, the control variable was the number of servers working at time t.
Remark 2.
There are numerous applications of queuing theory. In many situations, time T ( k ) is indeed a random variable. For example, suppose that the “customers” in the systems are orders received by a company. The time required to fill the orders is generally not fixed. Moreover, the constant t 1 could be the deadline by which orders are fulfilled, where otherwise a penalty is imposed on the company.
In Section 3, we will present an aeronautical application. In this case, the customers are aircraft that have been brought to a workshop for maintenance. The aim, of course, is to get the aircraft back into service as quickly as possible. Once again, the time required to carry out maintenance is random since problems may be detected during the basic inspection.
Next, we define the value function
F ( k , t 0 ) = inf S ( t ) t [ t 0 , T ( k ) ) , E [ J ( k ) ] .
That is, F ( k , t 0 ) is the expected cost incurred if the optimizer chooses the optimal control between the initial time t 0 and the random final time T ( k ) . Moreover, we assume that
K [ T ( k ) ] = 0 if T ( k ) [ t 0 , t 1 ) , F 1 if T ( k ) = t 1 ,
where F 1 > 0 . It then follows that the value function satisfies the boundary conditions
F ( k , t 0 ) = 0 if k = 1 , F 1 if ( k > 1 and ) t 0 = t 1 .
Remark 3.
The aim is to empty the queue at the latest by time t 1 , which is a fixed constant. If we had not succeeded in doing so by time t 1 , we stop the optimization problem and a cost F 1 is incurred.
In Section 3, we will use the fact that, when S i Exp ( μ i ) , that is, when S i has an exponential distribution with parameter μ i for i = 1 , 2 , it is possible to make use of dynamic programming to determine the optimal control. In the general case, assuming that the optimizer chooses either S 1 or S 2 for all t in [ t 0 , T ( k ) ) , we will use conditional probability to find the optimal solution. This will be conducted in Section 4. Finally, we will conclude with a few remarks in Section 5.

3. Optimal Control of the Modified M / M / 1 Queue

When S i Exp ( μ i ) , we have a modified M / M / 1 queuing model, in which the service time distribution is not fixed. We can then write the cost function J ( k ) as follows:
J ( k ) = t 0 T ( k ) q 0 μ 2 ( t ) + λ d t + K [ T ( k ) ] ,
where μ ( t ) = μ 1 or μ 2 .
Let A be the time needed for a new customer to arrive after time t 0 . We have A Exp ( λ ) , so that
P [ A Δ t ] = 1 e λ Δ t = λ Δ t + o ( Δ t ) ,
and, similarly,
P [ S i Δ t ] = μ i Δ t + o ( Δ t ) .
Furthermore, the probability of two or more events (arrivals or departures) in an interval of length Δ t is equal to o ( Δ t ) .
Since, by independence, min { A , S i } Exp ( λ + μ i ) , the random number X ( t 0 + Δ t ) of customers in the system at time t 0 + Δ t will be
k + 1 with probability λ Δ t + o ( Δ t ) , k 1 with probability μ i Δ t + o ( Δ t ) , k with probability 1 ( λ + μ i ) Δ t + o ( Δ t ) .
Next, with the help of Bellman’s principle of optimality, we may write that
F ( k , t 0 ) = inf μ ( t ) t [ t 0 , T ( k ) ) E t 0 t 0 + Δ t q 0 μ 2 ( t ) + λ d t + t 0 + Δ t T ( k ) q 0 μ 2 ( t ) + λ d t = inf μ ( t ) t [ t 0 , t 0 + Δ t ] [ q 0 μ 2 ( t 0 ) + λ ] Δ t + E [ F ( X ( t 0 + Δ t ) , t 0 + Δ t ) ] + o ( Δ t ) = inf μ ( t ) t [ t 0 , t 0 + Δ t ] { [ q 0 μ 2 ( t 0 ) + λ ] Δ t + F ( k + 1 , t 0 + Δ t ) λ Δ t + F ( k 1 , t 0 + Δ t ) μ ( t 0 ) Δ t + F ( k , t 0 + Δ t ) 1 [ λ + μ ( t 0 ) ] Δ t } + o ( Δ t ) .
We then obtain, through writing μ 0 : = μ ( t 0 ) ,
F ( k , t 0 ) F ( k , t 0 + Δ t ) = inf μ 0 { q 0 μ 0 2 + λ Δ t + F ( k + 1 , t 0 + Δ t ) λ Δ t + F ( k 1 , t 0 + Δ t ) μ 0 Δ t F ( k , t 0 + Δ t ) ( λ + μ 0 ) Δ t } + o ( Δ t ) .
Furthermore, using Taylor’s formula, we can write that
F ( · , t 0 + Δ t ) = F ( · , t 0 ) + Δ t F ( · , t 0 ) + o ( Δ t ) .
It then follows that
F ( k + 1 , t 0 + Δ t ) λ Δ t = F ( k + 1 , t 0 ) λ Δ t + o ( Δ t ) .
Hence, through also applying Taylor’s formula to the terms F ( k 1 , t 0 + Δ t ) μ 0 Δ t and F ( k , t 0 + Δ t ) ( λ + μ 0 ) Δ t , we obtain that
F ( k , t 0 ) F ( k , t 0 + Δ t ) = inf μ 0 { q 0 μ 0 2 + λ Δ t + F ( k + 1 , t 0 ) λ Δ t + F ( k 1 , t 0 ) μ 0 Δ t F ( k , t 0 ) ( λ + μ 0 ) Δ t } + o ( Δ t ) .
Finally, via dividing both sides of the previous equation by Δ t and letting Δ t decrease to zero, we obtain the following proposition:
Proposition 1.
If S i Exp ( μ i ) , for i = 1 , 2 , the value function F ( k , t 0 ) satisfies the following dynamic programming equation (DPE):
t 0 F ( k , t 0 ) = inf μ 0 q 0 μ 0 2 + λ + F ( k + 1 , t 0 ) λ + F ( k 1 , t 0 ) μ 0 F ( k , t 0 ) ( λ + μ 0 ) .
Moreover, we have the boundary conditions in Equation (5).
Remark 4.
Equation (15) is valid for any k { 2 , 3 , } if the capacity of the system is infinite. In the case when c p < , Equation (9) for k = c p reduces to
k 1 with probability μ i Δ t + o ( Δ t ) , k with probability 1 μ i Δ t + o ( Δ t ) .
It follows that the dynamic programming equation becomes
t 0 F ( k , t 0 ) = inf μ 0 q 0 μ 0 2 + λ + F ( k 1 , t 0 ) μ 0 F ( k , t 0 ) μ 0
for k = c p . We could also assume, for instance, that if a customer arrives while the system is already full, then we stop the control problem and we set F ( c p + 1 , t 0 ) = F 2 0 . We would then have
t 0 F ( k , t 0 ) = inf μ 0 q 0 μ 0 2 + λ + F 2 λ + F ( k 1 , t 0 ) μ 0 F ( k , t 0 ) ( λ + μ 0 )
for k = c p . In this paper, we assume that Equation (17) is the one that is valid if k = c p .
Next, since μ 0 = μ 1 or μ 2 , Equation (15) can be rewritten as follows:
t 0 F ( k , t 0 ) = min μ 0 { μ 1 , μ 2 } q 0 μ 0 2 + λ + F ( k + 1 , t 0 ) λ + F ( k 1 , t 0 ) μ 0 F ( k , t 0 ) ( λ + μ 0 ) .
To determine the value of F ( k , t 0 ) , we can first consider the differential equation deduced from Equation (19) if the optimizer chooses μ 0 = μ i for any value of k and any t 0 , namely
F i ( k , t 0 ) = q 0 μ i 2 + λ + F i ( k + 1 , t 0 ) λ + F i ( k 1 , t 0 ) μ i F i ( k , t 0 ) ( λ + μ i ) ,
which is subject to the conditions in Equation (5). To obtain F i ( k , t 0 ) , we must, in general, solve a system of first-order linear differential equations.
Once the functions F i ( k , t 0 ) have been computed for i = 1 , 2 and for any k, we define it as follows:
G i ( k , t 0 ) = q 0 μ i 2 + λ + min { F 1 ( k + 1 , t 0 ) , F 2 ( k + 1 , t 0 ) } λ + min { F 1 ( k 1 , t 0 ) , F 2 ( k 1 , t 0 ) } μ i min { F 1 ( k , t 0 ) , F 2 ( k , t 0 ) } ( λ + μ i )
for i = 1 , 2 . The function G i ( k , t 0 ) is the right-hand side of Equation (15) if μ 0 = μ i . We can determine the optimal control by comparing the two functions for any t 0 < t 1 .
Finally, to obtain the value function F ( k , t 0 ) , we can solve the equation
F ( k , t 0 ) = G i ( k , t 0 )
in any interval where the optimal control is μ 0 = μ i , and we can make use of the boundary condition F ( k , t 1 ) = F 1 , as well as the continuity of the function F ( k , t 0 ) .
Remark 5.
It is important to note that dynamic programming only works for the M / M / 1 model (apart from a few special cases considered in other recent papers by the first author). Indeed, the results given in Equations (7) and (8) do not hold for general distributions. If P [ A Δ t ] or P [ S i Δ t ] is not proportional to Δ t , there will be a problem when we divide both sides of Equation (14) by Δ t and we let Δ t decrease to zero. Assuming that A and S i are exponentially distributed is a simplifying assumption. Nevertheless, we believe that the M / M / 1 model can serve as an approximate model in various applications.
We will now give an example that can be solved explicitly.

An Example

The simplest problem that can be considered is the one when k = c p = 2 . We then have the following equation (see Equation (17)):
F i ( 2 , t 0 ) = q 0 μ i 2 + λ F i ( 2 , t 0 ) μ i .
The solution that satisfies the boundary condition F i ( 2 , t 1 ) = F 1 is
F i ( 2 , t 0 ) = q 0 μ i 2 + λ μ i 1 e μ i ( t 1 t 0 ) + F 1 e μ i ( t 1 t 0 ) .
Let us take λ = 1 , μ 1 = 2 , μ 2 = 3 , q 0 = 1 , F 1 = 20 and t 1 = 10 . We then have
F 1 ( 2 , t 0 ) = 5 2 + 35 2 e 2 ( 10 t 0 )
and
F 2 ( 2 , t 0 ) = 10 3 + 50 3 e 3 ( 10 t 0 )
for t 0 10 . We can now compute the functions G 1 ( 2 , t 0 ) and G 2 ( 2 , t 0 ) . These functions are displayed in Figure 1 and Figure 2. The curves cross when t 0 = s : = 10 1 3 ln ( 10 ) . It follows that we then can write that the optimal control is
μ 0 = 2 if 0 t 0 s , 3 if s t 0 < 10 .
Finally, proceeding as explained above, we can calculate the value function F ( 2 , t 0 ) , as shown in Figure 3.
In the next section, we will consider the case when the service time distributions are not necessarily exponential.

4. Optimal Control of the Modified M / G / 1 Queue

Suppose that the optimizer must choose either the random service time S 1 or S 2 from the initial time t 0 to the final time T ( k ) and that the function K ( · ) is identical to zero, so that the expected value of the cost function J ( k ) defined in Equation (2) becomes (setting t 0 equal to zero)
E [ J ( k ) ] = E 0 T ( k ) q 0 ( E [ S ] ) 2 + λ d t = q 0 ( E [ S ] ) 2 + λ E [ T ( k ) ] ,
where S = S 1 or S 2 . We will consider various particular cases below.
Case 1. Assume that k = c p = 2 . Since it is full, no new customers can enter the system between t 0 and T ( 2 ) . Moreover, we can write that T ( 2 ) is simply equal to S. Thus, it follows that
E [ J ( 2 ) ] = q 0 ( E [ S ] ) 2 + λ E [ S ] .
In the special case when S i Exp ( μ i ) , for i = 1 , 2 , the above equation becomes
E [ J ( 2 ) ] = q 0 μ 2 + λ 1 μ ,
so that
F ( 2 , t 0 ) = min μ { μ 1 , μ 2 } q 0 μ 2 + λ μ .
Suppose that μ 1 = 1 , μ 2 = 2 and λ = 1 . Then, we find that the optimal solution is μ = μ 1 if and only if q 0 1 / 2 .
Remark 6.
If we take the limit as t 1 tends to infinity in Equation (24), we obtain
F i ( 2 , t 0 ) = q 0 μ i 2 + λ μ i ,
which agrees with Equation (31) above.
Case 2. Let k = 2 and c p = 3 . We can write that
T ( 2 ) = S I if S I A , S I + T ( 2 ) if A < S I ,
where S I is the time needed to serve the first customer, and A Exp ( λ ) is the time between successive customers, which is assumed to be independent of the service times. It then follows that
E [ T ( 2 ) ] = E [ S I ] 1 P [ A < S I ] .
If S I Exp ( μ ) , we have
1 P [ A < S I ] = P [ S I A ] = μ μ + λ .
Thus,
E [ T ( 2 ) ] = μ + λ μ 2 .
To obtain the optimal solution, we must compare the value of E [ J ( 2 ) ] deduced from Equation (28) and the above formula when μ = μ 1 with the corresponding one when μ = μ 2 .
Remark 7.
Let Y 1 , Y 2 , be independent random variables that have an Exp ( μ ) distribution, and let N be a geometric random variable with parameter
p : = P [ Y 1 < A ] = μ μ + λ .
We can then write that
E [ T ( 2 ) ] = E i = 1 N Y i = E [ N ] E [ Y i ] = μ + λ μ 1 μ = μ + λ μ 2 .
Hence, we retrieve the formula in Equation (36).
For the next cases, we will denote T ( k ) by T ( k , c p ) .
Case 3. When k = 3 and c p = 3 , no new customers can enter the system during the service time of the first customer. Hence, we can write that
T ( 3 , 3 ) = S I + T ( 2 , 3 ) E [ T ( 3 , 3 ) ] = 1 μ + E [ S I ] 1 P [ A < S I ] .
When S I Exp ( μ ) , we obtain that
E [ T ( 3 , 3 ) ] = 1 μ + μ + λ μ 2 .
Remark 8.
In Section 2, to obtain the function F 1 ( 3 , t 0 ) , when c p = 3 , we must solve the system of first-order linear differential equations
F 1 ( 3 , t 0 ) = q 0 μ 1 2 + λ + F 1 ( 2 , t 0 ) μ 1 F 1 ( 3 , t 0 ) μ 1 ,
F 1 ( 2 , t 0 ) = q 0 μ 1 2 + λ + F 1 ( 3 , t 0 ) λ F 1 ( 2 , t 0 ) ( λ + μ 1 ) .
The solution to this system that satisfies the conditions in Equation (5) is easy to obtain. If we set λ = 1 and μ 1 = 3 , we find that the limit as t 1 tends to infinity of the solution is given by
F 1 ( 2 , t 0 ) = 4 9 ( 9 q 0 + 1 ) and F 1 ( 3 , t 0 ) = 7 9 ( 9 q 0 + 1 ) .
Notice that 4 / 9 = E [ T ( 2 , 3 ) ] and 7 / 9 = E [ T ( 3 , 3 ) ] (see, respectively, Equations (36) and (40)).
Case 4. Finally, suppose that c p = 4 and k = 2 or k = 3 . We then define the event B i as follows: there are exactly i customers that arrive during the service time S I of the first customer, for i = 0 , 1 , 2 , and we denote by A I (respectively, A I I ) the time needed for the first (and, respectively, second) new customer to arrive during the service time S I . We can thus write that
T ( 3 , 4 ) = S I + T ( 2 , 4 ) if B 0 occurs , S I + T ( 3 , 4 ) if B 1 occurs .
Similarly,
T ( 2 , 4 ) = S I if B 0 occurs , S I + T ( 2 , 4 ) if B 1 occurs , S I + T ( 3 , 4 ) if B 2 occurs .
Hence, we have
E [ T ( 3 , 4 ) ] = E [ S I ] + E [ T ( 2 , 4 ) ] P [ S I A I ] + E [ T ( 3 , 4 ) ] P [ S I > A I ]
and
E [ T ( 2 , 4 ) ] = E [ S I ] + E [ T ( 2 , 4 ) ] P [ A I < S I , A I + A I I S I ] + E [ T ( 3 , 4 ) ] P [ A I + A I I < S I ] .
To obtain E [ T ( 2 , 4 ) ] and E [ T ( 3 , 4 ) ] , we can solve the above system of two linear equations. The various probabilities that appear in the system can at least be evaluated numerically in any particular case.

4.1. Particular Problem

We consider a particular problem in Case 4. Suppose that S 1 Exp ( 1 ) and S 2 G ( 2 , 2 ) , that is, S 2 has a gamma distribution with both parameters equal to 2, so that
f S 2 ( t ) = 4 t e 2 t for t 0 .
Notice that E [ S 1 ] = E [ S 2 ] = 1 . It then follows that the optimal control will depend only on the value of E [ T ( k , 4 ) ] for k = 3 and k = 4 .
Let
p 1 i : = P [ S I i A I ] ,
p 2 i : = P [ A I + A I I < S I i ]
and
p 3 i : = P [ A I < S I i , A I + A I I S I i ] ,
where S I i is the random variable S I if S = S i for i = 1 , 2 . We then find that
p 11 = 1 λ + 1 , p 12 = 4 ( λ + 2 ) 2 ,
p 21 = λ 2 ( λ + 1 ) 2 , p 22 = λ 2 ( λ + 6 ) ( λ + 2 ) 3 ,
p 31 = λ ( λ + 1 ) 2 , p 32 = 8 λ ( λ + 2 ) 3 .
Notice that j = 1 3 p j i = 1 for i = 1 , 2 , as required.
Let E [ T i ( k , 4 ) ] be the value of E [ T ( k , 4 ) ] if S = S i , for i = 1 , 2 . To obtain E [ T i ( 2 , 4 ) ] and E [ T i ( 3 , 4 ) ] , we must solve the following system of linear equations:
E [ T i ( 2 , 4 ) ] = 1 + E [ T i ( 2 , 4 ) ] p 3 i + E [ T i ( 3 , 4 ) ] p 2 i , E [ T i ( 3 , 4 ) ] = 1 + E [ T i ( 2 , 4 ) ] p 1 i + E [ T ( 3 , 4 ) ] ( 1 p 1 i ) .
We find that
E [ T 1 ( 2 , 4 ) ] = λ 2 + λ + 1 , E [ T 2 ( 2 , 4 ) ] = 1 16 λ 4 + 1 2 λ 3 + λ 2 + λ + 1 ,
E [ T 1 ( 3 , 4 ) ] = λ 2 + 2 λ + 2 , E [ T 2 ( 3 , 4 ) ] = 1 16 λ 4 + 1 2 λ 3 + 5 4 λ 2 + 2 λ + 2 .
These functions are displayed in Figure 4 and Figure 5, respectively.
We can see that E [ T 1 ( 2 , 4 ) ] and E [ T 2 ( 2 , 4 ) ] are almost equal when λ is very small. However, as λ increases, E [ T 1 ( 2 , 4 ) ] is much smaller than E [ T 2 ( 2 , 4 ) ] . In actuality, we can show that E [ T 1 ( 2 , 4 ) ] < E [ T 2 ( 2 , 4 ) ] for any λ > 0 . Hence, the optimal solution is always to choose S = S 1 . The same conclusions apply to E [ T 1 ( 3 , 4 ) ] and E [ T 2 ( 3 , 4 ) ] .

4.2. A Practical Application

We consider the problem of selecting an optimal-control policy for aircraft maintenance. In practice, maintenance programs must be optimized to minimize downtime and guarantee the expected level of safety, which are two fundamental elements in the aerospace industry. In our problem formulation, we must balance maintenance costs and the need to return the aircraft to service as soon as possible.
Suppose that S 1 is a Rayleigh random variable, so that
f S 1 ( s ) = s σ 2 exp s 2 2 σ 2 for s 0 ,
where σ is a positive constant and that
f S 2 ( s ) = θ e θ s for s 0 .
That is, S 2 is an exponential random variable with parameter θ . The Rayleigh distribution, with its longer tail, should be more appropriate in the case of complex maintenance activities, while the exponential distribution could be used for customary maintenance activities.
The expected costs E [ J ( 3 , 4 ) ] and E [ J ( 2 , 4 ) ] for performing the maintenance tasks under each of the two different service time assumptions for a variable aircraft arrival rate for service were calculated. These costs include costs related to the speed of task execution (influenced by the service time distribution) and costs related to aircraft downtime (influenced by λ ).
In Figure 6, we present the expected costs E [ J ( 3 , 4 ) ] and E [ J ( 2 , 4 ) ] when σ = 3 , θ = 1 , q 0 = 50 and λ [ 0.1 , 5 ] . Looking at the figure, we can conclude that, for routine inspections and predictable maintenance activities, the use of exponential service time distribution would be more cost effective, especially when arrival rates are high and rapid changes are required.
For more complex activities that vary significantly over time (potentially due to unexpected complexities during the maintenance tasks), a more realistic modeling policy is offered by the Rayleigh distribution, although it may induce a higher cost. Such information would be essential for efficient planning and resource allocation, particularly in ensuring the availability of adequate maintenance personnel and spare parts.
Maintenance centers and airlines may decide to modify the planning of their maintenance decisions according to the historical frequency of maintenance needs (reflected by λ ) and the complexity of tasks (complex or normal). For example, during busy seasons, it may be more cost effective to give priority to minimizing downtime (by choosing the exponential distribution).

5. Conclusions

We treated an optimal control problem for a queueing model with only one server. This queueing model was a modification of the classic M / G / 1 model, in which the server can now choose between two distributions for the service time. The aim was to reduce the waiting queue to zero as soon as possible, while taking the quadratic control costs into account. The final time in the problem is the first time nobody is waiting for service in the system.
In Section 3, we assumed that the service time was exponentially distributed, with parameter μ 1 or μ 2 . We could then make use of dynamic programming to derive the equation satisfied by the value function, which gives the expected cost if the optimizer uses the optimal control from the initial time to the random final time.
Next, in Section 4 we generalized the problem to the case when the service time is any positive random variable. In general, it is then not possible to appeal to dynamic programming. We considered various particular cases when the capacity of the system is finite. We could in theory try to solve any particular problem. However, if the capacity of the system is large, the technique used to find the optimal solution will become rather intricate.
It is of course possible to consider other modifications of the basic M / G / 1 queue. We could also assume that there is more than one server. The aim could be to use some control in order to increase the rate at which customers enter the system. If all the random variables in the model are exponentially distributed, we could try to utilize dynamic programming principles to obtain the optimal solution.

Author Contributions

Conceptualization, M.L.; methodology, M.L. and R.Y.; formal analysis, M.L.; writing—original draft, M.L.; writing—review & editing, R.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the Natural Sciences and Engineering Research Council of Canada.

Data Availability Statement

No new data were created or analyzed in this study.

Acknowledgments

The authors wish to thank the anonymous reviewers of this paper for their constructive comments.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Hosseinzadeh Lotfi, F.; Allahviranloo, T.; Pedrycz, W.; Shahriari, M.; Sharafi, H.; Razipour GhalehJough, S. Foundations of Decision. In Fuzzy Decision Analysis: Multi Attribute Decision Making Approach; Springer International Publishing: Cham, Switzerland, 2023; Volume 1121, pp. 1–56. [Google Scholar] [CrossRef]
  2. Li, X.; Bi, S.; Zheng, Y.; Wang, H. Energy-efficient online data sensing and processing in wireless powered edge computing systems. IEEE Trans. Commun. 2022, 70, 5612–5628. [Google Scholar] [CrossRef]
  3. Aziati, A.H.N.; Hamdan, N.S.B. Application of queuing theory model and simulation to patient flow at the outpatient department. In Proceedings of the International Conference on Industrial Engineering and Operations Management, Bandung, Indonesia, 6–8 March 2018; pp. 3016–3028. [Google Scholar]
  4. De, U.K.; Rajbongshi, G. Statistical application for the analysis of traffic congestion and its impact in a Hill city. Int. J. Stat. Sci. 2020, 20, 19–48. [Google Scholar]
  5. Requia, W.J.; Higgins, C.D.; Adams, M.D.; Mohamed, M.; Koutrakis, P. The health impacts of weekday traffic: A health risk assessment of PM2.5 emissions during congested periods. Environ. Int. 2018, 111, 164–176. [Google Scholar] [CrossRef] [PubMed]
  6. Lefebvre, M.; Yaghoubi, R. Optimal control of a queueing system. 2024; Submitted for publication. [Google Scholar]
  7. Laxmi, P.V.; Jyothsna, K. Optimization of service rate in a discrete-time impatient customer queue using particle swarm optimization. In Distributed Computing and Internet Technology, Proceedings of the International Conference on Distributed Computing and Internet Technology, Bhubaneswar, India, 15–18 January 2016; Springer International Publishing: Cham, Switzerland, 2016; pp. 38–42. [Google Scholar] [CrossRef]
  8. Tian, R.; Su, S.; Zhang, Z.G. Equilibrium and social optimality in queues with service rate and customers’ joining decisions. Qual. Technol. Quant. Manag. 2024, 21, 1–34. [Google Scholar] [CrossRef]
  9. Singh, S.K.; Cruz, G.M.B.; Cruz, F.R.B. Change point estimation of service rate in M/M/1/m queues: A Bayesian approach. Appl. Math. Comput. 2024, 465, 128423. [Google Scholar] [CrossRef]
  10. Laxmi, P.V.; Bhavani, E.G.; Jyothsna, K. Analysis of Markovian queueing system with second optional service operating under the triadic policy. OPSEARCH 2023, 60, 256–275. [Google Scholar] [CrossRef]
  11. Wu, C.-H.; Yang, D.-Y.; Yong, C.-R. Performance evaluation and bi-objective optimization for F-policy queue with alternating service rates. J. Ind. Manag. Optim. 2023, 19, 3819–3839. [Google Scholar] [CrossRef]
  12. Chen, G.; Liu, Z.; Xia, L. Event-based optimization of service rate control in retrial queues. J. Oper. Res. Soc. 2023, 74, 979–991. [Google Scholar] [CrossRef]
  13. Dudin, A.; Dudin, S.; Dudina, O. Analysis of a queueing system with mixed service discipline. Methodol. Comput. Appl. Prob. 2023, 25, 19. [Google Scholar] [CrossRef]
  14. Lakkumikanthan, I.; Balasubramanian, S. Optimal control of service rates of discrete-time (s, S) queueing—Inventory systems with finite buffer. In Proceedings of the 5th International Conference on Problems of Cybernetics and Informatics, Baku, Azerbaijan, 28–30 August 2023; pp. 1–4. [Google Scholar] [CrossRef]
  15. Su, Y.; Li, J. Optimality of admission control in an M/M/1/N queue with varying services. Stoch. Models 2021, 37, 317–334. [Google Scholar] [CrossRef]
  16. Büke, B.; Qin, W. Many-server queues with random service rates in the Halfin-Whitt regime: A measure-valued process approach. arXiv 2019. [Google Scholar] [CrossRef]
  17. Dai, T.; Yu, T.; Zhao, X. Decision strategy of single server online customer service with variable service rates. In Proceedings of the 2019 International Conference on Industrial Engineering and Systems Management, Shangai, China, 25–27 September 2019; pp. 1–6. [Google Scholar] [CrossRef]
  18. Chen, S.; Xia, L. Optimal control of admission prices and service rates in open queueing networks. IFAC-PapersOnLine 2017, 50, 928–933. [Google Scholar] [CrossRef]
  19. Rodrigues, J.; Prado, S.M.; Balakrishnan, N.; Louzada, F. Flexible M/G/1 queueing system with state dependent service rate. Oper. Res. Lett. 2016, 44, 383–389. [Google Scholar] [CrossRef]
  20. Whittle, P. Optimization over Time; Wiley: Chichester, UK, 1982; Volume I. [Google Scholar]
  21. Rishel, R. Controlled wear process: Modeling optimal control. IEEE Trans. Automat. Control 1991, 36, 1100–1102. [Google Scholar] [CrossRef]
  22. Lefebvre, M. The homing problem for autoregressive processes. IMA J. Math. Control Inform. 2022, 39, 322–344. [Google Scholar] [CrossRef]
  23. Lefebvre, M.; Pazhoheshfar, P. An optimal control problem for the maintenance of a machine. Int. J. Syst. Sci. 2022, 53, 3364–3373. [Google Scholar] [CrossRef]
  24. Lefebvre, M. An optimal control problem for a modified M/G/k queueing system. In Proceedings of the Workshop on Intelligent Information Systems, Chişinǎu, Republic of Moldova, 19–21 October 2023; pp. 141–148. [Google Scholar]
  25. Lefebvre, M. Reducing the size of a waiting line optimally. WSEAS Trans. Syst. Control. 2023, 18, 342–345. [Google Scholar] [CrossRef]
Figure 1. This figure illustrates the functions G 1 ( 2 , t 0 ) and G 2 ( 2 , t 0 ) on the interval [ 0 , 10 ] . The solid line represents G 1 and the dotted line represents G 2 . These two functions were calculated on the basis of the parameters λ = 1 , μ 1 = 2 , μ 2 = 3 , q 0 = 1 , F 1 = 20 and t 1 = 10 . The point of intersection of these two curves would be s : = 10 1 / 3 ln ( 10 ) , indicating the switching time from μ 1 to μ 2 for optimal service time control.
Figure 1. This figure illustrates the functions G 1 ( 2 , t 0 ) and G 2 ( 2 , t 0 ) on the interval [ 0 , 10 ] . The solid line represents G 1 and the dotted line represents G 2 . These two functions were calculated on the basis of the parameters λ = 1 , μ 1 = 2 , μ 2 = 3 , q 0 = 1 , F 1 = 20 and t 1 = 10 . The point of intersection of these two curves would be s : = 10 1 / 3 ln ( 10 ) , indicating the switching time from μ 1 to μ 2 for optimal service time control.
Axioms 13 00594 g001
Figure 2. The functions G 1 ( 2 , t 0 ) and G 2 ( 2 , t 0 ) are zoomed in (on the critical interval [ 9.2 , 9.3 ] ). This figure illustrates the exact moment at which the intersection occurred and the control needed to be switched, providing further validation of the optimal change point calculated in Figure 1.
Figure 2. The functions G 1 ( 2 , t 0 ) and G 2 ( 2 , t 0 ) are zoomed in (on the critical interval [ 9.2 , 9.3 ] ). This figure illustrates the exact moment at which the intersection occurred and the control needed to be switched, providing further validation of the optimal change point calculated in Figure 1.
Axioms 13 00594 g002
Figure 3. This figure illustrates the value function F ( 2 , t 0 ) in the interval [ 0 , 10 ] . The parameters used are consistent with Figure 1 and Figure 2 ( λ = 1 , μ 1 = 2 , μ 2 = 3 , q 0 = 1 , F 1 = 20 and t 1 = 10 ). The value function F ( 2 , t 0 ) expresses the minimum cost expected given the optimal-control strategy obtained above.
Figure 3. This figure illustrates the value function F ( 2 , t 0 ) in the interval [ 0 , 10 ] . The parameters used are consistent with Figure 1 and Figure 2 ( λ = 1 , μ 1 = 2 , μ 2 = 3 , q 0 = 1 , F 1 = 20 and t 1 = 10 ). The value function F ( 2 , t 0 ) expresses the minimum cost expected given the optimal-control strategy obtained above.
Axioms 13 00594 g003
Figure 4. This figure shows the two expected time functions E [ T 1 ( 2 , 4 ) ] and E [ T 2 ( 2 , 4 ) ] for λ in the interval [ 0 , 2 ] . The solid line represents E [ T 1 ( 2 , 4 ) ] and the dotted line E [ T 2 ( 2 , 4 ) ] .
Figure 4. This figure shows the two expected time functions E [ T 1 ( 2 , 4 ) ] and E [ T 2 ( 2 , 4 ) ] for λ in the interval [ 0 , 2 ] . The solid line represents E [ T 1 ( 2 , 4 ) ] and the dotted line E [ T 2 ( 2 , 4 ) ] .
Axioms 13 00594 g004
Figure 5. Like Figure 4, this figure shows the two expected time functions E [ T 1 ( 3 , 4 ) ] and E [ T 2 ( 3 , 4 ) ] over the same interval [ 0 , 2 ] for λ . The solid line represents E [ T 1 ( 3 , 4 ) ] and the dotted line represents E [ T 2 ( 3 , 4 ) ] . These results highlight the distinction between queue management strategies in the case of variable service time distributions.
Figure 5. Like Figure 4, this figure shows the two expected time functions E [ T 1 ( 3 , 4 ) ] and E [ T 2 ( 3 , 4 ) ] over the same interval [ 0 , 2 ] for λ . The solid line represents E [ T 1 ( 3 , 4 ) ] and the dotted line represents E [ T 2 ( 3 , 4 ) ] . These results highlight the distinction between queue management strategies in the case of variable service time distributions.
Axioms 13 00594 g005
Figure 6. Expected cost E [ J ( 3 , 4 ) ] (left panel) and E [ J ( 2 , 4 ) ] (right panel) when S 1 has a Rayleigh distribution with parameter σ = 3 (full line) and S 2 has an exponential distribution with parameter θ = 1 (dotted line), q 0 = 50 and λ [ 0.1 , 5 ] .
Figure 6. Expected cost E [ J ( 3 , 4 ) ] (left panel) and E [ J ( 2 , 4 ) ] (right panel) when S 1 has a Rayleigh distribution with parameter σ = 3 (full line) and S 2 has an exponential distribution with parameter θ = 1 (dotted line), q 0 = 50 and λ [ 0.1 , 5 ] .
Axioms 13 00594 g006
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Lefebvre, M.; Yaghoubi, R. Optimal Service Time Distribution for an M/G/1 Waiting Queue. Axioms 2024, 13, 594. https://doi.org/10.3390/axioms13090594

AMA Style

Lefebvre M, Yaghoubi R. Optimal Service Time Distribution for an M/G/1 Waiting Queue. Axioms. 2024; 13(9):594. https://doi.org/10.3390/axioms13090594

Chicago/Turabian Style

Lefebvre, Mario, and Roozbeh Yaghoubi. 2024. "Optimal Service Time Distribution for an M/G/1 Waiting Queue" Axioms 13, no. 9: 594. https://doi.org/10.3390/axioms13090594

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