Abstract

When the required number of customers is available in the general bulk service (GBS) queueing system, the server begins service. Otherwise, the server will remain inactive until the number of consumers in the queue reaches that minimum required number. Customers that have already come must wait throughout this time, regardless of their arrival time. In some circumstances, like specimens awaiting testing in a clinical laboratory or perishable commodities awaiting delivery, it is necessary to finish services before the expiration date. It might only be achievable if consumers’ waiting times are kept under control. As a result, the flexible general bulk service (FGBS) rule is developed in this article to provide flexibility in batching. The effectiveness of FGBS implementation has been demonstrated using two examples: a clinical laboratory and a distribution center. To justify the suggested model, a simulation study and numerical illustration are provided.

1. Introduction

The server in a typical queueing system provides services to a single customer or a batch of customers. In terms of waiting time, the batch service is always deemed to be superior to the single service. Furthermore, the number of customers served in batch service is always greater than the number of consumers provided in single service. The batch size can be any number, but selecting a suitable batch size is essential, since it influences the customer’s waiting time. The batching strategy with the least amount of waiting time and the lowest cost is regarded the best. As a result, selecting a suitable batching strategy is critical.

General bulk service (GBS) rule performs better among many batching techniques because the batch size depends upon the length of the queue. GBS rule was first introduced by Neuts [1]. In that, both the minimum and maximum limits, referred to as and , determine the batch size. The server begins to provide service only when at least units are present in the queue. Immediately after completion of the first service, all the existing customers will be taken for service when the number of customers waiting in the queue is greater than or equal to but less than or equal to . When the number of customers exceeds , the first customers are taken for service. But the next batch will be taken for service only after the queue size reaches in case the customers are lesser than the minimum batch capacity . The server and the existing customers have to wait until the number of customers reaches minimum batch size. This leads to an increase in the average waiting time of a customer and reduces server utilization.

Allowing the server to work on a subsidiary job or taking a break might boost server utilization. Vacation, in general, refers to the unavailability of the server to provide a service. Several authors studied various combinations of bulk arrival general bulk service and vacation queueing systems. A survey on server vacation has been analyzed by Doshi [2]. Sasikala and Indhira [3] did a detailed survey on bulk service queueing models. Only a few of the authors listed below took actions to decrease the average waiting time of the customer by modifying the general bulk service rule.

Balasubramanian et al. [4] explored a bulk service queueing system with overloading and multiple vacations. If the server finds that there are more than customers after completing a service or vacation, the server will increase its service capacity, known as overload, and serve customers in a batch. Bulk queue with modified vacation policy was investigated by Jeyakumar and Arumuganathan [5]. In that, if the queue size is less than after vacations, the server remains idle until the queue size reaches the minimum threshold value . Following that, Balasubramanian and Arumuganathan [6] enhanced that with state-dependent arrival.

A bulk arrival bulk service queueing system with working vacation was studied by Jeyakumar and Senthilnathan [7]. Instead of being idle during the vacation period, the server will work at a different rate while on working vacation. Arumuganathan and Jeyakumar [8] examined an queueing system in which the server can choose between a single service and a bulk service based on the number of consumers in the queue while entering into service. Only when customers are in queue will the service begin. When the queue length is greater than , the server will select a single service and serve it one at a time. When the queue length is , the server will pick bulk service and serve at most consumers in a batch. Deepa and Azhagappan [9] looked at batch arrival single and bulk service queues with multiple vacation closedown and repairs. If the queue size is less than , the server provides single service; if the queue size is greater than , the server provides bulk service. If there are no customers in line at the completion epoch of any service, the server will begin a closedown and thereafter enter multiple vacations. All of the foregoing work was done in order to reduce the average waiting time of the customer. In all these mentioned cases, the batch size was modified in the GBS rule concerning only the number of customers accumulated in the queue.

