Abstract

This work examines a new class of working vacation queueing models that contain regular (original) and retrial waiting queues. Upon arrival, a customer either starts their service instantly if the server is available, or they join the regular queue if the server is occupied. When it is empty, the server departs the system to take a working vacation (WV). The server provides services more slowly during the WV period. New customers join the retry queue (orbit), if the server is on vacation. The supplementary variable technique (SVT) examines the steady-state probability generating functions (PGFs) of queue size for different server states. Several system performances are numerically displayed, including system state probabilities, mean busy cycles, mean queue lengths, sensitivity analysis, and cost optimization values. The motivation for this model in a pandemic situation is to analyze new healthcare service systems and reflect the characteristics of patient services.

1. Introduction

The importance of managing queues is apparent in the real world. All network communications, healthcare systems, and industries use these queues. Several researchers have investigated the idea of repeated tries (retrial queues), which means that a new customer must leave the service area and repeat his request after a specified period, called retrial time if the server is busy when he arrives. In between trials, a blocked customer in a retrial group has been considered as being in orbit. Artalejo [1] and Falin [2] provide a complete survey.

Many of the authors have investigated concepts in recent years for an emergency service mechanism that would charge different rates during a period of vacation or breakdown. During the absence (vacation) time, the primary server provides service at various rates, known as working vacations or working breakdowns. These services are primarily helpful in communication networks and healthcare systems. Chandrasekaran et al. [3] surveyed working vacation queueing models briefly.

