Managing Queues with Reentrant Customers in Support of Hybrid Healthcare
Abstract
The COVID-19 pandemic has profoundly boosted the use of hybrid healthcare settings, which orchestrate face-to-face services together with virtual ones. The advantages of virtual healthcare services are clear: they are less costly and less disruptive for patients who can receive the service in the comfort of their home and reduce patients’ exposure to illnesses prevalent in healthcare facilities. Nevertheless, there is evidence that patients are likely to require a supplementary in-person service upon completion of their virtual service. Motivated by such settings, we study a multiservice queueing system with face-to-face, virtual, and supplementary service channels. The service operator needs to allocate service capacity among the three classes and decide how to prioritize the patients when a service provider becomes available. The strong dependency between virtual and supplementary visits makes the problem challenging. Based on a fluid relaxation, we develop an index-based policy, the rule (or the rule in short), which, in addition to the holding cost, service time, abandonment rate, and service reward, also carefully balances the return probability and associated penalty. The theoretical results along with numerical experiments demonstrate the effectiveness of the proposed policy and the importance of capacity coordination when managing hybrid service settings. Our work provides insights on the trade-off between convenience and the value of care when offering virtual healthcare services.
History: This paper has been accepted for the Service Science/Stochastic Systems Joint Special Issue.
Funding: The author was supported in part by an Israel Science Foundation [Grant 277/21] and the Israel National Institute for Health Policy Research [Grant 2021/160/R].
1. Introduction
The COVID-19 pandemic has dramatically affected healthcare worldwide, accelerating broad acceptance of telemedicine and transforming the provision of medical care (Bokolo 2020, Kadir 2020). Telemedicine refers to technologies that enable the provision of remote clinical services via real-time communication between patients and healthcare providers, using video conferencing and patient monitoring (Monaghesh and Hajizadeh 2020). Telemedicine and virtual care can be integrated into the healthcare system to maximize the efficiency of healthcare delivery (Hur and Chang 2020, Kadir 2020). Indeed, telehealth adoption has significantly increased across the 50 countries most affected by COVID-19 (Wong et al. 2021).
Telemedicine advantages include the reduction of contagion risk and emergency room/clinic visits (Chauhan et al. 2020, Doshi et al. 2020). Virtual visits promote social distancing and help circumvent prolonged waiting times. Moreover, by minimizing in-person visits, telehealth can help reduce spread of today’s virus and future ones and protect medical practitioners from infection (Hollander and Carr 2020). Clearly, healthcare provision through telehealth will have a permanent role in traditional healthcare delivery long after COVID-19 becomes endemic (Ahmed et al. 2020).
Despite the obvious advantages of virtual visits, when operating and designing such systems, one must be aware of their potential for providing low-value instead of quality care (O’Reilly-Jacob et al. 2021). In this paper, we focus on one important aspect of ensuring that patients receive quality care, which has significant operational implications: the requirement for a supplementary face-to-face visit. Specifically, there is evidence that virtual visits are likely to lead to a follow-up, in-person visit (Ashwood et al. 2017, Shi et al. 2018). This usually has to do with the fact that some medical examinations/procedures cannot be executed remotely (McConnochie et al. 2015, Uscher-Pines et al. 2016). Indeed, an empirical study from a large healthcare system in the United States revealed that e-visits remove the gatekeepers between patients and specialist physicians and trigger a 6% increase in in-person visits (Bavafa et al. 2018).
To ground our model, we consider the real-world case of an urgent care center or a community clinic that patients visit only when they feel sick. An example of such a center, mentioned in Çakıcı and Mills (2021), is Northwell Health (https://www.gohealthuc.com/northwell), the largest healthcare provider in New York state. When patients seek urgent care, they are offered the opportunity to book a telehealth visit instead of heading to the clinic for an in-person visit. Then, they can meet with any available physician on call. If they choose a telehealth visit and require a supplementary in-person visit, they arrive at the clinic and see one of the available physicians there.
To better understand the effect of these supplementary visits on system performance and decision making, we study a hybrid healthcare system, which provides virtual and in-person visits. The first visit to the system can be either in person or virtual. In a face-to-face visit, patients wait in a waiting room and are, thus, exposed to other illnesses. In a virtual visit, patients wait in the comfort of their home; nevertheless, they might require a supplementary in-person visit. We model the patients requiring a supplementary visit as a different class of patients (i.e., the patient’s class switches when physically entering the clinic). This is because the supplementary visit might have different characteristics in terms of service times, holding costs and abandonment rates than the first (face-to-face or virtual) visit. In particular, because some information has already been collected, the service time of the supplementary visit might be shorter than a full in-person visit. The holding cost and abandonment rate might be different as well because the patient is now required to wait a second time and, therefore, may be more agitated and less patient.
There are two basic questions that come to mind when considering such a hybrid setting. First, there is a design question: how do we allocate capacity among the three types of services? The second question is an operative one: how do we schedule/prioritize the three classes or decide whom to admit when a physician becomes available? This paper attempts to address these two questions by studying a multiserver queueing model with three customer classes: face-to-face, virtual, and supplementary. (We use the terms “patients” and “customers” interchangeably.) In Section 5, we discuss two model extensions for more classes and different supplementary classes for teletriage systems.
The optimal scheduling of multiclass queues is studied extensively in the literature (see Section 1.1). The main takeaway from these studies is the need to carefully balance the holding cost and service and abandonment rates. Our work captures an additional feature in multiclass queueing systems: customer return and class transition when returning. The analysis suggests that, in addition to the holding cost and the service and abandonment rates, we also have to take into account the return probability and associated penalty. How to balance these factors can be highly nontrivial. The optimality of the rule, for example, is only achieved asymptotically (Atar et al. 2010). Moreover, solving the Markov decision process (MDP) exactly often leads to limited structural insights and suffers from the curse of dimensionality especially in large systems (Papadimitriou and Tsitsiklis 1999).
Using a fluid framework, we study the optimal scheduling and capacity allocation policies. Specifically, the strong dependency between virtual and supplementary visits requires an integrative approach. To this end, we develop an effective index-based policy, the rule (or the rule in short), which captures this dependency. We demonstrate how important it is to consider the return probability and penalty when scheduling and capacity allocating service systems with returns. In particular, using policies that neglect the dependency between first and second time visitors can lead to unsatisfactory performances.
Our main contributions can be summarized as follows:
Modeling. We study a multiserver queuing model with reentrant customers that have different characteristics than first time visitors to the system. The main motivation for the model is facilitating a hybrid healthcare setting that provides face-to-face, virtual, and supplementary in-person services. Nevertheless, the model is relevant to other service systems, such as technical support centers, in which some repairs must be handled through an in-person service center. We provide two model extensions: the first includes multiple classes for each channel, and the second refers to the virtual channel as a teletriage system that classifies patients according to the supplementary service they require. We use a deterministic fluid model to approximate the system dynamics and derive scheduling and capacity allocation policies that shed light on the convenience versus low-value trade-off of virtual healthcare services.
The rule. For maximizing the fluid, long-run profit of a hybrid healthcare setting, we introduce an index-based policy that incorporates the return probability and associated penalty along with the holding cost, service time, abandonment rate, and service completion reward from each service channel. The rule, which performs well in different parameter regimes, utilizes the index of each class together with an integrated index for virtual and returning patients. We demonstrate that the rule, which is optimal for the fluid problem, performs well—very close to optimal—in the corresponding stochastic system. Moreover, we show that our policy performs much better than other known policies that neglect the dependency between classes even under nonstationary arrival rates. The simplicity of the policy, together with its strong performance and the lack of other good policies for this setting, make the policy appealing and implementable.
Service capacity coordination. Our work underscores the need for an integrated view of patients’ first and following (if any) visits. In terms of system design, we show the importance of joint capacity allocation, in particular, for virtual and returning patients. This is done by carefully balancing the service allocation for these two classes and incorporating the return probability and associated penalty. We identify the cases in which this coordination has the largest impact. In these cases, the superiority of the rule is most significant when compared with other benchmark policies.
The rest of the paper is organized as follows. This section is concluded with a brief relevant literature review. In Section 2, we introduce our model and assumptions. In Section 3, we develop the index rule and discuss its properties, optimality, and implications in terms of system design and scheduling. In Section 4, we provide numerical experiments for the index rule, including a comparison with the optimal solution from the MDP solution, the rule, and the max-weight policies. This section also considers the transient profit-maximization problem under nonstationary arrivals. In Section 5, we discuss two model extensions: multiple supplementary services that consider the virtual channel as a teletriage system and a multiple class model. Section 6 offers concluding remarks and future research directions.
1.1. Literature Review
This paper is related to two main bodies of literature. The first is the operations research (OR)/operations management (OM) literature on virtual/e-visits in healthcare systems. The second includes scheduling and capacity planning of queues with different customer classes.
Because the accommodation of virtual/e-visits in healthcare systems is a relatively new practice, there are only a few OR/OM papers in this area. Rajan et al. (2019) study the impact of telehealth on the quality–speed trade-off for chronic patients. By considering an M/M/1 queue with strategic behavior, the authors show that telemedicine can contribute to the specialists’ productivity and overall social welfare. Nevertheless, some patients who continue to use in-person visits may be worse off. In a recent study, Bavafa et al. (2021) focus on the physician compensation scheme (pricing) of e-visits in a primary care setting. The authors demonstrate that patients requiring intermediate healthcare may improve or worsen when e-visits are introduced and identify settings in which system outcomes worsen under e-visits. Çakıcı and Mills (2021) recently studied the use of teletriage, a telemedicine service that allows patients to consult about their health condition. By analyzing an MDP to model patients’ choices under triage errors, the authors find that, for patients with high uncertainty regarding their health condition, teletriage can be beneficial in terms of cost outcomes. Nevertheless, because of the general overtriage rate, adding teletriage may increase the emergency department (ED) arrival rate and produce a negative cost outcome.
In our paper, we focus on a different aspect of telemedicine, which is the supplementary in-person visit and its effect on scheduling and capacity allocation decisions.
The scheduling of multiple customer classes in stochastic processing networks is a broad literature area. Cox and Smith (1961) prove the optimality of a simple index-based policy, known as the rule for a single-server queue with linear holding costs. Many generalizations have been offered for the rule; their optimality, however, is mostly obtained asymptotically (e.g., Van Mieghem 1995, Mandelbaum and Stolyar 2004, Huang et al. 2015).
In a multiserver system, Harrison and Zeevi (2004) and Atar et al. (2004) study the scheduling of multiple classes with customer abandonment under the critically loaded regime. Atar et al. (2010) derive the asymptotic optimality of the rule for many-server queues with abandonment under the many-server heavy traffic regime. More recently, Long et al. (2020) suggest an extension of the rule to general queue length cost functions and customer patience time distributions. Puha and Ward (2019) provide a tutorial on scheduling policies of many-server queues with impatient customers under the overloaded regime. Other recent extensions include scheduling of customers with different resource requirements (Zychlinski et al. 2020, 2023) and scheduling of proactive services (Hu et al. 2021). The latter, as is our current paper, is studied under the conventional heavy-traffic regime.
In this work, we complement this literature body by studying the scheduling of new and reentrant customers. This feature is relevant for hybrid healthcare settings as well as other services that may require a supplementary in-person visit. We allow returning patients to have different characteristics than the first time visitor and address the questions of how to schedule and allocate capacity among the different service channels.
2. The Hybrid Queuing Model
We consider a Markovian N-server queuing model and three classes of visits: face-to-face (f), virtual (v), and supplementary (s), as illustrated in Figure 1. The in-person and virtual classes arrive to the system according to a time-homogeneous Poisson process with rate λf and λv, respectively. Upon completion of a virtual visit, with probability ps, the patient requires a follow-up in-person visit. To allow returning patients to have different characterizations than the face-to-face or virtual patients and support the decision of how to schedule/prioritize the different classes, we consider returning patients to be a separate class of patients. Service and patience times of each class are exponential with rates μi and θi, , respectively.

We assume that patients may return for an additional service at most once. If their service requirements have not been filled after that, they permanently leave the system. In the context of a hybrid emergency clinic, patients are usually referred to an ED if their health requirements have not been met during the in-person visit. Moreover, patients arriving for their virtual visit whose health condition is critical are referred to the ED. On the other hand, patients arriving for their virtual visit who are mildly ill do not require a supplementary in-person visit. Consequently, we assume that there is no significant difference in terms of health criticality between first and second time (following a virtual visit) in-person patients. This allows us to focus on a profit/cost-effective metric.
Note that we refer to face-to-face patients as ones who do not reenter the system immediately upon service completion. After a while, if such patients require service, we consider them to be new arrivals.
Let and denote the number of class i customers in the system and in the queue, respectively, at time t, . Moreover, we use the notation and . Let denote the number of servers assigned to class i at time t; are the decision variables. A scheduling policy π determines the allocation of servers to customers. We consider Markovian nonanticipating policies; that is, server allocations are made based on the current state only. Under these scheduling policies, is a Markov process. Finally, we also denote by , the cumulative number of class i patients who abandoned the queue by time t.
Each completed service is associated with a profit of ri, . To capture a variety of reimbursement/pricing schemes, we do not impose any restrictions on these profits or their relationship. Each class incurs a holding cost of hi, per patient per unit of time. It makes sense to assume that the holding cost of a face-to-face visit is higher than that of a virtual visit because of the inconvenience and higher exposure to other illnesses prevalent in clinics and waiting rooms. Nevertheless, to keep the analysis as general as possible, we do not impose such a restriction.
Finally, we incur an abandonment cost αi, for each class i patient who abandons the queue while waiting and a return cost for each virtual patient who requires a supplementary in-person service. The aggregated profit up to time T is, therefore,
Equation (1) can then be rewritten as follows:
For simplicity of notation and similar to Hu et al. (2021), we introduce the “generalized” holding costs .
Our goal is, therefore, to find a scheduling policy π that maximizes the total expected long-run average profit, specifically,
The objective function includes an aggregation of the long-run profit from the three classes. In particular, it includes the profit from each completed service minus the holding cost of the waiting patients minus the return penalty γ for each returning patient.
The first constraint states that the total allocated number of servers cannot exceed the total service capacity N. The second constraint implies that the number of servers allocated to class i cannot exceed the number of class i customers.
This profit-maximization problem is an MDP. The curse of dimensionality (Papadimitriou and Tsitsiklis 1999)—a large (infinite) state and policy space—makes it prohibitively hard to solve and characterize the optimal scheduling policy. To gain structural insights into the optimal scheduling policy and capacity allocation, we take a deterministic fluid approach. Fluid models are known to provide good approximation of the first order mean dynamics of stochastic systems and are, thus, useful for a variety of applications related to service operations management (Zychlinski 2022). Such models are usually derived as limits through the functional law of large numbers. In this paper, we apply the conventional heavy traffic regime (Whitt 2002). In this regime, the arrival and service rates are scaled up (this is equivalent to scaling up time), whereas the number of servers is held fixed.
2.1. The Fluid Model
In the fluid model, deterministic continuous rates replace the stochastic processes. We use lowercase xi, qi, and zi, , to denote the fluid content in the system, the queue length, and the service capacity assigned to class i, respectively. The decision variable zi’s can be thought of as the level of service capacity that is allocated to class i. For a given capacity allocation, zi, such that , and , the system dynamics under the fluid model are characterized by the following set of differential equations:
The first equation for the first face-to-face or virtual visit describes the rate of change in the corresponding queue length, which includes the arrival rate minus the departure rate. The latter includes the service completion rate and the abandonment rate from the queue. The second equation is for the supplementary in-person visit that may be needed after the virtual visit. Here, the arrival rate is the departure rate from the virtual service, , multiplied by the return probability. Note that the virtual service is the feeding source of the supplementary visit. That is, if no capacity is allocated to the virtual service, no patients require a supplementary visit.
The fluid analog for the long-run profit-maximization problem is, therefore, the following infinite dimensional linear program:
The first two constraints are derived by imposing , in the first two fluid dynamic constraints in (4) and replacing the functions and by their equilibrium and , respectively. Note that according to the first two constraints, the rate of visit loss is for classes , and for class s.
Rearranging (5), by substituting
The first constraint in (6) states that at most service capacity is needed to handle the face-to-face and virtual customers. The second constraint states that at most service capacity is needed to handle the returning patients.
Note that, when ri = 0, , and ps = 0, we retrieve the indexes according to which the rule prioritizes the classes (Atar et al. 2010). Note also that return probability ps and return penalty γ reduce the virtual customers’ index. That is, as the virtual service becomes less effective (i.e., associated with a higher return probability), the optimal policy tends to utilize the virtual services less. This result is intuitive in the sense that prioritizing virtual patients leads to excessive costs when some of them are returning for supplementary service. In the extreme case in which the return probability and penalty are very high, the optimal decision might be to cancel virtual services at that particular clinic entirely.
In addition to (7), we also introduce the index , which is a weighted average of the and indexes, namely,
Note that, when ps = 0, we have . In Section 3, we see that, in some cases, the scheduling and capacity allocation decisions rely on this integrated index. A further intuition on the integrated index is provided in Remark 1.
Throughout the paper, we make the technical assumption that the indexes are all distinct. That is, for . Nonunique indexes could complicate our analysis in Sections 3 and 5 by adding many more cases to consider.
Finally, we consider an autonomous differential equation:
Suppose there exists an equilibrium point so that . Then, is globally asymptotically stable if, for any initial condition q0, , where is the Euclidean norm.
3. The -Index Policy
Because of the dependency between virtual and returning patients, the optimal solution to (6) is not necessarily to straightforwardly assign larger values of to the ones with the larger index. Before we characterize the optimal solution to (6), we introduce two index-based policies as well as the rule, which combines the two.
(The Naive Rule). Assign priority to class i, , having the higher index.
For the following definition, we combine the virtual and supplementary classes together to form a joint (artificial) class {v, s}, which is associated with the index. In the first step, we set the priority between class f and the joint class {v, s}. Then, in the second step, we set the priority within the joint class (for classes v and s).
(The Two-Step Rule). Assign priority to class i, , with the higher index. Then, within the joint class, assign priority to class i, , with the higher index.
Note that, when ps = 0, both the naive and two-step rules retrieve the rule (Atar et al. 2010).
(The Rule). Case 1: When , prioritize the classes according to the naive rule. Case 2: When , prioritize the classes according to the two-step rule.
Next, we prove that the optimal solution to the fluid optimization problems (6) and (7) is a globally asymptotically stable equilibrium under the index rule. Moreover, we characterize the capacity allocation in equilibrium for each service channel and for different parameter regimes. Theorem 1, which we prove in Appendix A, formalizes this result.
(Globally Asymptotically Stable Equilibria). When following the rule for the system dynamics described in (4) from any initial condition and for , the globally asymptotically stable equilibria, and , are as shown in Table 1.
The equilibrium queue lengths are then given by
Note that, under case 2, so that . This makes sense because, in this case, class s is prioritized over class v. If , we could get an improvement by shifting some capacity from class v to class s. Therefore, in equilibrium, we need to make sure that just enough capacity is allocated to class v to ensure that .
The ’s in Theorem 1 can be interpreted as the long-run capacity allocated to each service channel. Specifically, when , capacity is allocated to each service channel separately according to its index. In this case, returning patients are treated as any other class (except for the fact that the class demand is determined by the capacity allocation to the virtual channel).
When , however, capacity allocation of virtual and returning patients must be coordinated to ensure that enough capacity is allocated to the virtual channel that feeds the supplementary channel. In this case, classes v and s are treated jointly, and the relevant relation then becomes the face-to-face channel versus the joint channel of virtual and supplementary visits.
We are now ready for Theorem 2, which establishes the optimality of the rule for the long-run profit-maximization problem (6). The proof of the theorem, which is provided in Appendix B, is based on Theorem 1 in which we guarantee that the fluid system converges to the equilibrium point under the rule.
(Optimality of the Rule). For the long-run profit maximization problem (6) with , and any initial condition, the rule is optimal.
The suggested rule is an index-based policy; such policies often exhibit many desirable properties, such as being simple to implement and achieving good (if not optimal) performance. Because of the dependency between virtual and returning patients, there is a need to combine the naive and two-step rules. In Section 4, we demonstrate, through extensive numerical experiments, the effectiveness and robustness of the rule. Specifically, we show that the policy performs very close to optimal and much better than other known policies in various settings and under different system loads.
Note that is decreasing in ps, so the switching point between cases 1 and 2 is
Specifically, if , the naive rule is optimal, and if , the two-step rule is optimal. In particular,
When , the two-step rule is optimal for every .
When , the naive rule is optimal for every .
What is the motivation for the joint index ?
Intuitively, when , we tend to prioritize returning patients over virtual ones. Because the latter are the feeding source of the former, enough capacity needs to be allocated to virtual patients to ensure that .
By substituting in the objection function in (6), we get
When the capacity constraint is active (i.e., ), we have
Now, it is clear that capacity needs to be allocated to class f when and jointly to classes v and s, otherwise.
In urgent care centers, which constitute our main motivating application, the queue regime is often not first come, first served (e.g., Hu et al. 2021, Zychlinski et al. 2023) but some other merit that takes into account the severity of patients’ conditions and service time. For example, the supplementary channel might be prioritized over the first time in-person channel if the former has much shorter service times because the patient has already been diagnosed/treated remotely or if the patient’s condition has deteriorated (in our model, this translates into a higher holding cost). Waiting patients might perceive this as being unfair when patients arriving after them start their service before them. To overcome this, when arriving at such centers, patients must usually sign in at a (self-service) registration stand and receive a number. Announcements and display screens in the waiting room show which number should enter each physician office. In this way, the prioritization can be done through the system without being too obvious.
3.1. Optimal System Design
The rule addresses the operational question of how to schedule/prioritize the three classes or whom to admit when a physician becomes available. Additionally, the rule addresses an even more basic question that comes to mind when considering such a hybrid setting; specifically, it focuses on the design question of how to allocate capacity among the three services channels. We find that, in some extreme cases, it is better to utilize only one or two service channels.
Another way of looking at the optimal system design according to the rule is that it chooses which channel(s) to utilize, which channel(s) not to utilize, and at most one channel to partially utilize. Under the naive rule, this intuition is straightforward. Under the two-step rule, this observation is true because of the careful balancing of capacity allocated to the virtual and supplementary channels.
Table 1 describes the optimal long-run capacity allocation to the three service channels. As the need for supplementary service increases (i.e., the return probability increases), the virtual service becomes less effective. This is because many patients’ issues cannot be resolved through the virtual channel. Consequently, more capacity is allocated to the in-person service. Figure 2 illustrates different structures of the optimal capacity allocation as a function of return probability ps. For example, in the left plot, the policy switches from the naive rule (case 1a) to the two-step rule (case 2a) when . Then, at , the policy switches within the two-step index to case 2b, in which the entire service capacity is allocated to the face-to-face channel. Indeed, when the virtual service is less effective, it is better to focus mainly on the face-to-face channel. Note that it is possible to have the same capacity allocation for different cases (see the right plot when switching from case 1b to 1c). Moreover, there could be extreme cases under heavy load when the optimal solution would tend not to utilize one or two service channels. For example, when the virtual service is associated with a very high return rate, it might be best to focus only on the face-to-face channel. Under such heavy loads when not all channels are utilized, it might also be beneficial to optimize staffing levels by considering the trade-off between service completion reward (including abandonment penalty) and staffing costs.
|
Table 1. Globally Asymptotically Stable Equilibria
| Case | |||
|---|---|---|---|
| 1. The naive rule () | |||
| 1a. | |||
| 1b. | |||
| 1c. | |||
| 2. The two-step rule () | |||
| 2a. | |||
| 2b. | |||
Note. .

Notes. In the left plot, for classes : and . In the right plot, and .
3.1.1. Translation of the Optimal Solution Back to the Stochastic System.
In terms of scheduling, the translation relies on the priorities determined by the rule when a service provider becomes available. In Section 4, we provide numerical examples demonstrating that the policy is effective when implemented in the stochastic system. The translation of the long-term capacity allocation is in terms of system design. That is, we determine how much capacity needs to be allocated on average to each service channel. If, for example, the healthcare facility follows a nonsharing policy of physicians to different service channels (e.g., in a certain shift, physicians cannot switch between service channels), then the capacity allocation is the average amount of physicians’ time that needs to be assigned to each service channel.
4. Numerical Experiments
In this section, we examine the performance of the rule in the original stochastic system using simulation. When the number of servers is very small, we can solve the MDP numerically and then compare it to the performance of the rule. We also compare two other well-known policies: the rule (Atar et al. 2010) and the max-weight policy (Stolyar 2004, Dai and Lin 2005). We modify the rule to include the reward from each service completion; specifically, the index of class i is now . We also modify the max-weight policy to include the reward from each service completion and the abandonment rate as follows: at each time t, given X(t) = x and Q(t) = q, the server allocation, , under the max-weight policy is the solution to the following integer programming problem:
We note that the numerical experiments for the stochastic system assume preemption. The fluid analysis, however, applies for both preemptive and nonpreemptive regimes.
Figure 3 presents the ratio between each policy’s long-run average profit and the optimal profit achieved by explicitly solving the MDP. We present the ratios for different values of the return probability ps in four scenarios. We observe that the rule performs very well in all scenarios and for all values of ps. The and the max-weight policy perform reasonably well under small return probability. Their respective performance, however, deteriorates in comparison with the optimal policy as the return probability increases. This deterioration prevails even when there is no penalty associated with patient return (i.e., γ = 0).

Note. for classes : .
Recall that the rule is derived from a fluid approximation model that can arise as a limit through the functional law of large numbers under the conventional heavy traffic regime. We, therefore, wish to examine the policies’ performances under different system loads. To this end, we define the traffic intensity as follows:
Table 2 compares the long-run average profit of the three policies to the optimal profit achieved by solving the MDP. We vary ρ by proportionally scaling up the arrival rates. For each case and policy, we present (in parentheses) the ratio between the policy’s profit and the optimal profit. We observe that the rule performs very well in all cases. The performance under moderate and high traffic intensities, when effective scheduling policies are most needed, is very close to optimal. This is because the rule was derived under conventional heavy traffic, which tends to be more accurate as traffic intensity increases. Moreover, we see that the and max-weight policies perform slightly better than the rule under very low traffic intensity. Under high traffic intensity, however, their performance deteriorates; this deterioration does not happen under the rule, which keeps performing very close to optimal.
|
Table 2. Comparison Between the Long-Run Average Profit Under Different Policies and Traffic Intensities
| Case | Traffic intensity | Long-run average profit | |||||
|---|---|---|---|---|---|---|---|
| MDP | rule | Max-weight | |||||
| N = 1 | 1 | 14.53 | |||||
| 2 | 20.95 | ||||||
| 3 | 29.18 | ||||||
| 4 | 35.64 | ||||||
| 5 | 41.71 | ||||||
| 6 | 1.05 | 40.47 | |||||
| 7 | 33.86 | ||||||
| N = 3 | 8 | 42.35 | |||||
| 9 | 63.25 | ||||||
| 10 | 88.84 | ||||||
| 11 | 109.6 | ||||||
| 12 | 127.9 | ||||||
| 13 | 122.3 | ||||||
| 14 | 101.8 | ||||||
Notes. The numbers in parentheses are the profit ratios between each policy and the optimal one (MDP). The parameters for classes are , and .
Next, we examine the performance of the rule for different system sizes. Figure 4 compares the suggested rule to the rule. Using simulation, we calculate the average capacity allocated to each channel (i.e., the average number of patients in service) and the average profit for each policy. The circles present the optimal allocation and long-run profit according to the fluid solution. The results are presented for different system sizes. As N increases, we scale up the arrival rates proportionally using an appropriate Poisson process. In Example 1, the rule allocation (which coincides with the fluid solution) suggests allocating a similar amount of capacity to each service channel (the capacity ratio is for the face-to-face, virtual, and supplementary channels, respectively). The rule, however, assigns most of the capacity to the supplementary and virtual channels and relatively little capacity to the face-to-face channel (the capacity ratio is ). The rule in this example achieves a 78% higher long-run average profit than the rule. In Example 2, the rule allocation (which, again, coincides with the fluid solution) suggests allocating most of the capacity to the face-to-face channel and the remainder to the virtual and supplementary channels. The rule, however, assigns most of the capacity to the virtual channel and then to the supplementary one. It allocates almost no capacity to the face-to-face channel. In terms of system design, following the rule leads to utilizing only the virtual and supplementary channels and eliminating the face-to-face channel. The rule achieves a 21% higher long-run average profit than the rule. Note that, to facilitate a relatively fair comparison, we do not consider the return penalty in these experiments (i.e., γ = 0).

Notes. The circles represent the optimal fluid solution. In Example 1, the parameters are , and in Example 2, and .
To demonstrate why the naive rule is insufficient, especially in heavily loaded systems, we focus on a setting in which the scheduling according to the rule and the naive rule are different. Specifically, let n = 15, , γ = 0, ; for classes , . In this example, the rule allocates most of the capacity to the supplementary and virtual channels, allocating very little capacity to the face-to-face channel. The naive rule, however, allocates most of the capacity to the face-to-face channel. These two policies lead to a completely different system design. In this case, the long-run average profit under the rule is 700, which is 15.7% higher than the 590 achieved by the naive rule.
We can summarize these examples by first stating that the fluid approximation accurately describes the stochastic system. Second, we see that each policy can lead to a different prioritization and different system design. Third, we observe that the rule achieves higher average profit compared with the other two policies for different system sizes.
4.1. Performance of the Rule Under Transient Profit Maximization
In some settings, there can be random shocks that move the system far from its usual mode of operation. In these cases, improving the transient performance of the system becomes the main goal. That is, we want to find an effective scheduling policy to support demand surges. The COVID-19 pandemic, for example, caused sudden surges in demand on healthcare systems around the world. We consider the objective of maximizing the cumulative expected profit over a finite time horizon T. The fluid equivalent is, therefore,
We observe through numerical experiments that, even when the arrival rate is highly nonstationary, the rule still performs very well in maximizing the transient profit compared with the rule. Figure 5 presents a scenario in which, at time t = 600, both classes experience a quadratic surge in demand that lasts 800 time units. The left plot presents the instantaneous profit as a function of time over the time horizon . The right plot presents the average number of patients in service for each class over the time horizon. During the surge in demand, both the rule and the rule become more extreme in their prioritization: the rule allocates the entire capacity to the face-to-face channel, whereas the allocates the entire capacity to the virtual channel, leaving almost no capacity for returning patients. In terms of the objective function, the rule achieves twice the cumulative profit than the rule. This result demonstrates the robustness of the rule, even in maximizing the transient performance.

Note. The parameters are when , and otherwise, . , when , and otherwise, . and .
5. Model Extensions
We now discuss two model extensions. The first considers multiple face-to-face, virtual, and supplementary classes. The second extension refers to the virtual channel as a teletriage system that classifies patients according to the supplementary service they require (as opposed to a binary decision that we have considered thus far).
5.1. Multiple Classes in Each Service Channel
In this section, we consider a more general setting with kf face-to-face classes of patients and kv (=ks) virtual and supplementary classes as illustrated in Figure 6. The different classes within each channel may represent different severity levels. Specifically, each face-to-face, virtual, and supplementary class is characterized by , and , respectively. In total, the scheduling problem in this case needs to consider classes.

The equivalent problem to (5), for which the optimal equilibrium point would maximize the long-run average profit, is
Rearranging (12) and omitting the constants yields the following:
We also have the equivalent for each virtual/supplementary class:
Proving the optimality of a generalized form of the rule in this setting requires us to follow the line of analysis conducted in Section 3. That is, we must first prove that, under the generalized rule, the fluid approximation converges to an equilibrium point that is a globally asymptotically stable one (a generalization of Theorem 1). Then, we must prove that the optimal solution to (13) and (14) is the globally asymptotically stable equilibrium (a generalization of Theorem 2). Utilizing this approach quickly becomes prohibitively tedious with too many scenarios to consider. We, therefore, provide an algorithm that extends the essence of the rule for setting the prioritization among classes. Note that, for a given set of parameters, this algorithm needs to be run once.
The following algorithm utilizes the sorted set , including the classes’ indexes according to which the priority among classes is set.
(Generalized Rule for Multiple Classes)
Set
For each class i,
If , then
Otherwise,
Sort the set in a decreasing order
Replace the 's in with
Return .
The prioritization of classes is done according to their order in the sorted set . The algorithm shares the same principles as the rule presented in Section 3: if the index of the virtual class is higher than the index of the supplementary class, then the prioritization is set according to the indexes. If, however, the index of the supplementary class is higher than the index of the virtual class, we jointly prioritize the virtual and supplementary classes according to their integrated index.
5.2. A Teletriage System with Multiple Supplementary Services
Thus far, we assume that each virtual service leads to one type of supplementary service. Nevertheless, one common strategy for controlling healthcare needs, called “forward triage,” refers to the online channel as a sorting stage offered to patients. It allows them to be efficiently screened before being referred to a medical center. Respiratory symptoms, which may be early signs of COVID-19, for example, can commonly be evaluated using this approach (Hollander and Carr 2020).
Motivated by such a teletriage setting, we study a model extension in which, based on an initial virtual assessment, patients are classified according to the supplementary service they require. The supplementary services vary in their urgency, length, and/or cost. To this end, we consider ks optional supplementary services for each virtual service. Each supplementary service i occurs with probability , and is associated with a supplementary class that is characterized by as illustrated in Figure 7. The equivalent problem to (5), for which the optimal equilibrium point maximizes the long-run average profit, is

Rearranging (15) yields the following:
We denote the joint virtual/supplementary index for a set of supplementary classes, :
The index is an extension of the index that was used when each virtual service could lead to a single type of supplementary service. The interpretation of the index remains the same: it is the weighted average of the virtual and supplementary indexes. When includes one supplementary service, we retrieve the original .
As stated in Section 5.1, proving the optimality of a generalized form of the rule in this setting requires us to follow the line of analysis conducted in Section 3. Utilizing this approach quickly becomes prohibitively tedious. Therefore, we provide a heuristic algorithm in the spirit of the rule for setting the prioritization among classes. Note that, for a given set of parameters, this algorithm needs to be run once.
The following algorithm uses two sorted sets: and . Set includes the classes’ indexes according to which the priority among classes is set. Set includes the classes for which their index is larger than .
(The Generalized Rule for Multiple Supplementary Services)
Set and
For each class i,
If , then
Otherwise,
Calculate according to (18)
Sort in a decreasing order the set and the set according to the indexes
Replace the index in with the indexes of the classes in
Return .
The prioritization of classes is done according to their order in the sorted set . The ideas behind the algorithm are the same as for the rule presented in Section 3: the supplementary classes whose index is smaller than can be prioritized as any other class. The supplementary classes whose index is larger than need to be considered jointly with the virtual class and the other supplementary classes by using the joint index.
6. Concluding Remarks and Future Directions
Motivated by healthcare provision trends, in this paper, we study the optimal scheduling and capacity allocation for multiserver queues in which patients may return for supplementary service. The main motivating example for this work is a hybrid healthcare setting that provides three service channels: face-to-face, virtual, and in-person supplementary services that some patients require following virtual service. The strong dependency between the virtual and returning patients (i.e., the former constitute the feeding source for the latter) imposes additional constraints when scheduling and allocating capacity. Using a fluid relaxation approach, we derive and prove the optimality of the index rule for maximizing the long-run average profit. From an operational point of view, the rule helps prioritize classes (i.e., which class to admit when a service provider becomes available). From a design perspective, the rule allocates capacity for each service channel. We show that the rule performs very close to optimal and significantly better than other known policies in various settings and under different system loads. Finally, we show that, even though the rule is designed to maximize long-run average profit, it also performs well in a transient time-horizon and nonstationary arrival scenario.
We identify a few interesting future research directions. The first is to consider nonstationary systems with time-varying arrival rates. Indeed, urgent care centers often experience such arrival patterns and peak hours at which the demand is much higher than at other times of the day (Armony et al. 2015). Deriving an effective robust scheduling policy under arbitrary time-varying arrival rates is challenging because the optimal policy may depend on these time-varying arrival rates as well as on the system’s state. Moreover, it is plausible that the arrival rates to the virtual and in-person channels are not synchronized: at some hour during the day, patients may prefer the virtual channel, whereas at other hours, patients may prefer the in-person channel. These patterns, in turn, also affect the supplementary channel.
The second direction is related to improved continuity of care, that is, allowing patients to see the same physician in their virtual visit and supplementary in-person visit when needed. Specifically, there are two types of queues to consider: The first is a joint queue for all physicians and first time visitors. The second type of queue, for second time visitors, is separate for each physician. The queue management and scheduling policy would have to take into account both queue types.
Another interesting direction is to incorporate strategic behavior. On the one hand, the patient chooses which service channel to use: face-to-face or virtual, according to the expected waiting cost and return probability. On the other hand, by considering patients’ behavior, the healthcare provider chooses how to allocate capacity among the three services in order to maximize its profits. Another interesting direction is to focus on reimbursement policies (e.g., fee for service versus bundled payment) for the different service channels. Through these reimbursement policies, virtual services can be encouraged or discouraged in order to optimize system performance and healthcare provision.
The author thanks the editor-in-chief, Shane Henderson, and the anonymous editorial team for their valuable comments and suggestions that helped improve the paper.
Appendix A. Proof of Theorem 1
The proof follows a similar line of arguments for each case in Table 1. Therefore, we only present the proof for case 1a as representative of cases 1b and 1c as part of the naive rule and case 2a as representative of case 2b as part of the two-step rule. Because the rest of the cases follow similarly, we omit them. Our proof, which is based on the construction of a Lyapunov function, resembles the proof of theorem 4 in Hu et al. (2021).
A.1. Case 1a:
In this case, we consider the four subcases described in Table A.1. For each subcase, we prove that the globally asymptotically stable equilibrium is as it appears in the table. In this case, the rule gives strict priority to class v, then to class r, and finally to class f.
Subcase 1a-I. . We consider the Lyapunov function
where the equilibrium point and show its asymptotic stability. To this end, we first verify that and as . Then, we show that for , where as defined in (8).— When , all capacity is allocated to class v. Specifically, the system dynamics in (4) are as follows:
We have
where the inequality comes from the subcase’s condition and the assumption that .— When and , the required capacity for class v is allocated, and any leftover capacity is allocated to class r. The system dynamics are, therefore,
where .We have
where the first inequality comes from the fact that ; the last inequality comes from the subcase’s condition and the assumption that .— When and , the required capacity to class v and then r is allocated; any other left capacity is allocated to class f. The system dynamics are as follows:
here, as before, .We have
If , we have
The first equality comes from the fact that, when , we have This is because , which is equivalent to . The inequality comes from the subcase’s condition and the assumption that .
If , we have
where the inequality come from the subcase’s condition and the assumption that .
Subcase 1a-II. . We consider the Lyapunov function
where the equilibrium point and show its asymptotic stability.— When , and , the system dynamics are as follows:
We have
If , we have
where the first inequality comes from the fact that , and .If , we have
where the inequality comes first from the fact that, when and then from the fact that and .— When , and , because of the absolute value in the Lyapunov function, we get the same as in the previous case only with a negative sign, and therefore,
From here, the proof follows the same line of arguments as in previous case. The other four options for the different relations between and are handled in the exact same way and, therefore, are omitted.
Subcase 1a-III. . We consider the Lyapunov function
where the equilibrium point and show its asymptotic stability.— When , and , the system dynamics are
We, therefore, have
where the inequality comes from the fact that and .— When , and , we get the same as in the previous case with a negative sign, namely,
where the inequality comes from the fact that and . The other four options for the different relations between and are handled in the exact same way and, therefore, are omitted.
Subcase 1a-IV. . We consider the Lyapunov function
where the equilibrium point and show its asymptotic stability. Because the conditions and as can easily be verified, we focus on showing that for .— When and , all capacity is allocated to class v. The system dynamics are, therefore,
we havewhere the inequality comes from the fact that and .— When and , we have
where the inequality comes from the fact that .
|
Table A.1. Globally Asymptotically Stable Equilibria: Case 1a
| Subcase | |||
|---|---|---|---|
| I. | 0 | 0 | 0 |
| II. | 0 | 0 | |
| III. | 0 | ||
| IV. |
Note. .
The other four options for the different relations between and are handled in the exact same way and, therefore, are omitted.
A.2. Case 2a: (Rv < Rs)
In this case, we consider the four subcases described in Table A.2. For each subcase, we prove the globally asymptotically stable equilibrium is as it appears in the table. In this case, the rule gives strict priority to class v, then to class r, and, finally, to class f.
|
Table A.2. Globally Asymptotically Stable Equilibria: Case 2a
| Subcase | |||
|---|---|---|---|
| I. | 0 | 0 | 0 |
| II. | 0 | 0 | |
| III. | 0 |
Next, we construct a Lyapunov function for each case and show the globally asymptotically stability of the equilibrium point. Because the line of arguments is the same for all cases, we provide the proof for case 2a.I and omit the others.
Subcase 2a-I. . We consider the Lyapunov function
where the equilibrium point and show its asymptotic stability.— When and , all capacity is allocated to classes s and v. Specifically, the system dynamics in (4) are as follows:
we havewhere the inequality comes from the subcase’s condition and the assumption that .— When and , the required capacity is allocated to class v and then s is allocated: to class v and ; any leftover capacity is allocated to class f. The system dynamics are, therefore,
We have
where the first inequality comes from the fact that, when , the second inequality comes from the subcase’s condition and the assumption that .
The development for case 2a.II and case 2a.III follows similarly and is, thus, omitted. The Lyapunov functions we use are
Appendix B. Proof of Theorem 2
Recall the long-run profit-maximization problem (6) and (7). Let and denote its solution (i.e., long-run average capacity allocation and corresponding queue length for each class). To prove the optimality of the rule, it suffices to show that and constitute the globally asymptotically stable equilibrium established in Theorem 1. We, therefore, consider the same cases as in Theorem 1 and present the optimal solution and . As before, we present the results for case Ia and cases 2b and omit the other cases that follow the same line of arguments.
|
Table B.1. Optimal Solution: Case 1a
| Subcase | ||
|---|---|---|
| I. | (0, 0, 0) | |
| II. | ||
| III. | ||
| IV. |
|
Table B.2. Optimal Solution: Case 2a
| Subcase | ||
|---|---|---|
| I. | (0, 0, 0) | |
| II. | ||
| III. |
B.1. Case 1a:
We consider the four subcases described in Table B.1. In this case, the rule gives strict priority to class v, then to class r, and, finally, to class f.
Except for subcase I, in which there is enough capacity to serve all customers, the other subcases priorities are class v, then class s, and finally class f. This is in line with the rule prioritization in this case.
B.2. Case 2a: ()
We consider the three subcases described in Table B.2. In the case in which (), the rule prioritizes class s and class v and then class f.
Except for subcase I, in which there is enough capacity to serve all customers, the other subcases allocate capacity to classes v and s, keeping a constant ratio between the capacities. Finally, if some capacity remains, it is allocated to class f. This is in line with the rule in this case (i.e., the two-step rule). Q.E.D.
References
- (2020) Telemedicine takes centre stage during COVID-19 pandemic. BMJ Innovations 6(4):252–254.Google Scholar
- (2015) On patient flow in hospitals: A data-based queueing-science perspective. Stochastic Systems 5(1):146–194.Link, Google Scholar
- (2017) Direct-to-consumer telehealth may increase access to care but does not decrease spending. Health Affairs 36(3):485–491.Google Scholar
- (2010) The cμ/θ rule for many-server queues with abandonment. Oper. Res. 58(5):1427–1439.Link, Google Scholar
- (2004) Scheduling a multi class queue with many exponential servers: Asymptotic optimality in heavy traffic. Ann. Appl. Probab. 14(3):1084–1134.Google Scholar
- (2018) The impact of e-visits on visit frequencies and patient health: Evidence from primary care. Management Sci. 64(12):5461–5480.Link, Google Scholar
- (2021) Customizing primary care delivery using e-visits. Production Oper. Management 30(11):4306–4327.Google Scholar
- (2020) Use of telemedicine and virtual care for remote treatment in response to COVID-19 pandemic. J. Medical Systems 44(7):1–9.Google Scholar
- (2021) On the role of teletriage in healthcare demand management. Manufacturing Service Oper. Management 23(6):1483–1504.Link, Google Scholar
- (2020) Novel coronavirus (COVID-19): Leveraging telemedicine to optimize care while minimizing exposures and viral transmission. J. Emergencies Trauma Shock 13(1):20–24.Google Scholar
- (1961) Queues (Methuen, London).Google Scholar
- (2005) Maximum pressure policies in stochastic processing networks. Oper. Res. 53(2):197–218.Link, Google Scholar
- (2020) Keep calm and log on: Telemedicine for COVID-19 pandemic response. J. Hospital Medicine 15(5):302–304.Google Scholar
- (2004) Dynamic scheduling of a multiclass queue in the Halfin-Whitt heavy traffic regime. Oper. Res. 52(2):243–257.Link, Google Scholar
- (2020) Virtually perfect? Telemedicine for COVID-19. New England J. Medicine 382(18):1679–1681.Google Scholar
- (2021) Optimal scheduling of proactive service with customer deterioration and improvement. Management Sci. 68(4):2533–2578.Link, Google Scholar
- (2015) Control of patient flow in emergency departments, or multiclass queues with deadlines and feedback. Oper. Res. 63(4):892–908.Link, Google Scholar
- (2020) Usefulness of an online preliminary questionnaire under the COVID-19 pandemic. J. Medical Systems 44(7):1–2.Google Scholar
- (2020) Role of telemedicine in healthcare during COVID-19 pandemic in developing countries. TelehealthMedicine Today 5(2):1–5.Google Scholar
- (2020) Dynamic scheduling of multiclass many-server queues with abandonment: The generalized cμ/h rule. Oper. Res. 68(4):1218–1230.Link, Google Scholar
- (2004) Scheduling flexible servers with convex delay costs: Heavy-traffic optimality of the generalized cμ-rule. Oper. Res. 52(6):836–855.Link, Google Scholar
- (2015) Effectiveness and safety of acute care telemedicine for children with regular and special healthcare needs. Telemedicine J. E-Health 21(8):611–621.Google Scholar
- (2020) The role of telehealth during COVID-19 outbreak: A systematic review based on current evidence. BMC Public Health 20(1):1–9.Google Scholar
- (2021) Digital health & low-value care. Healthcare 9(2):100533.Google Scholar
- (1999) The complexity of optimal queuing network control. Math. Oper. Res. 24(2):293–305.Link, Google Scholar
- (2019) Scheduling an overloaded multiclass many-server queue with impatient customers. INFORMS TutORials in Operations Research, 189–217.Google Scholar
- (2019) Service systems with heterogeneous customers: Investigating the effect of telemedicine on chronic care. Management Sci. 65(3):1236–1267.Link, Google Scholar
- (2018) Quality of care for acute respiratory infections during direct-to-consumer telemedicine visits for adults. Health Affairs 37(12):2014–2023.Google Scholar
- (2004) Maxweight scheduling in a generalized switch: State space collapse and workload minimization in heavy traffic. Ann. Appl. Probab. 14(1):1–53.Google Scholar
- (2016) Effect of teledermatology on access to dermatology care among Medicaid enrollees. JAMA Dermatology 152(8):905–912.Google Scholar
- (1995) Dynamic scheduling with convex delay costs: The generalized cμ rule. Ann. Appl. Probab. 5(3):809–833.Google Scholar
- (2002)
The space D . Stochastic-Process Limits: An Introduction to Stochastic-Process Limits and Their Application to Queues, Springer Series in Operations Research and Financial Engineering (Springer, New York), 391–426.Google Scholar - (2021) Telehealth demand trends during the COVID-19 pandemic in the top 50 most affected countries: Infodemiological evaluation. JMIR Public Health Surveillance 7(2):e24445.Google Scholar
- (2022) Applications of fluid models in service operations management. Queueing Systems 1–25. https://link.springer.com/article/10.1007/s11134-022-09868-2.Google Scholar
- (2020) Scheduling queues with simultaneous and heterogeneous requirements from multiple types of servers. Bae KH, Feng B, Kim S, Lazarova-Molnar S, Zheng Z, Roeder T, Thiesing R, eds. 2020 Winter Simulation Conf. (IEEE, Piscataway, NJ), 2365–2376.Google Scholar
- (2023) Managing queues with different resource requirements. Oper. Res. 71(4):1387–1413.Link, Google Scholar