Batching based only on the number of customers accumulating in the queue has several drawbacks. When the client is perishable, for example, the customer may rot before the service is completed due to a time delay in batching. As a result, in such cases, the GBS rule must be modified. This article introduces the flexible general bulk service (FGBS) rule, which modifies the GBS rule regarding the average waiting time of a consumer in the queue. In FGBS, the server starts bulk service when (i) there are at least customers in the queue or (ii) there are less than customers in the queue but the measured average waiting time of these customers in the queue is greater than or equal to the waiting time tolerance . The server becomes idle if the number of customers at the completion epoch of service is less than the minimum batch size and the average waiting time of a customer in the queue is less than time .

The FGBS rule has been introduced to ensure that customers who are waiting in the queue due to batching inadequacy get served promptly. The FGBS rule uses the average waiting time of the inadequate number of customers in the queue rather than individual waiting time, since mean is the best central tendency value that reflects a group. Individual waiting times, such as the waiting time of the customer at the front of the line, might result in very tiny batches and raise the cost.

Additional possibilities for accelerating the general bulk service include increasing the number of servers, increasing the service rate, and lowering the minimum batch size. Increasing the rate of service in some queueing systems, such as processing user requests at a base station or using an elevator for transit, may not be possible. Increasing the number of servers and lowering the minimum batch size will raise the cost, which is unnecessary when traffic is low; yet, FGBS performs well under these circumstances.

In the present era, computer is a part in almost all queue management systems. Queue Management Software (QMS) is used in such queues to track entries, exits, the average waiting time of all customers in queue , and so on. The waiting time tolerance can be calculated using the experience, the expiration period, or the customer’s direct/indirect feedback. If the number of customers in the queue is insufficient for bulk service but the average waiting time of the accumulated customers in the queue exceeds the waiting time tolerance , customise the QMS to send an alert or notification to provide bulk service to the waiting customers after the ongoing service is completed.

Prior to implementation, it is always a good idea to run a simulation analysis. Through multiple iterations, simulation analysis can be utilised to determine an appropriate waiting time tolerance for a given situation. So validation and verification can be performed in a virtual environment and initial implementation challenges in a real-time context can be avoided. As a result, simulation is employed throughout this research to demonstrate the value of the proposed concept FGBS.

In this paper, the FGBS rule is applied to a multiple vacation queueing system. The assumptions for GBS and FGBS with vacation are given in Table 1. To pick the optimum value of , the flexible general bulk service rule is compared to the general bulk service rule. In addition, the suggested flexible general bulk service rule is tested in two scenarios, namely, a clinical laboratory and a distribution center, to determine its efficacy.

The rest of the article is organised as follows: The model description and notations used in the model are found in Section 2. In Section 3, the model’s probability generating function is derived. Section 4 describes the simulation of the proposed model and the determination of the optimal value of . The motivation for the suggested model is discussed in Section 5. In this section, the FGBS rule is applied to manage clinical laboratories queueing system and queue of perishable items waiting for delivery. In Section 6, conclusion and some future extensions are mentioned.

2. Model Description

The following are the assumptions made for the multiple vacation MX/G (a, b)/1 queueing system with FGBS rule.

Arrival of batches of customers follows the Poisson process with composite arrival rate . Actual number of customers in any arriving module is a random variable with probability distribution . Single server provides bulk service to the customers in the FCFS discipline. Service time follows a general distribution with rate . The server will start to provide service for the customers only when at least units are present in the queue or else average waiting time of a customer in queue is greater than or equal to the waiting time tolerance . Maximum service capacity is . After completion of a service or a vacation,(i)the number of customers in the waiting line is less than or equal to and greater than or equal to , then all the existing customers are taken for service;(ii)more than number of customers are in the queue, then the first customers are taken into service;(iii)the number of customers is lesser than the minimum batch capacity and , then the server leaves for vacation, which follows an exponential distribution with rate ;(iv)the number of customers is lesser than the minimum batch capacity but , then the entire queue is taken for service.

The server takes multiple vacations until at the end of any vacation either the queue size greater than or equal to or .

2.1. Notations