In real life, there are two types of queues: normal and retry. Such queues can be found in computer networks, networks of communication, medical care systems, and many other systems. Most works are covered in queueing theory, which states that there is only one waiting queue, i.e., when a server is busy, customers will either wait in orbit (the retrial queue) or in front of the server. This type of service may often affect the hospital system. Some emergency cases arise in person; when doctors are unavailable, it is a risk. Motivated by this factor, this research developed a model of both queues (original and orbit) into a single server model that incorporates the idea of working vacations (M[1],[2]/G/1/WVThis model is necessary for the hospital system because patients can receive treatments in person or online.

1.1. Literature Review

Retrial queues in queueing theory have shown to be an interesting area of study, as indicated by the surveys [1, 2]. See Artalejo and Corral [4] and Atencia et al. [5] for additional details regarding the retrial queues.

To get more information on vacation queueing approaches, researchers may study the works of Doshi [6] and Tian and Zhang [7]. The concept of two categories of customers in the vacation model and balking has been investigated by Baruah et al. [8]. The M/G/1 queue with a single working vacation and general service times has been researched by Zhang and Hou [9]. Afterward, vacation interruption was included in a Bernoulli schedule that Gao and Liu [10] considered.

An approach to a retrial queueing system with a single working vacation was suggested by Arivudainambi et al. [11]. In connection to working vacations and vacation interruptions, a retrial queue with general retrial times was created by Gao et al. [12]. Kalidass and Ramanath [13] are identified with introducing the idea of M/M/1 queueing models with working breakdowns. An M/G/1 queueing system with catastrophes and working breakdown services has been discussed by Kim and Lee [14]. Furthermore, a preemptive priority queueing model has been developed by Ammar and Rajadurai [15].

Recently, reservice or feedback service or different types of queues in service is highly required for service quality. In 2009, Krishnakumar et al. [16] considered a multiserver feedback retrial queue with a finite buffer queue. Here the model was framed by the demand for reservice for served customers. Charan et al. [17] have studied an optional reservice retrial queueing model in Bernoulli vacation queues. A model in a multiserver retrial queueing system with the presence of discouraged customers, failures, and vacations was recently investigated by Saravanan et al. [18]. Rismawati et al. [19] developed a priority queueing model with multiple vacations and vacation interruptions.

In 2020, Gao and Zhang [20] studied a queueing system with two types of waiting queues with vacation and general retrial times. In this model, both the normal waiting queue and the retried orbit queue are considered. Recently, Vaezi et al. [21] investigated a real-world case study of prioritizing and queueing emergency department patients utilizing a novel data-driven decision-making technique.

1.2. Methodology and Advantages
1.2.1. Model

Motivated by the work of [20], this investigation proposes a new form of queueing system with two waiting queues (original queue and orbit queue) due to server working vacations (M[1],[2]/G/1/WV). The main aim of this model is to investigate new healthcare service systems in the case of a pandemic and to represent different aspects of patient services.

1.2.2. Methodology and Results

We develop a Markovian process for the system using all of the elapsed durations for retrial, service, and working vacation as supplementary variables. We further adopt the generating function approach to obtain system performance measures.

1.2.3. Numerical Illustrations

In system performance measures and cost-effectiveness, the numerical influence of parameters is demonstrated.

1.2.4. Advantages

The number of patients visiting the emergency department is increasing during the COVID-19 pandemic. Suppose the capacity of the queueing system increases, and the number of patients in the system increases for various reasons, such as inappropriate allocation of resources or servers. In such instances, it reduces social isolation and the transmission of infectious illnesses to patients and other staff members in healthcare facilities. To decrease waiting times, the number of patients in emergency departments, and the risk of infection, an additional server should be added or provided with extra services at various rates. We concluded that it was important to keep patients waiting for as a short time as possible based on the literature research.

2. Notations and Probabilities

Notations:(1) = customers present in the original queue at time t(2) = customers present in the orbit queue at time t(3) = server’s state at time t(4)λ = arrival rate(5)θ = vacation rate(6) = elapsed retrial time(7) = elapsed service time(8) = elapsed working vacation time(9) ≡ the hazard rate (HR or completion rate) related to the retrial, i.e., (10) ≡ the HR related to the service, i.e., (11) ≡ the HR related to the slower rate service, i.e., (12) ≡ Laplace–Stieltjes transform (LST) for retrial(13) ≡ LST for the regular busy state(14) ≡ LST for WV(15) ≡ moments for regular busy period (i = 1, 2)(16)E(B) = expected busy period(17)E(W) = expected working vacation period(18)E(I) = expected length of idle time

Probabilities:(1) ≡ the chance that the server is working vacation (lower speed service) and the system is empty at time t (also known as an idle state).(2) ≡ it is possible that, at time t, there are precisely n ( = n) customers in the orbit, with the test customer’s retry time elapsed and lying between x and x + dx (referred to as the retrial state).(3) ≡ the possibility that, at time t, the test customer receiving service has exactly n ( =  = n) customers in the original queue and orbit, with the test customer’s elapsed normal service time falling between x and x + dx (referred to as the busy state).(4) ≡ the chance that, with the test customer’s elapsed slower service time falling between x and x + dx (a working vacation state), there are precisely n ( = n) customers in the orbit at time t.

2.1. Detailed Description of the Mathematical Model

We consider a new type of queueing system in two waiting queues (original queue and orbit queue) with working vacations (M[1],[2]/G/1/WV). Figure 1 represents the system considered in this paper. The system specifications are given in the following:(i)The arrival process: according to a Poisson process, customers arrive individually.(ii)The regular service process: the service time follows a general distribution in normal busy times.(iii)The working vacations process: Every time the orbit becomes empty, the server starts vacation, and vacation time has an exponential distribution with the parameter θ. If any customer joins in while the server is on vacation (also known as a “working vacation”), the server continues to run at a slower speed service rate ( < ). Processes proceed more slowly during the working vacation period. Assume that during a low-speed service completion instant, any customers are in orbit. Vacation interruption occurs when the server stops its vacation and resumes during regular operating mode. If not, it continues the vacation. After a vacation, if there are still customers in orbit, the server continues as usual. The server begins a fresh vacation if it does not.(iv)The system and retrial process: There are two queues in the system—the orbit queue and the original queue. When the server is busy, arriving customers will join the original queue; otherwise, they will join the orbit queue if the server is on vacation. Both queues follow FCFS rules. The suggested approach has been used to execute the general retrial policy [20].(v)It is assumed that the random variables in every state are independent.

2.2. A Real-Life Example of the Suggested Model

One of the most essential difficulties in recent situations, such as the COVID-19 pandemic, is the considerable increase in the number of people requiring emergency department services in hospitals. One of the issues that hospital management confronts in emergency departments is establishing the allocation of resources at each time such that the cost of providing services and the expense of patients waiting in queue are equal. In emergency departments, doctors, nurses, paramedics, medical staff, medical equipment, and other resources serve as additional servers in queueing systems to which patients refer themselves. Afterward, patients wait to receive services from these servers and leave the system.

Patients request treatment from the chief doctors (server); if the doctors are already attending to another patient, they enter the queue (original queue) and wait for their turn. There are no patient waits, and the chief doctor goes on a secondary job (vacation). During secondary jobs, if patients request treatment, the chief doctor provides additional treatments like essential first aid treatments or collecting information about the illness (working vacation). Allocating excessive resources significantly costs the system without improving waiting time. When infected patients arrive, if the doctor is in an additional service stage, they will join another queue (retrial queue) and continue to try. After additional service completion, if any patients are waiting for treatment, the doctors return to regular treatment (vacation interruption). It appears reasonable to optimize healthcare queueing systems to lower infection rates among patients based on their health status so patients at higher risk of infection leave the queue sooner. Service options should be increased as much as feasible to decrease the length and density of the emergency department’s queues, the risk of disease transmission, and the length of time patients must wait. This idea makes us consider the queue of retry customers resulting from server vacations, which includes the concept of working vacations. Administrators of hospitals will significantly benefit from the results of this model.

3. Steady-State Analysis of the System

This section develops the steady-state difference-differential equations for the retrial queueing system by using SVT. Following that, we calculate the PGF of the orbit size for the system and various server states.

3.1. System Analysis

For further development of this model M[1],[2]/G/1/WV, let us define the random variables to obtain the Markov process . The server states of {I(t) = 0, 1, 2, 3} are idle, free, busy, and working vacation. Figure 2 presents a transition state diagram of the model.

We analyze the ergodicity of the embedded Markov chain at departure or vacation epochs. Assume that {; n = 1, 2, ...} represents the sequence of epochs during which a regular service or a lower service period completion epoch occurs. and represent the number of customers in the original queue and orbit, respectively, at time . Then, the process is a Markov chain with state space Using the method of embedded Markov chain [20] (see Appendix A), the system is ergodic (stable) if and only if where

The following densities of probability are defined as

The following state’s equations can be obtained by applying the SVT method (see Appendix):

The boundary conditions are at x = 0:

The normalized condition is

3.2. System’s Steady-State Solutions

The generating functions (GFs) are defined to solve equations (3)–(8), for  ≤ 1, as follows:

Multiplying equations of (3)–(8) by and summing over n to obtain the generating functions,

Solving the partial differential equations (11)–(13), it follows that

Using equations (17)–(19) in (15) and making some calculations, we getwhere and .

Using equations (17)–(20) and (14)–(16) after making some manipulations, we get

From equations (20)–(23) in (17)–(19), we get

Theorem 1. The marginal GFs of the number of customers in the orbit and queue are as follows under the stability condition ρ< 1:(i)During the retrial, if the server is idle,(ii)When the server is busy,(iii)While the server is on a working vacation,(iv)The idle probability of the server:

Proof. From equations (24)–(26), we define the partial PGFs asBy setting in (24)–(26) and using l’Hôspital’s rule whenever necessary, we can calculate the probability that the server is idle () when there are no customers in the system using the normalizing condition. This gives us

Corollary 2. If the system in ρ < 1, then(i)The PGFs of the orbit size iswhere(ii)The PGF of the system size iswherewhere is given in equation (30).

4. Measures of System Performance

In this section, some important system measures of the two waiting queues due to server working vacations (M[1],[2]/G/1/WVs) are derived.

4.1. Probabilities of System States

By fixing the limit functions and using the l’Hôspital’s rule as necessary, we obtain the following probabilities for system states from equations (27)–(29):(i)During the retrial time, the idle probability () is given by(ii)The idle probability of the system (D) is given by(iii)The server’s busy probability () is given by(iv)The server’s slower service (working vacation) probability () is given by

4.2. Computation of Mean Queue Size and Orbit Size
(i)The expected regular queue size () is given by(ii)The expected orbit queue size () is given bywhere (iii)The average number of customers in the system is represented as Ls and it consists of the customers in the orbit queue, the original queue, and the customer being serviced.(iv)Using Little’s formula, the mean waiting times for the system () and queue () are determined.
4.3. Mean Busy Time and Regeneration Cycle

Consider a regeneration cycle (H) to be the period between two consecutive working vacations. When the server is idle, busy, or on vacation, the periods are I, B, and W, respectively, and H = I + B + W. Using the concept of the alternating renewal process [20], we getwhich leads to

Based on the results above, we then obtain

5. Significant System Particular Cases

In this section, we highlighted the following significant system-specific situations of the two types of waiting queues that are caused by server working vacations.

5.1. Case (i): No Vacation and No Original Queue

Let (θ, ) be (0, 0); our model can be reduced to a retrial queue with a single working vacation, and the solutions matched those of Arivudainambi et al. [11].

In this case, the idle probability of the server and the PGFs of the system size are

5.2. Case (ii): No Original Queue and Multiple Working Vacations

Let  = θ =  = 0; our model was changed to a single server retrial queue with working vacations, and the solutions agreed with the results of Gao et al. [12].

In this case, the idle probability and the PGF of the system size are rewritten as

5.3. Case (iii): No Working Vacation

Let  ⟶ 0 (no lower speed service); our model was reduced to an M/G/1 queue with retrial customers due to server vacation, and the results coincided with Gao and Zhang [20].

In this case, the server’s idle probability and the PGF of the queue size when the server is busy are as follows:

6. Sensitivity Analysis

In this section, we used MATLAB software to discuss the system characteristics of various parameters. We present some numerical examples graphically based on the results. We assume Exponential (Exp), Erlang 2-stage (Erl-2S), and Hyper-Exponential (H-Exp) distributions for retrial, service, and working vacation times. The parameters’ arbitrary values are selected to meet the stability requirement. is the Exponential distribution, is the Erlang-2 stage distribution, and is the Hyper-Exponential distribution.

Tables 15 show the effect of system performance , , , and on the arrival rate, retrial rate, service rate, lower speed service rate, and vacation rate parameters. Table 1 shows that as the arrival rate increases, the probability of being idle () decreases, and the mean original queue length () and mean orbit queue length () increase for three distributions. Table 2 shows that the retrial rate (a) increases, and increase, and decreases. Tables 3 and 4 demonstrate that increasing both service rates (μ and ) decreases the value of ,, and while increasing the value of . Table 5 illustrates that the vacation rate (θ) tends to increase for and , but it tends to decrease for .

Figures 314 graphically depict many important features of the solutions, such as , , , and , to provide a clear understanding of the present scenario. Figures 3 and 4 depict that with an increasing value of the retrial rate (a), the idle probability () increases, and the mean orbit queue size () decreases.

Figures 5 and 6 illustrate that the increase in service rate () increases the original queue size (), which reduces the idle probability (). As shown in Figures 7 and 8, as the vacation rate (θ) increases, also increases, while decreases. Figures 9 and 10 demonstrate that the working vacation rate () increases as the mean system size () increases, but the idle () probability decreases.

The combined impact of several variables on system performance is depicted in Figures 1114. An increasing trend in λ and a value for is seen in Figure 11. In Figure 12, the nature of Ls declines to increase the value of the vacation rate (θ) and lower the speed service rate (). Figure 13 shows that as the service rate () and working vacation rate () grow, then rises. The vacation rate (θ) and retry rate (a) increase as the nature of drops in Figure 14.

7. Cost Analysis

In this section, the two waiting queues due to server working vacations (M[1],[2]/G/1/WVs) are addressed to optimize the design [22]. After constructing a cost function to make the system as cost-effective as feasible at the lowest possible cost, the findings of Yang and Wu [23] and Gao and Zhang [20] are consulted. Parameters are set arbitrarily to satisfy the steady-state requirement.

We performed a cost analysis based on our earlier findings (E(I), E(B), E(W), E(H), , , ). Let us define the following costs: = unit time cost of every customer in the original queue = unit time cost of every customer in the orbit queue = unit time cost for keeping the server idle = unit time cost for keeping the server busy = unit time cost for keeping the server on working vacation= setup cost per cycle

The expected cost function in the linear cost technique is provided by

By fixing the cost and other characteristics, we hope to obtain the total expected cost per unit of time (ETC). For all server state parameters, we use an exponential distribution. The values of the cost elements and other parameters such as λ = 2; a = 1; μ = 10;  = 5; θ = 3;  = 50;  = 25;  = 25;  = 60;  = 30; and  = 150 are chosen to satisfy the stability criteria. We obtain ETC = 115.87 from the parameter values in the estimated total cost per unit of time.

Table 6 and Figures 1518 depict system parameters’ numerical and graphical effects on cost functions. Our research directs us to the conclusion that when the cost parameters and decision parameter (θ) rise, the expected values of TC grow linearly. Similarly, a sensitivity analysis of some of the system’s parameters can be conducted. The graphs (from Figures 1518) show the effect of some system parameters (λ, θ, μ, ) on the total expected cost per unit of time.

8. Results and Discussion

To provide a clear insight into the present problem, some special features of the solutions like doctor’s idle time, the average number of patients in the original queue and orbit queue, mean waiting time of the patient in the hospital, and expected total cost of the model are evaluated numerically in Tables 16 and presented graphically in form of Figures 318 (by Algorithm 1). The main findings of this investigation in the hospital system are summarized as follows:(i)The chief doctor’s resting time (idle time, ) decreases by increasing the arrival rate’s value of patients for treatment (λ) and additional treatment rate (). In contrast, it increases for raising the value of rerequesting rate (a), both treatment rates like regular and additional ( and ), and doctor’s secondary job time (θ).(ii)The average number of patients in the regular queue (patients in person, ) increases for increasing the value of the arrival rate of patients (λ), the rerequesting rate (a), additional treatment time (), and secondary job time (θ). At the same time, it decreases by increasing the value of the regular treatment rate ().(iii)An increase in the mean number of patients in online requests (patients in online, ) increases the patient’s arrival rate (λ) and different treatment rates ( and ). It falls for raising the values of retrial rate (a) and secondary job time (θ).(iv)The expected total cost of this model (ETC) is a linearly increasing trend for the decision parameter (θ), and parameters (arrival and treatment rates, λ, , ) are increased.

Begin
Input: λ, a, , and θ.
Compute: the value of ρ
If (ρ < 1)
Compute: Probabilities of system states
Compute: Mean orbit and system size
Compute: Mean busy time
Compute: Expected total cost
Else
Change the input of the parameters by satisfying ρ < 1.
End
Output: , , and ETC

9. Conclusion

In this study, we address a new type of queueing system in two waiting queues (original queue and orbit queue) with working vacations (M[1],[2]/G/1/WV). This model’s main feature is that it contains two waiting queues with working vacations: the original and orbit queues. Various performance measures, such as the size of the queue length, orbit length, system busy period, and mean waiting times, are derived using the SVT and PGF approaches. Finally, we covered the sensitivity analysis for the system parameters and a cost optimization technique for the suggested model that reduces the average operating cost overall. Additionally, we used MATLAB software to present some numerical examples in graphic form. This model’s outcomes are tremendously advantageous to hospital administrators. Researchers may create models in the future to optimize queues and servicing systems for others. They can also explore priority models or a single server queueing system for the multiwaiting station in the presence of working breakdowns, working vacations, etc. Furthermore, it must be focused on a few circumstances of real-life applications for COVID-19 emergencies to govern the patients correctly.

Appendix

A. Proof of Theorem 1

We introduce some notations based on [20] to prove the sufficient ergodicity condition. During a service time, let (n = 0, 1, 2, ...) be the chance that n customers will be added to the original queue, and let (n = 0, 1, 2, ...) represent the possibility that n customers will join the obit queue while on vacation, so that we may get

The GFs of and are as follows:

Let represent the probability of a one-step transition; then, we have that ; then, define the following conditions.(i)Case (i): k = 0 and j = 0,(ii)Case (ii): k = 0 and j ≥ 1,(iii)Case (iii): k ≥ 0 and j ≥ 0,

From the above conditions, we can get the following:

If the function is nonnegative, then and then the mean drift

Using Foster’s criteria is highly feasible (see Pakes [24]), and the inequality ρ < 1 is a necessary and sufficient condition for ergodicity and the system to be stable. It is ensured by

B. Proof of Steady-State Equations

The steady-state equations are presented from equations (2)–(5), and they can be obtained by applying the SVT method. For a better reading, here we explained the derivation of equations (3) and (4) by the basic assumption of queueing literature:

Applying the limiting behavior Δt ⟶ 0 in equation (B.1), then we get

Applying the steady-state behavior limit t ⟶ ∞ from equations (B2)–(B5), we get the steady-state differential equations (2)–(5).

Data Availability

The data used to support the findings of this study are included within the article.

Conflicts of Interest

The authors declare that they have no conflicts of interest.