The following are the notations used in this model: is arrival rate of the customers; is service rate of the server; is vacation rate; is group size random variable of arrival; –PMF of X; is random variable for service time; is random variable for average waiting time of a customer accumulated in the queue; is cumulative distribution function of service time; is cumulative distribution function of vacation time; is remaining service time at any time ; is remaining vacation time at any time ; is density function of ; is density function of ; is density function of .

3. System Size Distribution

Steady-state system size distribution is obtained in this section. Various states of the system at time are defined as follows:

The state probabilities are defined as

3.1. System State Equations

All possible system states are identified and corresponding equations are written for an infinitesimal using supplementary variable technique. For example, , that is, the probability that the state with number of customers in the system and the queue is empty at time , is obtained from the following possible events:(i)Server is providing bulk service for customers, the queue is empty at time , and no one arrives in .(ii)Average waiting time of customers in the queue exceeds at the completion epoch of bulk of at , and hence service starts in .(iii)Average waiting time of customers in the queue exceeds at the completion epoch of any vacation at , and hence service starts in .

Similarly, the following equations are obtained:

In the steady state, the transient effects get faded. Hence, the following steady-state equations are obtained using the assumptions and in the above system of equations:

The Laplace-Stieltjes transform is defined as follows:

Taking Laplace-Stieltjes transform on both sides of (5) to (12),

The following marginal/partial probability generating functions are defined to obtain the probability generating function (PGF) of the system size at an arbitrary time:

Multiplying (18) and (19) by and , , respectively, we get

Multiplying (20) and (21) by and , , respectively, we get

Multiplying (14) and (16) by and , , respectively, we get

Multiplying (15) and (16) by and , , respectively, we get

Multiplying (15) and (17) by and , we get

Or

When , the above equations gives

Let be the probability generating function of the queue size at an arbitrary time epoch. Then

Let , , and .

4. Simulation Model

The random variable signifies the average waiting time of customers in the queue, whereas is the corresponding density function called average waiting time distribution. For the average waiting time distribution, no assumptions were used. Because obtaining performance measures of the suggested model via an analytical/closed form solution is tedious, simulation is used to justify the model. The transient and steady-state behaviours of a queueing system can be visualised using a simulation model. It can also provide performance measures that are not available in an analytical method, such as the number of customers who join the system, the number of customers who are served, and the average batch size. The suggested model’s ARENA Document, as well as the descriptions used in the modules, is shown in Figure 1.

The simulation was conducted over the course of a year. Table 2 shows performance measures such as average number of customers and average waiting time of a customer in the queue under FGBS and GBS rules. In the table, the values assigned to both fixed and variable parameters are listed. The following are some observations:(i)When the mean rate of arrival decreases, the interarrival time increases. As a result, the required number of customers for batching is slowly reached, resulting in a decrease in queue length and an increase in the average waiting time of a customer under GBS rule. The FGBS rule, on the other hand, controls the customer’s waiting time.(ii)When the mean service time increases, the mean waiting time of a customer increases under both GBS and FGBS rules. However, the waiting time in the system with FGBS rule is lesser than that in the system with GBS rule.(iii)Average waiting time of a customer grows when the minimum need for batch service increases in the system under the GBS rule. The FGBS rule works nicely in this case. It controls the number of customers waiting in the queue and the average waiting time of the customer in the queue.(iv)The server’s nonavailability increases as the vacation time increases. The GBS rule increases the average customer waiting time, whereas the FGBS rule keeps it under control.

4.1. An Illustration to Find the Optimum Value of

For a given set of parametric values, Table 2 displays the performance measures of a queue with GBS and FGBS rules. It was discovered that the FGBS rule efficiently controls the batching delay. In the case of the FGBS queue, is a factor that influences a customer’s average waiting time; therefore it is critical to select appropriate for the model. Smaller value often makes small batches lead to an increase in cost. Setting a large value results in bigger batches, which may save costs but increases the average wait time of a customer. An optimal value, on the other hand, manages and minimises a customer’s queue waiting time at the lowest possible cost. The value can be derived from the problem itself in some real-world situations like the blood samples awaiting clinical testing, perishable commodities awaiting delivery, and so on. If no such is available in the problem, one can use the ARENA Output Analyzer to get the optimum value of . The procedure of choosing the correct value is given below.

Along with the FGBS simulation model in ARENA, a .dat file is produced in the statistic module to collect the data of the variable to identify the optimum value. Figure 2 depicts a spreadsheet view of the .dat file. To find the optimum value, along with the FGBS simulation model in ARENA a .dat file is created in the statistic module to collect the statistics of the . Spreadsheet view of the .dat file is shown in Figure 2.

For each value from 1 to 27, a separate .dat file was produced. These data files include data that is persistent across time. So, using the batch/truncate icon in Output Analyzer, a .flt file was produced for each file. Using the Conf. Int (Mean) icon in the Output Analyzer, all of these .flt files were uploaded to obtain the confidence interval of the average batch size. The results are shown in the graph of mean batch size with a confidence interval (95%) in Figure 3 and a summary in Table 3.

.

The average waiting time of a customer in the queue under the GBS rule is 23.428 2 for the parametric set of parameters from Table 2. Figure 3 shows that when ranges from 1 to 11, the average batch size does not change. Table 3 further shows that, for any between 1 and 11, the average batch size is 4.54, the average waiting time of a customer is 18.185 8, and the total number of services is 4664. Under the FGBS rule, a customer’s minimal average waiting time is 18.185 8 minutes. From T = 12, the average batch size is beginning to rise. To identify an optimum , the data in Table 3 are shown in Figure 4. From the graph, the average waiting time of a customer can be controlled from 18.185 8. As per the graph, the maximum value which minimises average waiting time of a customer in the queue, maximizes average batch size, and minimizes number of services is 18. At the optimum , the average waiting time of a customer is 18.660 5. As a result, if the value is not provided in the problem, the suitable value can be determined by prior experience or simulation based on the waiting time constraint.

5. Application of Proposed Model

Managing the customers having a fixed lifetime in a queue is a complicated task because it should not die or destroy before departing from the system. If it expires before the service completion the cost of product and service become a loss. Two common and frequently occurring situations are considered to show the effectiveness of the proposed model. The first one is a clinical laboratory problem, where the specimens are alive only for a fixed lifetime after which they will expire. Analysis of the expired specimen creates a clinical error. The second one is the management of perishable items such as meat, vegetables, and flowers. The expiration of perishable items leads to wastage of the item itself.

5.1. Flexible General Bulk Service in Clinical Laboratory

Every day, clinical laboratories worldwide analyze billions of samples. Clinical laboratory results are used to provide essential information that allows reliable clinical decision-making for diagnosis, drug prescriptions, patient’s admission, or discharge from the hospital. The complex process of laboratory testing finally provides a report, which is not error-free always. Clinical errors affect the emotional, financial, physical, and social behaviours of patients and sometimes technicians as well. Although Plebani and Carraro [10] demonstrated that 74% of laboratory errors did not affect patient’s outcome, the other 26% becomes a patient care problem leading at least to further inappropriate investigations, discomfort, increased costs, even worse, improper care, modification to therapy, and so forth. Steps in clinical specimen testing are given in Figure 5. Lab testing process generally comprises three phases. The first is the preanalytical phase, which encompasses all the steps from the test request, sample collection, transport, and registration of the sample up to the start of specimen analysis. The second is the analytical phase, which involves the analysis of the samples and technical validation of the results. The third is the postanalytical phase, which includes the interpretation of the results, approval from the lab manager, and reporting to the physician. Laboratory errors might occur at any of these three phases.

The majority of diagnostic lab errors are either preanalytical (46–68.2%) or postanalytical (18.5–47%). Indeed, only of errors occur during the analytical phase [11]. Detecting an error in the preanalytical phase is difficult and hardest to regulate and monitor because of the involvement of too many professionals like physicians, specialists of laboratory medicine, nurses, laboratory technicians, and phlebotomists [11]. Sakyi et al. [12] identified nine types of most common preanalytical errors. Delay in sample transportation is one of them. Nagat [13] investigated the frequency of preanalytical errors and identified that delay in sample transportation is a major cause for preanalytical laboratory error with a high frequency of 39%. This delay time includes the time from the specimen collection to the start of the specimen analysis. It includes the delay caused by batching process and the blood samples are not reaching for the test on time. So, it is essential to minimize the delay in sample transportation to decrease the number of clinical errors that occur in the preanalytical phase.

5.1.1. Model Description in Clinical Laboratory

The clinical laboratory conducts blood test for both inpatients (IP) and outpatients (OP). For IP, the order of taking blood samples is prepared as a first step and then the ward nurses take the blood samples. If the number of samples is more than , a nurse batches the collected samples with a maximum of samples and transports them to the laboratory. If the number of samples is inadequate, then the nurse goes on a vacation by taking a break or doing secondary work. The duration of vacation follows an exponential distribution with a rate of . The blood samples of the OP are taken in the clinical laboratory itself. The collected samples are queued for the test bases on the FIFO queue discipline. The technician again batches the samples based on the capacity of the machine. The technician operates the machine only when at least samples are available and the machine can hold a maximum of samples. After running the machine, the technician publishes the result for diagnosis. A blood sample expires after a time frame because the blood structure changes. After that, it is not useful for medical analysis. The technician waits at least number of samples to optimize the operating cost of the testing machine, but the blood samples will expire in minutes. Therefore, the nurse in the ward and the technician in the clinical laboratory should not wait until the arrival of at least and numbers of samples, respectively. So, the batching rule of the nurse in the ward has to be modified as the specimens are taken for transport: either the availability of at least samples or the average waiting time of the blood samples in the ward exceeding minutes, whichever occurs first. Likewise, the batching of blood tests is done based on the first occurrence of either at least or average waiting time in the clinic not exceeding minutes. At completion epoch of service or vacation, if any of the conditions for batching fails to hold, then the nurse or the technician takes a vacation. The assumptions in Table 4 are used to simulate the model.

5.1.2. Numerical Illustration

The general bulk service (GBS) and flexible general bulk service (FGBS) rule models are simulated for the same set of values. The models ran for different values of minimum batch sizes and for 30 days. From that, the average waiting time of the customers in the queue, the total number of customers served at the end of the simulation run, the number of expiration of customers, and the cost of the models are tabulated in Tables 5 and 6.

From Tables 5 and 6, the deviation between the service rules GBS and FGBS on the performance measure of total number of customers served and cost of the system is not significant for different values of and . But the aim of introducing the FGBS rule is to reduce the average waiting time of the customer and expiration. The performance measures like total number of expired customers and average waiting time of a customer in the system are significantly low. Hence, the FGBS satisfies its purpose. The graphs in Figures 6 and 7 illustrate this clearly.

Figures 6(a) and 6(b) show that the total number of expirations of customers is minimum under FGBS rule and considerably increases under GBS rule for higher values of and , respectively.

Figures 7(a) and 7(b) show that the average waiting time of a customer in the system is in control under FGBS rule but it is out of control under GBS rule, especially at higher values of and .

5.2. Flexible General Bulk Service in Perishable Goods Management

The distribution center is designed to store the goods for retailers and wholesalers. The goods are distributed to another seller or customer directly from the distribution center. In today’s world, these distribution centers are an important part of online retailers and e-commerce businesses. Distribution centers may store both perishable and nonperishable items. The fulfillment of the order has five steps as shown in Figure 8. There is a big difference between managing perishable goods and managing nonperishable goods. Storing and distributing the goods at low cost is the only goal of nonperishable items. Meanwhile, the time is the major constraint for perishable items because they have a limited lifespan after which they expire and become useless. Consider a distribution center where many suppliers are storing their perishable goods. There are less chances of delay until the third stage of order fulfillment. But usually delay happens in the fourth and fifth stage as they wait until at least units are available to reduce the shipping cost. This may minimize the transportation cost but sometimes the items may deteriorate before delivery. So it is essential to study storing and transporting the perishable items with optimum cost and minimum expiration. In this article, the distribution of perishable items is analyzed from queueing theory perspective. More specifically, the problem of storing and transporting perishable items at low cost and minimum wastage is considered by applying the FGBS rule.

5.2.1. Model Description in Perishable Goods Management

The following assumptions are made: a bulk of perishable goods arrive at the warehouse according to the Poisson distribution with the composite arrival rate and they are stored for later shipment with already existing products. The queue of products in the distribution center is served upon arrival of a truck and its capacity is units. Assume that one truck is used to transport products from one distribution center to customers. The transportation cost and average waiting time will be minimum if always transported with full truckload. Most of products cannot be delivered in this manner, because always the number of items in the distribution center may not be greater than or equal to . In our model, it is assumed that the transportation is performed right after the quantity of goods accumulated in the warehouse reaches:less than but the average waiting time of the items isgreater than or equal to time , all the items are taken for transport;lesser than time , the server leaves for a vacation;greater than but less than , all the items are taken for transport;more than , first are taken for transport.

The transportation time follows an exponential distribution with rate . If the criterion to transport is not met, the server used to transport the items will take multiple vacations until the system meets the criteria at the end of any vacation. The duration of vacation follows an exponential distribution with rate . This type of queue will fall under with flexible general bulk service and multiple vacations. The queue discipline FIFO is suitable for this queue.

5.2.2. Numerical Illustration

The following set of parametric values was considered to simulate the model: The arrival of the batches of perishable items follows the Poisson process with rate per hr. The size of each such batch is a random variable following a geometric distribution with probability . The service time of the truck follows an exponential distribution with rate per hr. Maximum truck capacity is . The vacation time of the server follows an exponential distribution with rate . The lifespan of the product is 7 hrs. Table 7 shows how the FGBS rule is more efficient than the GBS rule for increasing the value of the minimum capacity of truck .

The box and whisker plot shown in Figure 9 was drawn using the values from Table 7 to compare the results from each of the rules. The following is observed:

The average waiting time of a customer is effectively controlled under the FGBS rule. Its minimum value is 1.373 1, maximum value is 1.503 5, median is 1.499 95, Q1 is 1.498 3, and Q3 is 1.499 5. The box is not visible, since the deviation between Q1 and Q3 has relatively a small value.

Percentage of expiration is very low in case of FGBS rule in comparison to GBS rule. Tolerance of average waiting time of a perishable item in the distribution center is chosen based on the lifetime of the item.

Utilization of server is large because the frequency of providing service in FGBS is greater than that in GBS.

By applying the FGBS rule in the distribution of perishable items, the risk of spoilage or loss of freshness is minimized. The increase in the utilization of the server may increase the cost but it reduces the cost due to the wastage of items.

6. Conclusion

An attempt is made in this article to reduce the waiting time of a customer in the general bulk service queueing system. Flexible general service rule is introduced and analyzed for different values. It has been proved that the FGBS rule effectively constricts the waiting time of a customer. This model is preeminent for the customer who has a fixed lifespan. Application of the FGBS rule is illustrated in detail with the help of two scenarios, namely, specimen waiting for testing in a clinical laboratory and perishable item waiting for delivery. It is observed that the FGBS rule effectively reduced the expiration of specimen and wastage of perishable items. FGBS rule is a threshold to reduce and control the waiting time of a customer in any type of bulk service. The model can be further extended with restricted admissibility, service and vacation interruptions, and setup time concepts for future research. The proposed queueing model may be studied for discrete time case also. FGBS may be incorporated in a multiple service channel queueing system.

Data Availability

The data used in the article were taken based on assumption.

Conflicts of Interest

The authors declare that they have no conflicts of interest.