# The *G*_{t}/*GI*/*s*_{t}+*GI* many-server fluid queue

- First Online:

- Received:
- Revised:

DOI: 10.1007/s11134-012-9291-0

- Cite this article as:
- Liu, Y. & Whitt, W. Queueing Syst (2012) 71: 405. doi:10.1007/s11134-012-9291-0

- 20 Citations
- 767 Downloads

## Abstract

This paper introduces a deterministic fluid model that approximates the many-server *G*_{t}/*GI*/*s*_{t}+*GI* queueing model, and determines the time-dependent performance functions. The fluid model has time-varying arrival rate and service capacity, abandonment from queue, and non-exponential service and patience distributions. Two key assumptions are that: (i) the system alternates between overloaded and underloaded intervals, and (ii) the functions specifying the fluid model are suitably smooth. An algorithm is developed to calculate all performance functions. It involves the iterative solution of a fixed-point equation for the time-varying rate that fluid enters service and the solution of an ordinary differential equation for the time-varying head-of-line waiting time, during each overloaded interval.

Simulations are conducted to confirm that the algorithm and the approximation are effective.

### Keywords

Queues with time-varying arrivals Nonstationary queues Transient behavior Many-server queues Deterministic fluid model Customer abandonment Non-Markovian queues### Mathematics Subject Classification

60K25 90K22## 1 Introduction

Motivated by the need for tools to improve the performance of large-scale service systems, such as customer contact centers and healthcare systems, we introduce and analyze a deterministic fluid model that serves as an approximation for the many-server *G*_{t}/*GI*/*s*_{t}+*GI* queueing model, which has customer abandonment (the+*GI*), time-varying arrival rate and staffing (the subscript *t*), unlimited waiting space, the first-come first-served service discipline and non-exponential service and patience distributions (the two *GI*’s); see [3, 38] and references therein for background on contact centers and healthcare systems, respectively. Abandonment is now recognized as an important feature, for example, see [13, 39]. Non-exponential service and patience distributions often do arise [8] and these features can strongly affect performance.

The analysis here applies to a system that alternates between overloaded (OL) and underloaded (UL) intervals. With time-varying arrival rates, such alternating behavior commonly occurs when it is difficult to dynamically adjust the staffing level in response to changes in demand. If the staffing cannot be changed rapidly enough, then system managers must choose fixed or nearly fixed staffing levels that respond to several levels of demand over a time interval. Then it may not be cost-effective to staff at a consistently high level in order to avoid overloading at any time. Then the fluid model introduced here may capture the essential performance.

Most queueing models are stochastic, because a primary cause of congestion is random fluctuation in arrivals and service. Deterministic fluid models can be useful when the systematic variation in the arrival rate and/or staffing dominates the stochastic variation in the arrivals and service, or at least is an important contributing factor. There is an established tradition of considering fluid models in queueing theory [15, 30]. The present paper directly extends [37], which developed a deterministic fluid model to approximate the steady-state performance of a stationary *G*/*GI*/*s*+*GI* queueing model. The accuracy of fluid models for capacity planning has been strongly supported by [5]. A novel feature here and in [37], compared to most fluid models, is that we consider a non-Markovian many-server fluid model, which involves two-parameter functions; e.g., the queue content at time *t* that has been in queue for a *duration* at most *y*, denoted by *Q*(*t*,*y*), as a function of both *t* and *y*; see (2). The abandonment rate function and service completion rate function are driven by patience and service hazard-rate functions; see (7) and (9).

Our main goal here is to contribute to the techniques for analyzing service systems with the important and realistic feature of time-varying arrivals and staffing; see [14] for background. By focusing on the time-varying fluid model, we extend important work by Mandelbaum, Massey and Reiman [27], which established many-server heavy-traffic fluid and diffusion limits for the time-varying Markovian *M*_{t}/*M*_{t}/*s*_{t}+*M*_{t} queueing model, and thus associated approximations; see also [28, 29]. We make a significant step beyond [27, 28, 29] by considering non-exponential service and patience distributions as well as time-varying arrival rates and staffing.

Just as in [27, 28, 29], the approximations here are intended for systems with many servers and high arrival rate, so that mathematical support can be provided by many-server heavy-traffic limits. For the stationary Markovian *M*/*M*/*s*+*M* model, such limits are established in [13]; for stationary non-Markovian models, such limits are established in [18, 19]. A limit for a discrete-time model with time-varying arrival rates is given in Sect. 6 of [37]. However, here we do *not* establish stochastic-process limits. Instead, we are directly concerned with the fluid model itself. It is important to recognize that the fluid model can be considered directly as a legitimate model in its own right. By focusing on a continuous divisible quantity, which we call “fluid,” our fluid model is a special case of a storage or dam model, as in [32].

Even though we do not establish stochastic-process limits here, the results here play an important role in subsequent papers [22, 23] in which we do establish such many-server heavy-traffic limits. The paper [22] establishes both a functional weak law of large numbers (FWLLN), showing convergence to the fluid model considered here, and a functional central limit theorem (FCLT), providing mathematical support for a refined Gaussian approximation, in the case of exponential service. The paper [23] establishes a FWLLN for the more general case of *GI* service. The proofs of the FWLLN’s (Theorem 4.1 in [22]) use the compactness approach, proving that the sequence is tight and that all convergent subsequences converge to the same limit. Theorem 3 here plays an important role in uniquely characterizing the limit of all convergent subsequences; see Sect. 6.6.2 of [22] for that part of the proof. The results in [22, 23] also rely heavily on recent heavy-traffic limits for infinite-server queues in [31]. The connection to infinite-server queues plays a critical role here as well; see Sects. 4, 5 and 7.1.

This paper makes important contributions even for the stationary *G*/*GI*/*s*+*GI* fluid model introduced in [37]. Here we provide for the first time a full description of the transient behavior. The fundamental evolution equations, in (5) here, are the same as in (2.14) and (2.15) of [37], but the time-dependent performance when the system is overloaded actually depends on three features introduced for the first time here. First, for non-exponential service, the time-varying rate that fluid enters service is characterized as the unique solution to a fixed-point equation; see (18) and Theorem 2. Second, the head-of-line waiting time is characterized here as the solution of an ordinary differential equation (ODE); see Theorem 3. Third, the potential waiting time, i.e., the virtual waiting time of an arrival at time *t* if that arrival would elect never to abandon, is characterized as the unique solution of an equation involving the head-of-line waiting time or by yet another ODE; see Theorems 5 and 6. To the best of our knowledge, none of this structure has been exposed previously.

There is an important modeling issue when we consider time-varying staffing. We need to carefully specify what happens when the service capacity is scheduled to decrease when all servers are busy. Do we require that customers in service stay in service with the same server until their service is complete? (Our analysis here applies to the case in which we allow the service in progress to be handed off to another available server.) Even with such server-assignment switching, there are issues: Do we alter the prescribed staffing function to avoid forcing a customer out of service? If we adhere to the given staffing function, as assumed here, then some customers are necessarily forced out of service in the stochastic system. (That can be prevented in the idealistic deterministic fluid model; see Assumption 4 and Sect. 9.) In the stochastic system, when customers are forced out of service, which customers are forced out and what happens to them? Are these customers forced out of the system entirely? If so, is there service complete or do they retry? If customers are pushed back into the queue (as implicitly assumed in [27]), then where do they go in the queue, and what is their new abandonment behavior? Under regularity conditions, these realistic features will be asymptotically negligible in a many-server heavy-traffic limit, but these new considerations complicate the proof.

For the fluid model we directly assume feasibility of the staffing function, but in Sect. 9 we show how to detect the first violation of feasibility of a staffing function and how to find the minimum feasible staffing function greater than or equal to the initial staffing function if that one is infeasible. In Sect. 10 we show how to construct a staffing function to stabilize delays at any fixed target value, contributing to prior work in [12, 17].

The results have significant relevance for applications. First, service systems typically have arrival rates that vary significantly over time, and the results dramatically reveal the consequence, e.g., showing how the peak congestion lags behind the peak arrival rate, as discussed for the *M*_{t}/*GI*/*∞* stochastic model in [10, 11]. Second, service systems often do have non-exponential service and patience distributions [8], and the results dramatically reveal the consequence. From [25, 36, 37, 39], we know that the patience distribution beyond its mean has a significant impact. However, [36, 37] show that the steady-state performance in the stationary *G*/*GI*/*s*+*GI* model is relatively insensitive to the service-time cdf beyond its mean. In contrast, here we show that the service distribution beyond its mean can have a dramatic impact as well for the transient performance; see Sect. 2. Finally, the results in this paper have already been applied in [16] to create new effective real-time delay predictors for arriving customers in a service system with time-varying arrivals.

### Here is how this paper is organized

We start in Sect. 2 by discussing an example, showing the results of the algorithm and how they compare to simulations of queueing systems. Next in Sect. 3 we carefully define the *G*_{t}/*GI*/*s*_{t}+*GI* fluid model and specify key regularity conditions. In Sect. 4 we state important scale-proportionality results, which provide important simplification for UL intervals. In Sect. 5 we characterize performance during a UL interval.

In Sect. 6 we characterize the service content density during an OL interval. Sections 6.1 and 6.2 are devoted to the special case of *M* service and non-*M* service, respectively. An explicit formula is available for *M* service; an iterative algorithm is developed for other cases. In Sect. 7 we characterize the queue performance functions. In Sect. 8 we summarize the resulting algorithm.

In Sect. 9 we show how to detect the first violation of feasibility of a staffing function and how to find the minimum feasible staffing function greater than or equal to any candidate one. In Sect. 10 we show how to construct a staffing function to stabilize delays at any fixed target value, In Sect. 11 we provide three postponed longer proofs, the proofs of Theorems 3, 5 and 6. Finally, in Sect. 12 we draw conclusions. Additional supporting material, including results of simulations, appears in a long appendix available online [24].

## 2 An example

*M*

_{t}/

*H*

_{2}/

*s*+

*E*

_{2}fluid model with a sinusoidal arrival-rate function:

*λ*(

*t*)=1+0.6sin(

*t*), mean service time 1/

*μ*=1, mean patience 1/

*θ*=1, and fixed service capacity

*s*=1. (We consider other examples in [24].) Specifically, we let the service distribution be a two-phase hyperexponential (

*H*

_{2}) with probability density function (pdf) with parameters \(p=0.5(1-\sqrt{0.6})\),

*μ*

_{1}=2

*pμ*and

*μ*

_{2}=2(1−

*p*)

*μ*, which produces squared coefficient of variation (variance divided by the square of the mean)

*c*

^{2}=4. We let the patience distribution be Erlang-2 (

*E*

_{2}) with pdf The

*E*

_{2}distribution has

*c*

^{2}=1/2.

*n*servers will have arrival-rate function

*λ*

_{n}(

*t*)=

*nλ*(

*t*),

*s*

_{n}=

*ns*servers and the same service and patience distributions. Figure 1 shows plots of several key performance functions for 0≤

*t*≤

*T*≡17, starting out empty, together with the specified arrival rate

*λ*(

*t*): the head-of-line waiting time

*w*(

*t*), the fluid content in queue

*Q*(

*t*), the fluid content in service

*B*(

*t*), the total fluid content in system

*X*(

*t*)≡

*Q*(

*t*)+

*B*(

*t*), and the rate fluid enters service

*b*(

*t*,0). All performance functions are continuous except for the rate-into-service function

*b*(

*t*,0). In underloaded intervals,

*b*(

*t*,0)=

*λ*(

*t*); in overloaded intervals,

*b*(

*t*,0) is the unique solution of the fixed-point equation (18).

*M*

_{t}/

*H*

_{2}/

*s*+

*E*

_{2}queueing system with 2000 servers in Fig. 2. In the plot, the queueing content processes are scaled by dividing by

*n*=2000, so that

*s*remains at 1. For the actual queueing system, the quantities

*λ*(

*t*),

*Q*(

*t*),

*B*(

*t*),

*X*(

*t*) and

*b*(

*t*,0) should all be multiplied by

*n*=2000.

Figure 2 actually shows three plots. It also shows the fluid approximation for the corresponding *M*_{t}/*M*/*s*+*E*_{2} model, having exponential service times with the same mean. For that alternative model, there is a more elementary algorithm, because it is not necessary to solve the fixed-point equation for *b*(*t*,0) in order to calculate *b*(*t*,*x*). Figure 2 shows two things: First, it shows that the simulation sample path for the *M*_{t}/*H*_{2}/*s*+*E*_{2} model agrees closely with the fluid performance. Second, Fig. 2 shows that the service distribution can make a big difference in the time-dependent performance. The performance of the fluid model changes significantly when we change the service distribution from *H*_{2} to *M* (with the same mean); e.g., look at *Q*(*t*) at time *t*=3. (We do not show a simulation path for the *M*_{t}/*M*/*s*+*E*_{2} model, but it agrees closely with its fluid model for *n*=2000. See [24].)

The impact of the service distribution may be surprising, because a major conclusion of [36, 37] was that the steady-state performance is relatively insensitive to the service distribution beyond its mean. However, there is precedent for this phenomenon: In [9] we showed that the performance in the time-varying *M*_{t}/*GI*/*s*/0 loss model depends quite strongly on the service distribution beyond its mean, even though the steady-state distribution of the stationary *M*/*GI*/*s*/0 loss model has the well known insensitivity property, concluding that the standard steady-state performance measures do not depend at all on the service distribution beyond its mean.

Figure 2 suggests that the periodic models approach a periodic steady state as time evolves; that is proved for the fluid model with *M* service in [21]. (We conjecture that is also true with *GI* service under minimal regularity conditions, but it has not yet been proved.) Figure 2 also shows that the impact of the service cdf *G* beyond its mean evidently is far greater at the beginning when the system is starting up, and then dissipates considerably as the system approaches its periodic steady state. That is consistent with intuition, because with *H*_{2} service, there will be more very short service times and unusually long service times than would be the case of the exponential distribution. Hence, at the beginning starting empty, there are no old customers with long service times to compensate for many new customers with short service times in the *H*_{2} case. As a consequence, the initial queue content is much less with *H*_{2} than with *M* service. However, more supporting theory is needed.

*n*=2000 we considered. It is thus important that the fluid approximation can still be useful with fewer servers. With fewer servers, the stochastic fluctuations in the queueing stochastic processes play an important role. In that case, the fluid model can still be very useful by providing a good approximation for the

*mean values*of the queueing stochastic processes. That is illustrated from the plot of the average of the scaled performance measures of 200 independent sample paths when there are only 30 servers in Fig. 3. We also consider the case

*n*=15 in [24].

Work is in progress to investigate approximations for the full distributions at each time *t*, based on the new limits in [22]. A simple rough approximation for the distribution of *X*(*t*) based on the approximation for the mean here is a normal distribution with variance equal to the determined mean; that is consistent with the exact Poisson distribution with the *M*_{t}/*GI*/*∞* model (and thus the stochastically equivalent *M*_{t}/*M*/*s*_{t}+*M* model with *θ*=*μ*).

## 3 The fluid model

In this section we define the deterministic *G*_{t}/*GI*/*s*_{t}+*GI* fluid model and specify important regularity conditions. There is a service facility with finite capacity (staffing function) *s*≡{*s*(*t*):*t*≥0} that is set exogenously and enforced. There also is waiting space with unlimited capacity. There is a deterministic arrival process, with input directly entering the service facility if there is space available; otherwise the input flows into the waiting room. Fluid may leave the service facility only by completing service. However, fluid may leave the queue either by entering service or abandoning (leaving directly from the queue without receiving service). These flows are deterministic as well. The total input of fluid over the interval [0,*t*] is \(\varLambda (t) \equiv\int_{0}^{t} \lambda(u)\,du\), *t*≥0. We will be working with the time-dependent arrival-rate function *λ*≡{*λ*(*t*):*t*≥0}.

*G*and

*F*, respectively, with pdf’s

*g*and

*f*, satisfying

*x*. We assume that the mean service time is 1; that choice is without loss of generality, because we can measure time in units of mean service times. In the fluid model, the cdf’s act as

*proportions*. A proportion

*G*(

*x*) of any quantity of fluid completes service and departs within time

*x*of the time it starts service; a proportion

*F*(

*x*) of any quantity of fluid abandons and departs without receiving service within time

*x*of the time it arrives, provided that it has remained waiting in queue, and has not already been admitted to service.

*B*(

*t*,

*y*) and

*Q*(

*t*,

*y*):

*B*(

*t*,

*y*) is the quantity of fluid in service at time

*t*that has been in service for time less than or equal to

*y*;

*Q*(

*t*,

*y*) is the quantity of fluid waiting in queue at time

*t*that has been in queue for time less than or equal to

*y*. These functions will admit representations

*b*and

*q*are non-negative integrable functions. (See Proposition 2 in Sect. 5, Corollary 1 in Sect. 6.2, Proposition 6 in Sect. 7.1 and Corollary 5 in Sect. 7.2.)

Let *Q*(*t*)≡*Q*(*t*,*∞*) be the total fluid content in queue at time *t*, and let *B*(*t*)≡*B*(*t*,*∞*) be the total fluid content in service at time *t*. Let *X*(*t*)≡*B*(*t*)+*Q*(*t*) be the total fluid content in the system at time *t*.

To fully specify the model, we also need to specify the initial conditions, describing the system state at time 0. The initial conditions are specified by the two functions *B*(0,*y*) and *Q*(0,*y*), which are defined as above, and also satisfy (2) with densities *b*(0,*x*) and *q*(0,*x*). Thus, the *G*_{t}/*GI*/*s*_{t}+*GI* fluid *model data* consists of the six-tuple of functions (*λ*,*s*,*F*,*G*,*b*(0,⋅),*q*(0,⋅)).

We make several assumptions. The first is on the initial conditions.

### Assumption 1

(Finite initial content)

*B*(0)<*∞* and *Q*(0)<*∞*.

We develop a “smooth” model. For that purpose, let ℂ_{p} be the set of *piecewise-continuous* real-valued functions, by which we mean that the function has only finitely many discontinuities in any finite interval, with left and right limits at each discontinuity point (within the interval); moreover, we assume that the function is right-continuous. Hence, \(\mathbb {C}_{p} \subseteq \mathbb {D}\), where \(\mathbb {D}\) is the space of right-continuous functions with left limits.

### Assumption 2

(Smoothness)

*s*,*Λ*,*F*,*G*,*B*(0,⋅),*Q*(0,⋅) are differentiable functions with derivatives *s*′,*λ*,*f*,*g*,*b*(0,⋅),*q*(0,⋅) in ℂ_{p}.

As a consequence of Assumption 2, *Λ*(*t*)<*∞* for all *t*>0. (We use the fact that \(\mathbb {C}_{p} \subset \mathbb {D}\) here to deduce that *λ* is bounded over finite intervals; see p. 122 of [7]; that implies that *Λ*(*t*)<*∞*.) Together with Assumption 1, that implies that the finite-content property in Assumption 1 holds for all *t*: *B*(*t*)≤*B*(0)+*Λ*(*t*)<*∞* and *Q*(*t*)≤*Q*(0)+*Λ*(*t*)<*∞* for all *t*≥0.

Whenever *Q*(*t*)>0, we require there is no free capacity in service, i.e., *B*(*t*)=*s*(*t*). Also, whenever *B*(*t*)<*s*(*t*), then the queue is empty. These conditions are summarized in

### Assumption 3

(Fluid dynamics constraints, FDC’s)

*t*≥0,

In general, there is no guarantee that a staffing function *s* is feasible; i.e., having the property that the staffing function is set exogenously and adhered to, without forcing any fluid that has entered service to leave without completing service, because we allow *s* to decrease. (The fluid is assumed to be incompressible.) We directly assume that the staffing function we consider is feasible, but we also indicate how to detect the first violation and then construct the minimum feasible staffing function greater than or equal to the given staffing function; see Sect. 9.

### Assumption 4

(Feasible staffing)

The staffing function *s* is feasible, allowing all fluid that enters service to stay in service until service is completed; i.e., when *s* decreases, it never forces content out of service.

We now consider the service discipline. We let the service discipline in the fluid model be first-come first-served (FCFS). We remark that there is much less motivation for considering other service disciplines, such as processor-sharing, with many servers than with few servers, because a few long service times can only make those few (of many) servers unavailable to other customers.

### Assumption 5

(FCFS service)

Fluid enters service in order of arrival.

*t*there will be a boundary of the queue length density, which we call the boundary waiting time (BWT),

*w*(

*t*)≥0 and, second,

*w*(

*t*)>0 if and only if

*Q*(

*t*)>0. (Equation (4) is informal, because it is circular, with

*w*depending on

*q*, while

*q*depends on

*w*. We will carefully define and characterize the BWT

*w*in Sect. 7.)

Based on the way the queueing system operates, we assume that *q* and *b* satisfy the following two fundamental evolution equations. Because of Assumption 5, fluid enters service from the queue from the right boundary of *q*(*t*,*x*).

The first equation in (5) says that the fluid in service that is not served remains in service (which requires that the staffing function be feasible, as in Assumption 4). The second equation in (5) says that the fluid waiting in queue that does not abandon and does not move into service, remains in queue.

Let *v*(*t*) be the potential waiting time (PWT) at *t*, i.e., the virtual waiting time at *t* for an arriving quantum of fluid that has unlimited patience. The virtual waiting time at time *t* is the actual waiting time if there is positive input at time *t*; otherwise it is the waiting time of hypothetical input if it were to occur at time *t*. In order to simplify the analysis of the two waiting time functions *w* and *v*, we make extra assumptions: These extra assumptions will be introduced in Sects. 7.2 and 7.3.

*A*(

*t*) be the total quantity of fluid to abandon in [0,

*t*]; let

*E*(

*t*) be the total quantity of fluid to enter service in [0,

*t*]; and let

*S*(

*t*) be the total quantity of fluid to complete service in [0,

*t*]. Clearly we have the basic flow conservation equations

*G*

_{t}/

*GI*/

*s*

_{t}+

*GI*fluid model (with the exception of (

*w*,

*q*,

*v*), for which more is given in Sect. 7; Fig. 4 provides a pictorial summary. Our goal now is to fully characterize the six-tuple (

*b*,

*q*,

*w*,

*v*,

*σ*,

*α*) given the model parameters (

*λ*,

*s*,

*G*,

*F*) and the initial conditions {(

*b*(0,

*x*),

*q*(0,

*x*)):

*x*≥0}, where

*q*(0,

*x*)>0 only if

*Q*(0)>0, which in turn, by Assumption 3, can hold only if

*B*(0)=

*s*(0).

*overloaded interval*starts at a time

*t*

_{1}with (i)

*Q*(

*t*

_{1})>0 or (ii)

*Q*(

*t*

_{1})=0,

*B*(

*t*

_{1})=

*s*(

*t*

_{1}) and

*λ*(

*t*

_{1})>

*s*′(

*t*

_{1})+

*σ*(

*t*

_{1}), and ends at the

*overload termination time*

*Q*(

*t*

_{1})=0 and

*B*(

*t*

_{1})=

*s*(

*t*

_{1}) is often regarded as critically loaded, but because the arrival rate

*λ*(

*t*

_{1}) exceeds the rate that new service capacity becomes available,

*s*′(

*t*

_{1})+

*σ*(

*t*

_{1}), we must have the right limit

*Q*(

*t*

_{1}+)>0, so that there exists

*ϵ*>0 such that

*Q*(

*u*)>0 for all

*u*∈(

*t*

_{1},

*t*

_{1}+

*ϵ*). Hence, we necessarily have

*T*

_{1}>

*t*

_{1}.

*underloaded interval*starts at a time

*t*

_{2}with (i)

*B*(

*t*

_{2})<

*s*(

*t*

_{2}) or (ii)

*B*(

*t*

_{2})=

*s*(

*t*

_{2}),

*Q*(

*t*

_{2})=0, and

*λ*(

*t*

_{2})≤

*s*′(

*t*

_{2})+

*σ*(

*t*

_{2}), and ends at

*underload termination time*

*Q*(

*t*

_{2})=0 and

*B*(

*t*

_{2})=

*s*(

*t*

_{1}) is often regarded as critically loaded, but because the arrival rate

*λ*(

*t*

_{2}) does not exceed the rate that new service capacity becomes available,

*s*′(

*t*

_{2})+

*σ*(

*t*

_{2}), we must have the right limit

*Q*(

*t*

_{2}+)=0. The underloaded interval may contain subintervals that are conventionally regarded as critically loaded; i.e., we may have

*Q*(

*t*)=0,

*B*(

*t*)=

*s*(

*t*) and

*λ*(

*t*)=

*s*′(

*t*)+

*σ*(

*t*). For the fluid models, such critically loaded subintervals can be treated the same as underloaded subintervals. However, unlike an overloaded interval, we cannot conclude that we necessarily have

*T*

_{2}>

*t*

_{2}for an underloaded interval. Moreover, even if

*T*

_{2}>

*t*

_{2}for each underloaded interval, we could have infinitely many switches in a finite interval. We directly assume that those pathological situations do not occur.

### Assumption 7

(Finitely many switches between intervals in finite time)

Each underloaded interval is of positive length, so that the positive half line [0,*∞*) can be partitioned into overloaded and underloaded intervals. Moreover, there are only finitely many switches between overloaded and underloaded intervals in each finite interval.

For engineering applications, Assumption 7 is reasonable, but it is unappealing mathematically. We would like to have natural conditions on the model parameters under which the conclusion does hold. For the special case of *M* service and for the extension to time-varying Markovian service (*M*_{t}), we provide sufficient conditions for Assumption 7 to be satisfied in [20]. From a practical perspective, Assumption 7 provides no restriction, because we can discover violations when calculating the performance descriptions, and remove any violation that we discover by negligibly modifying either the arrival-rate function *λ* or the staffing function *s* in a neighborhood of the problem time *t* to remove the problem. That is most easily done with the arrival-rate function *λ*, because we only require that it be piecewise-continuous. For *t* in a short interval [*a*,*b*], we can replace *λ*(*t*) by *λ*(*t*)±*ϵ*. This will introduce new discontinuity points at the end points *a* and *b* (if they were not already discontinuity points), but that leaves *λ*∈ℂ_{p}.

All assumptions above are in force throughout this paper. We will introduce additional regularity assumptions as needed, starting in Sect. 6. We now determine the performance, first considering an underloaded interval.

## 4 Scale proportionality

To treat an underloaded interval in the next section, we will exploit an important scale-proportionality property of the *M*_{t}/*GI*/*∞* stochastic queueing model; see Remark 5 of [10]. For each *c*>0, let *B*_{c}(*t*,*y*) be the number of customers in service in the *M*_{t}/*GI*/*∞* stochastic model at time *t* that have been so for a duration at most *y* when the system starts empty at time 0 and the arrival-rate function is *λ*_{c}(*t*)≡*cλ*(*t*), for some given arrival-rate function *λ* and service cdf. The following is proved like Theorem 1 of [10], using the two-parameter framework, as in [31].

### Proposition 1

(Scale proportionality in the *M*_{t}/*GI*/*∞* stochastic model)

*For all*

*c*>0,

*B*

_{c}(

*t*,

*y*)

*has a Poisson distribution with mean*

*c*

^{−1}

*B*

_{c}(

*t*,

*y*)→

*m*

_{1}(

*t*,

*y*) as

*c*→

*∞*for each

*t*and

*y*. In addition, we have the more general FWLLN in [31, 33], which implies that

*c*

^{−1}

*B*

_{c}(

*t*,

*y*)→

*m*

_{1}(

*t*,

*y*), regarded as functions of

*t*and

*y*. Hence, the mean function

*m*

_{1}(

*t*,

*y*) in the

*M*

_{t}/

*GI*/

*∞*stochastic queueing model directly coincides with the limit of the scaled process; i.e.,

*B*(

*t*,

*y*) is the fluid content in service at time

*t*that have been so for a duration at most

*y*in the

*M*

_{t}/

*GI*/

*∞*fluid model. Thus, aside from scale, the mean

*m*

_{c}(

*t*,

*y*)≡

*E*[

*B*

_{c}(

*t*,

*y*)] in the

*M*

_{t}/

*GI*/

*∞*stochastic model coincides with the corresponding fluid content in the deterministic fluid model.

Moreover, the conclusions above extend to the more general *G*_{t}/*GI*/*∞* models. First, the mean function in (12) above in the *G*_{t}/*GI*/*∞* stochastic model actually coincides with the mean function in the *M*_{t}/*GI*/*∞* stochastic model, provided that the arrival-rate function is the same; this observation is made in Remark 2.3 of [26]. Second, the FWLLN in [31, 33] actually holds for the *G*_{t}/*GI*/*∞* stochastic model, provided that the arrival process satisfies a FWLLN. To summarize, the mean function in the *M*_{t}/*GI*/*∞* stochastic model coincides with the fluid content in the corresponding *G*_{t}/*GI*/*∞* fluid model, assuming appropriate scale.

This scale proportionality in the infinite-server stochastic model actually extends to the more general *G*_{t}/*GI*/*s*_{t}+*GI* fluid model. The following scale-proportionality result is a consequence of the results in this paper.

### Theorem 1

(Scale proportionality in the *G*_{t}/*GI*/*s*_{t}+*GI* fluid model)

*If the vector*(

*b*

_{c}(

*t*,

*x*),

*q*

_{c}(

*t*,

*x*),

*w*

_{c}(

*t*),

*v*

_{c}(

*t*),

*α*

_{c}(

*t*),

*σ*

_{c}(

*t*))

*is the performance at time*

*t*

*associated with model data*(

*cλ*,

*cs*,

*F*,

*G*,

*cb*(0,⋅),

*cq*(0,⋅)),

*then*

## 5 An underloaded interval

We will consider the system over successive intervals, during each of which it is either underloaded or overloaded, as defined in Sect. 3. We start with the easier case, in which the system is underloaded. Without loss of generality, we assume that an underloaded interval starts at time 0 and terminates at a time *T*, defined in (11). We do not need to know in advance the termination time *T*. Instead, we can assume that the system is underloaded over the full interval [0,*∞*) and then calculate *T*.

If the *G*_{t}/*GI*/*s*_{t}+*GI* fluid model is underloaded, then there is no queue, and so no abandonment. Then the model is equivalent to the associated *G*_{t}/*GI*/*∞* fluid model.

### Proposition 2

(Service content in an underloaded interval)

*For the fluid model with unlimited service capacity*(

*s*(

*t*)≡

*∞*

*for all*

*t*≥0),

*the integral representation in*(2)

*is valid for*

*B*

*and*

*b*,

*with*

*If*,

*instead*,

*a finite*-

*capacity system starts underloaded*,

*then the same formulas apply over the interval*[0,

*T*),

*where the underload termination time is*

*T*≡inf{

*t*≥0:

*B*(

*t*)>

*s*(

*t*)},

*with*

*T*=

*∞*

*if the infimum is never obtained*.

*Hence*,

*b*(

*t*,⋅),

*b*(⋅,

*x*)∈ℂ

_{p}

*for all*

*t*≥0

*and*

*x*≥0,

*for*

*t*

*in the underloaded interval*.

### Proof

The first term in the expression for *B*(*t*,*y*) in (13) represents the content due to new input; it follows from Sect. 4. The second term represents the content to old content still in service; it follows from Assumption 6, along with Assumption 2. It is evident that, for each *t*, *B*(*t*,*y*) is differentiable in *y* for all *y* except *y*=*t*. Thus, for each *t*≥0, *B*(*t*,*y*) is absolutely continuous as a function of *y* and has the density *b*(*t*,*x*) displayed above. In addition, by Assumption 2, *b*(*t*,⋅),*b*(⋅,*x*)∈ℂ_{p} for all *t*≥0 and *x*≥0. □

During an underloaded interval, *b*(*t*,*x*) depends upon the pair (*λ*,*G*) and the initial condition *b*(0,*x*). There is no queue, so (*q*,*F*,*w*,*v*) play no role. The different roles of the two regimes are summarized in Fig. 4. Hence, Proposition 2 fully describes the performance during underloaded intervals. The final piecewise-continuity conclusion ensures that the piecewise-continuity property assumed for *b*(0,⋅) will pass on to subsequent intervals when we consider successive intervals.

### Remark 1

(Discontinuity at *t*=*x*)

From (13), we see that *b* inherits the smoothness of *G*, *λ* and *q*(0,⋅) except when *t*=*x*. That will be a persistent theme throughout our analysis. For general initial conditions, this discontinuity is fundamental, so we cannot expect greater smoothness. However, away from the set {(*t*,*x*):*t*=*x*}, we can expect smoothness of the model parameters to be reflected in our performance descriptions.

### Remark 2

(The generic scalar transport PDE)

*λ*and

*b*(0,⋅) are differentiable a.e. with respect to Lebesgue measure on [0,

*∞*), then, for each

*t*and

*x*,

*b*(

*t*,

*x*) has first partial derivatives with respect to

*t*and

*x*a.e. with respect to Lebesgue measure on [0,

*∞*). Moreover,

*b*satisfies the following PDE a.e. with respect to Lebesgue measure on [0,

*∞*)×[0,

*∞*), a simple version of the generic scalar transport equation:

*b*(

*t*,0)=

*λ*(

*t*):

*t*≥0} and {

*b*(0,

*x*):

*x*≥0}; see [24].

*x*≥0, for cdf’s satisfying the assumptions in Sect. 3. It is easy to see that hazard-rate order implies ordinary stochastic order via the representation

### Proposition 3

(Comparison result for *b* in an underloaded model)

*Consider two underloaded fluid models*. *If**λ*_{1}≤*λ*_{2}, *b*_{1}(0,⋅)≤*b*_{2}(0,⋅) *and*\(h_{G_{1}} \ge h_{G_{2}}\)*as functions*, *then**b*_{1}≤*b*_{2}, *i*.*e*., *b*_{1}(*t*,*x*)≤*b*_{2}(*t*,*x*) *for all**t*≥0 *and**x*≥0, *and**T*_{1}≤*T*_{2}, *where**T*_{i}*is the underload termination time in model**i*.

### Proof

The system could be in an underloaded period for an extended period of time. If so, it is often convenient to consider the system starting empty in the distant past. (That is done for the corresponding infinite-server queueing models in [10, 26].) That allows us to directly construct stationary versions, including periodic versions, if that is warranted.

### Proposition 4

(Starting empty in the distant past)

*Suppose the system started empty in the distant past*(

*at*

*t*=−

*∞*)

*and has been underloaded up to time*

*t*.

*If*\(\int_{0}^{\infty} \bar{G} (x)\lambda(t-x) \, dx, < \infty\),

*then*

*for*

*x*≥0

*and*

*y*≥0.

*If the arrival*-

*rate function*

*λ*

*is constant or periodic*,

*then so are*

*b*(

*t*,⋅),

*B*(

*t*)

*and*

*B*(

*t*,⋅).

As noted above, the expression for *B*(*t*) coincides with the mean number of busy servers in the *M*_{t}/*GI*/*∞* model studied in [10, 26]; see these sources for additional structural results. The expressions for the two-parameter function *B*(*t*,*y*) and *b*(*t*,*x*) coincide with the corresponding mean values in [31].

## 6 The service content density in an overloaded interval

Without loss of generality, we assume that the overloaded interval begins at time 0 and ends at time *T* satisfying (10). Again, we do not need to know the end time *T* in advance, because we can calculate it while we are calculating the performance measures *q* and *w*. We proceed under the assumption that the arrival rate is sufficiently large that the system is overloaded throughout a specified interval [0,*T*) (up to, but not including, time *T*), and afterwards detect violations before time *T*, if there are any, and then reduce the interval, if necessary.

### 6.1 The special case of *M* service

*b*(

*t*,

*x*) during the overloaded interval: where

*b*(0,

*x*−

*t*) is part of the initial conditions, but where

*b*(

*t*−

*x*,0) remains to be specified.

Since the service is exponential, the output rate, *σ*(*t*), and thus the rate fluid enters service, *b*(*t*,0), depend only on the staffing function *s*, in particular, on the values *s*(*t*) and *s*′(*t*). (Recall that the mean service time has been fixed at 1.)

### Proposition 5

(The service content in an overloaded interval)

*The departure*(

*service completion*)

*rate satisfies*

*σ*(

*t*)=

*B*(

*t*),

*t*≥0,

*and*,

*during each overloaded interval*,

*the departure rate*

*σ*(

*t*)

*and rate fluid enters service*

*b*(

*t*,0)

*have the simple form*

*depending only on the staffing function*

*s*.

*Then*

*b*

*is fully characterized by*(15)

*and*(16)

*during an overloaded interval*.

*Also*

*b*(

*t*,⋅),

*b*(⋅,

*x*)∈ℂ

_{p}

*for all*

*x*,

*t*<

*T*.

### Proof

Apply (9). □

### 6.2 General *GI* service

*b*(

*t*,0), which is part of what we are trying to determine. Since the system is assumed to be overloaded over an initial interval [0,

*T*), the rate into service is determined by the rate service capacity becomes available. Thus, by (9), we have

*b*(

*t*,0):

*t*by

*s*):

*b*(

*t*,0) can be effectively computed by numerical transform inversion, e.g., using the Fourier-series method in [1, 2]; see especially Sect. 13 of [1]. However, this requires computation of the transforms \(\mathcal {L}(\hat{a})(s)\) and \(\mathcal {L}(g) (s)\) for the required arguments

*s*. Since only a few arguments

*s*are required, this approach is feasible, but somewhat cumbersome.

*b*(

*t*,0) is a fixed point of the operator \(\mathcal {T}: \mathbb {D}\rightarrow \mathbb {D}\), where

*T*], i.e.,

We will require an additional bound on the tail of the initial service content density *b*(0,⋅). Recall that we have assumed that \(\bar{G} (x) > 0\) for all *x*.

### Assumption 8

(Tail of *b*(0,⋅))

*b*(0,⋅) is bounded relative to the service-time pdf

*g*via

Assumption 8 warrants discussion, because it is unappealing. At first glance, it passes the requirement that the assumptions be on the model data, because the service density *g*, the associated cdf *G* and the initial fluid content in service *b*(0,⋅) are all part of the model data. However, in application we will be applying the algorithm recursively over several UL and OL intervals. We would thus not know in advance the function *b*(0,⋅) in all OL intervals after an initial one. It is thus important that we provide readily available sufficient conditions for Assumption 8 to hold; we do that after we state the theorem. For now, we point out that there is a simple practical condition implying Assumption 8 to hold: It suffices for the service hazard-rate function *h*_{G} to be bounded. (See below.)

### Theorem 2

(Service content in the overloaded case)

*Consider an overloaded interval*[0,

*T*].

*If Assumption*8

*holds*,

*then the operator*\(\mathcal {T}\)

*in*(22)

*is a monotone contraction operator on*\(\mathbb {D}\)

*with contraction modulus*

*G*(

*T*)

*for the norm*∥⋅∥

_{T}

*defined in*(23),

*so that a finite function*

*b*(

*t*,0)

*is uniquely characterized via equation*(18).

*Hence*,

*for any*\(u \in \mathbb {D}\),

*the fixed point can be approximated by the*

*n*-

*fold iteration*\(\mathcal {T}^{(n)}\)

*of the operator*\(\mathcal {T}\)

*applied to*

*u*,

*with*

*and*,

*if*\(u \le(\ge)\mathcal {T}(u)\),

*then*\(\mathcal {T}^{(n-1)} (u) \le(\ge) \mathcal {T}^{(n)} (u) \le(\ge) \hat{b}\)

*for all*

*n*≥1.

### Proof

### Remark 3

(Weakening the condition on G)

Note that we require *G*(*T*)<1 in the proof of Theorem 2, which holds because we have assumed that \(\bar{G}(x) >0\) for all *x*. However, that requirement is actually not necessary, because we can always work in an interval [0,*δ*] as long as *G*(*δ*)<1 for some *δ*>0. We can show the uniqueness of *b*(⋅,0) for all 0≤*t*≤*T* by recursively considering successive intervals of length *δ*.

We can deduce from Theorem 2 that an analog of Proposition 2 holds in OL intervals.

### Corollary 1

(The integral representation (2) in an OL interval)

*The integral representation in *(2) *is valid in OL intervals as well as in UL intervals*.

*h*

_{G}to be bounded. But even that is often not necessary in practice. It is important to note that Assumption 8 is always satisfied in a case of principal interest: if there exists

*y*

_{0}such that

*b*(0,

*y*)=0 for all

*y*≥

*y*

_{0}. That case occurs whenever the system started empty at some (finite) time in the past. That case occurs if the overloaded interval of interest begins at time

*t*, 0≤

*t*<

*T*, after the system has begun empty with

*b*(0,

*y*)≡0 for all

*y*; then necessarily

*b*(

*t*,

*y*)=0 for all

*y*>

*t*, by virtue of Assumption 6. Then

*x*

^{↑}(

*t*)≡sup{

*x*(

*s*):0≤

*s*≤

*t*}.

Nevertheless, other initial conditions are interesting. For example, for the stationary model, we might start with the stationary fluid content, which has the form we have \(b(0,y) = \bar{G}(y)\), *y*≥0, because \(\bar{G}\) is the stationary-excess or equilibrium-residual-lifetime density of the service-time distribution; see [37]. Thus we now present other sufficient conditions for Assumption 8.

### Remark 4

(Sufficient conditions for the bound when *B*(*t*)−*B*(0,*y*)>0 for all *y*)

*b*(0,

*y*) and/or the service pdf

*g*(

*y*) in order for Assumption 8 to hold. An easy sufficient condition directly related to the stationary fluid content density for the stationary model is that there exist a constant

*K*such that \(b(0,y) \le K\bar{G} (y)\) for all

*y*≥0. Another easy sufficient condition for the bound in Assumption 8 is that we should have

- (i)$$\sup_{x \ge0}{\bigl\{h_G (x)\bigr\}} < \infty\quad\bigl(\mbox{bounded hazard rate, using } B(0) < \infty\bigr);$$
- (ii)there exist
*β*>0 and*K*such that$$\int_{0}^{\infty} b(0,y) e^{\beta y} \, dy <\infty\quad \mbox{and}\quad h_G(x) \le K e^\beta x \quad \mbox{for all } x\ge0;$$ - (iii)

So far, we can only conclude that the function \(b(t,0) \in \mathbb {D}\). We can obtain additional smoothness properties by imposing additional smoothness conditions on the model elements *s* and *g*. We use these properties for *b*(⋅,0) to establish properties of the ODE to calculate the BWT *w* in Sect. 4 of [20].

### Corollary 2

(Smoothness of service content in the overloaded case)

*If**s*′ *and**g**are continuous*, *then**b*(⋅,0) *is continuous as well*. *In that case*, *b*(⋅,*x*) *and**b*(*t*,*x*) *are elements of* ℂ_{p}*for each**x*≥0 *and**t*≥0.

### Proof

Under the extra smoothness conditions, we can apply the contraction fixed-point theorem on the closed subspace ℂ of continuous functions in \(\mathbb {D}\), with the same uniform norm. Then the fixed point *b*(*t*,0) is necessarily in ℂ as well, from which we deduce that *b*(⋅,*x*) and *b*(*t*,*x*) are elements of ℂ_{p} for each *x*≥0 and *t*≥0. □

We discuss alternative algorithms to calculate *b* in Appendix C in [24].

## 7 The queue performance functions

We now turn to the queue during an overload interval. To do so, it is convenient to initially ignore the flow into service.

### 7.1 The queue content ignoring flow into service

*q*(

*t*,

*x*) during the overload interval [0,

*T*) under the assumption that no fluid enters service from queue. We can once again invoke the connection to the

*M*

_{t}/

*GI*/

*∞*stochastic model, discussed in Sect. 4 to treat \(\tilde{q} (t,x)\) just as we treated

*b*in Sect. 5, because we can let the general patience cdf

*F*play the role of the general service-time cdf

*G*. Instead of (5), we can write

*B*.

### Proposition 6

(Queue content without transfer into service in the overloaded case)

*In the overloaded case*,

*the integral representation in*(2)

*is valid for*\(\tilde{Q}\)

*and*\(\tilde{q}\),

*with*

### Remark 5

Just as we observed for *b* in an underloaded interval in Remark 2, in an overloaded interval \(\tilde{q}\) satisfies a version of the generic scalar transport PDE.

Paralleling Proposition 3, we have the following comparison result, proved in the same way.

### Proposition 7

(Comparison result for \(\tilde{q}\))

*Consider two overloaded fluid models*. *If**λ*_{1}≤*λ*_{2}, *q*_{1}(0,⋅)≤*q*_{2}(0,⋅) *and*\(h_{F_{1}} \ge h_{F_{2}}\)*as functions*, *then*\(\tilde{q}_{1} \le\tilde{q}_{2}\), *i*.*e*., \(\tilde{q}_{1} (t, x) \le \tilde{q}_{2} (t,x)\)*for all**t*≥0 *and**x*≥0.

We now derive *q* and *w*. The proper definition and characterization of the BWT *w* is somewhat complicated. We easily get an expression for *q* provided that we can find *w*.

### Corollary 3

(From \(\tilde{q}\) to *q*)

### Proof

Combine Proposition 6 and (29) to deduce that *q*(*t*,⋅)∈ℂ_{p} for all *t*, *x*. □

### 7.2 The boundary waiting time *w*

*w*. We can

*define*the BWT

*w*by exploiting flow conservation, in particular, by exploiting the fact that two expressions for the amount of fluid to enter service over any interval [

*t*,

*t*+

*δ*] coincide; i.e.,

*x*=

*w*(

*t*)−

*ϵ*(

*t*,

*δ*) and ending at

*x*=

*w*(

*t*), during the time interval [

*t*,

*t*+

*δ*] (where

*ϵ*(

*t*,

*δ*) is yet to be determined) and

*A*(

*t*,

*t*+

*δ*) is the amount of the fluid content in

*I*that abandons in the interval [

*t*,

*t*+

*δ*]. We

*define*the BWT

*w*by letting

*δ*↓0 in (30). We will show in Theorem 3 below that, under regularity conditions, the relation in (30) determines an ODE for

*w*that has a unique solution. Hence, we will show that the relation (30) serves to properly define

*w*and characterize it.

We need two more regularity conditions. First, we assume that the initial value *w*(0) for the interval we consider is finite. We will be representing *w* as the solution of an initial value problem involving an ODE, so this is needed.

### Assumption 9

(Finite initial BWT)

0≤*w*(0)<*∞*.

Second, we require that the functions *λ*(*t*) and *q*(0,*x*) be appropriately bounded away from 0.

By (28) for \(\tilde{q}\), Assumption 10 for *λ* implies that \(\tilde{q} (t, x) > \epsilon\bar{F} (x) > 0\) on [0,*T*) for some positive *ϵ*. That is useful because \(\tilde{q} (t, x)\) appears in the denominator in an expression for the derivative of *w* in (32) below. The BWT *w* can be discontinuous if these functions are 0 over subintervals; we give examples in Appendix E of [24]. We show that *w* can be discontinuous if *λ*(*t*)=0 or *q*(0,⋅)=0 over a subinterval, while *w* can have an infinite derivative corresponding to zeros of these functions. However, we obtain the following positive result, proved in Sect. 11. Let *x*(*t*+) and *x*(*t*−) denote the right and left limits of a function *x* at *t*, respectively. We can obtain a more elementary statement and proof if we assume even more regularity conditions; see Appendix D in [24].

### Theorem 3

(The BWT ODE)

*Consider an overloaded interval*[0,

*T*).

*If Assumptions*9

*–*10

*hold*,

*then the BWT*

*w*

*is well defined being the unique solution of the initial value problem*(

*IVP*)

*on*[0,

*T*)

*based on the ODE*

*and any initial value*

*w*(0).

*In addition*,

*w*

*is Lipschitz continuous on*[0,

*T*]

*with*

*w*(

*t*+

*u*)≤

*w*(

*t*)+

*u*

*for all*

*t*≥0

*and*

*u*≥0

*with*

*t*+

*u*≤

*T*.

*Moreover*,

*w*

*is right differentiable everywhere with right derivative*

*w*′(

*t*+)

*given in*(32)

*and left differentiable everywhere*(

*but not necessarily differentiable*)

*with value*

*Overall*,

*w*

*is continuously differentiable everywhere except for finitely many*

*t*.

### Remark 6

(Different roles of *b*(*t*,0) and *F* in shaping *q*)

Our use of \(\tilde{q}\) as an intermediate step in constructing *q* helps show the different roles played by *b*(*t*,0) and *F* in producing *q*. First, the abandonment (*F*) controls the shape of \(\tilde{q}(t,x)\) and thus *q*(*t*,*x*) only for *x*<*w*(*t*). Second, the transportation rate *b*(*t*,0) controls only *w*(*t*), the right boundary or the truncation of \(\tilde{q}(t,x)\) on *x*; it does not affect \(\tilde{q}(t,x)\) itself, and thus *q*(*t*,*x*) for any 0≤*x*<*w*(*t*).

We give closed-form formulas for some special cases in the next corollary, proved in Appendix D of [24].

### Corollary 4

*Suppose the system is overloaded for*0≤

*t*<

*T*

*and*

*w*(0)=0.

- (a)
*For the**G*_{t}/*M*/*s*_{t}*fluid model without customer abandonment*(\(\bar{F}(x)=1\)*for**x*≥0),*for**Λ*^{−1}(*x*)≡inf{*y*>0:*Λ*(*y*)=*x*},*and*\(\bar{t} \equiv \inf\{t>0:\varLambda (t)=\int_{0}^{t}b(y,0)\,dy\}\). - (b)
*For the**G*_{t}/*M*/*s*_{t}+*M**fluid model*,*where the abandonment*-*time cdf is exponential*\((\bar{F}(x)=e^{-\theta x}\),*x*≥0),*where*\(\tilde{\varLambda }(t)\equiv\int_{0}^{t}\lambda(y)e^{\theta y}\,dy\), \(\tilde{\varLambda }^{-1}(x)\equiv\inf\{y>0:\tilde{\varLambda }(y)=x\}\),*and*\(\tilde{t}\equiv \inf\{t>0:\tilde{\varLambda }(t)=\int_{t_{1}}^{t}b(y,0)e^{\theta y}\,dy\}\).

We conclude this section by combining Proposition 6, Corollary 3 and Theorem 3 to deduce that the integral representation in (2) is valid for *Q* as well as *B* and \(\tilde{Q}\).

### Corollary 5

(Integral representation for *Q*)

*In the overloaded case*, *the integral representation in *(2) *is valid for**Q**and**q*, *with**w**in Theorem *3 *and**q**in Corollary *3.

### 7.3 The potential waiting time

In the previous subsection, we characterized the dynamics of the BWT *w*. Now we want to connect *w* to the PWT *v*, the waiting time of an arriving quantum of fluid at time *t* that is infinitely patient.

*v*can be defined as a first passage time, with abandonment after time

*t*computed with the input turned off; also see [34]. Let

*A*

_{t}(

*u*) be the total fluid abandoning in the interval [

*t*,

*t*+

*u*] in our fluid model, modified by having the input shut off after time

*t*. Paralleling (7),

*α*

_{t}(

*s*) is the abandonment rate of the fluid that arrives before time

*t*, at time

*s*.

*v*(

*t*) as

*E*(

*t*) is the amount of fluid to enter service in the interval [0,

*t*], as in (8), i.e., \(E(t) \equiv\int_{0}^{t} b(u,0) \, du\),

*t*≥0. However, in general, so far, we have not assumed enough to guarantee that the PWT

*v*is finite. It is possible for fluid to arrive and never be served; we need to rule that out.

First, we show that any initial fluid content in the system eventually must leave. Let *B*_{0}(*t*) be the portion of the initial fluid content in service, *B*(0), that is still in service at time *t*; let *Q*_{0}(*t*) be the portion of the initial fluid content in queue, *Q*(0), that is still in queue at time *t*.

### Proof

The representation is immediate. It is elementary that *B*_{0}(*t*)≤*B*(0) and \(\tilde{Q}_{0} (t) \le\tilde{Q}(0) = Q(0)\). By Assumption 1, *B*(0)<*∞* and *Q*(0)<*∞*. The convergence then follows from the Lebesgue dominated convergence theorem. □

However, the queue will not dissipate in finite time by abandonment alone, because \(\bar{F} (x) > 0\) for all *x*≥0. Hence we need to have fluid enter service from the queue. Even if we invoke Assumption 9, and have *w*(0)<*∞*, so that we have *w*(*t*)≤*w*(0)+*t*<*∞* for all *t*≥0, we cannot guarantee that *v*(0)<*∞*. Indeed, we would have *v*(*t*)=*∞* for all *t*≥0 if no fluid from queue were ever admitted into service. That in turn would be the case if we used the feasible staffing function *s*(*t*)≡*B*_{0}(*t*), which is positive for all *t* when *B*(0)>0, because \(\bar{G} (x) >0\) for all *x*≥0. In order to avoid such problems, we introduce two more regularity conditions:

### Assumption 11

(Minimum staffing level)

There exists a constant *s*_{L} such that *s*(*t*)≥*s*_{L}>0 for all *t*≥0.

### Assumption 12

(Minimum service hazard rate)] There exists a constant *h*_{G,L} such that *h*_{G}(*x*)≥*h*_{G,L}>0 for all *x*≥0.

### Theorem 4

(Finite PWT)

*Under Assumptions*11

*and*12,

*the rate of service completion is bounded below*:

*σ*(

*t*)≥

*s*

_{L}

*h*

_{G,L}

*for all*

*t*≥0.

*As a consequence*,

We give the proof in Appendix D of [24]. Given that the PWT *v* is indeed bounded above as in Theorem 4, we can obtain it from our algorithm for *w*. The idea is simple: If, at time *t*, the elapsed waiting time of the quantum of fluid that is entering service is *w*(*t*), then this quantum of fluid arrived in queue *w*(*t*) units of time ago. That implies that the PWT at *t*−*w*(*t*) is *w*(*t*). We prove the following in Sect. 11.

### Theorem 5

(The PWT *v* and the BWT *w*)

*Consider an overloaded interval with Assumptions*9

*–*10

*holding and*

*w*(0)=0.

*If*

*v*(

*t*)<

*∞*

*for all*

*t*≥0 (

*for which Assumption*11

*is a sufficient condition*,

*by Theorem*4),

*then*

*v*

*is the unique function in*\(\mathbb {D}\)

*satisfying the equation*

*as depicted in Fig*. 5.

*Moreover*,

*v*

*is discontinuous at*

*t*

*if and only if there exists*

*ϵ*>0

*such that*

*w*(

*t*+

*v*(

*t*)+

*ϵ*)=

*w*(

*t*+

*v*(

*t*))+

*ϵ*,

*which in turn holds if and only if*

*b*(

*u*,0)=0

*for*

*t*+

*v*(

*t*)≤

*u*≤

*t*+

*v*(

*t*)+

*ϵ*.

*If*

*b*(⋅,0)>0

*a*.

*e*.

*with respect to Lebesgue measure*,

*then*

*v*

*is continuous*.

The proof of Theorem 5 directly gives an algorithm to compute the PWT *v* given the BWT *w*. Similarly, the second equation in (37) can provide an algorithm to construct *w* given *v*. We now provide an alternative characterization of *v* via its own ODE, but this alternative characterization involves an extra condition. We give the proof in Sect. 11.

### Theorem 6

(Right derivative and ODE for *v*)

*Under the conditions in Theorem*5,

*the right derivative of*

*v*

*always exists*(

*except possibly infinite*),

*with value*

*The right derivative at*

*t*

*is finite if and only if*

*b*(

*t*+

*v*(

*t*),0)>0.

*If*

*t*

*is a continuity point of*

*v*,

*then the left derivative exists as well*,

*with*

*If*

*Φ*

*is continuous at*

*t*,

*then*

*v*

*is differentiable at*

*t*,

*and*

*v*

*satisfies the first ODE*.

*If*,

*in addition*,

*b*(

*t*,0)>0

*for all*

*t*,

*then*

*v*

*is continuous*.

*Then*

*v*

*is differentiable except at only finitely many*

*t*,

*and there exists a unique solution to the first ODE*.

### Remark 7

(Algorithm for *v* and *w*)

In an algorithm, it is convenient to avoid the complications for *w* and *v* that occur when *b*(*t*,0)=0. To do so, we can introduce an *ϵ*-approximation, letting *b*_{ϵ}(*t*,0)≡*b*(*t*,0)+*ϵ*, 0≤*t*≤*T*, only to be used in the calculation of *w* and *v*. Let *w*_{ϵ} be *w* and *v*_{ϵ} be *v* with *b*(*t*,0) replaced by *b*_{ϵ}(*t*,0). Since \(w' \ge w_{\epsilon}'\) and \(v' \ge v_{\epsilon}'\), we have *w*_{ϵ}↑*w* and *v*_{ϵ}↑*v* as *ϵ*↓0.

*b*(

*t*,0) directly in our model by imposing a constraint on our staffing. We could require that

*b*(

*t*,0)≥

*b*

^{∗}>0 for all

*t*in order for the staffing function

*s*to be feasible. Since

*b*(

*t*,0)=

*s*′(

*t*)+

*σ*(

*t*), that translates into the staffing constraint

In Appendix D of [24] we give closed-form formulas for the PWT *v* in some special cases, paralleling those for the BWT *w* given in Corollary 4.

## 8 Overview of the total algorithm

We now summarize the full algorithm for the *G*_{t}/*GI*/*s*_{t}+*GI* fluid model. We alternately consider successive underloaded and overloaded intervals (under the assumption that any finite interval can be partitioned into finitely many of these, which can be verified in the computation). For each underloaded interval, we start with initial conditions as indicated in Sect. 3. We can compute the single key performance measure *b* directly by applying Proposition 2. We then end the underloaded interval the first time *B*(*t*) exceeds *s*(*t*). Since the queue is empty, the functions *q*, *w* and *v* do not appear.

### 8.1 An overloaded interval with *M* service

An overloaded interval is more complicated. There are two cases: (i) *M* service and (ii) non-*M**GI* service. For *M* service, we do not need to solve the fixed-point equation (18) for the rate fluid enters service from the queue, *b*(*t*,0). With *M* service (at rate 1), we know that *b*(*t*,0)=*s*′(*t*)+*s*(*t*), by Proposition 5. The algorithm starts with initial conditions as in Sect. 3. The algorithm begins by calculating \(\tilde{q}\) via Proposition 6 and *b* and *b*(*t*,0) via Proposition 5. We then calculate *w* by solving the ODE (32) and then the function *v* (37), as explained in the proof of Theorem 5. We consider terminating the overloaded interval the first time that *w*(*t*)=0. At that time we check to see if the interval actually remains overloaded, by looking at the net flow rate into the queue *r*(*t*)≡*λ*(*t*)−*s*′(*t*)−*σ*(*t*) (see (10)). If *r*(*t*)>0, then we continue the overloaded interval. Otherwise, we shift to the next underloaded interval. We present additional details about the algorithm for *M* service in Appendix G of [24].

### 8.2 An overloaded interval with *GI* service

With non-*M* service, we need to solve the fixed-point equation (18) for the rate fluid enters service from the queue, *b*(*t*,0), in addition to the other steps with *M* service. We now formally state the algorithm to compute all performance functions in an overloaded interval of the *G*_{t}/*GI*/*s*_{t}+*GI* fluid model. Consider an interval [0,*T*] and assume that the system is overloaded at *t*=0, i.e., *Q*(0)>0 and *B*(0)=*s*(0). However, we typically do not know when the overloaded interval ends in advance. The objective is to determine the overload termination time *T*_{1} defined in (10) with *t*_{1}=0 along with the other performance functions. Hence, we determine *q*(*t*,⋅) and *b*(*t*,⋅) for 0≤*t*≤*T*∧*T*_{1}. If *T*_{1}<*T*, the system simply switches to an underloaded interval; otherwise, the system stays overloaded in [0,*T*].

*F*,

*G*,

*λ*(

*t*) and

*s*(

*t*) for 0≤

*t*≤

*T*and initial condition

*q*(0,⋅),

*b*(0,⋅) and

*w*(0). We require that these conditions satisfy (i) \(s(0)=B(0)=\int_{0}^{\infty}b(0,y)\,dy\) and (ii) \(Q(0)=\int_{0}^{w(0)}q(0,y)\,dy>0\). Applying the fixed-point operator discussed in Sect. 6, we have the following algorithm:

- 1.
*u*^{(0)}(*t*)←0, \(a(t)\leftarrow s'(t) +\int_{0}^{\infty}b(0,y)\frac{g(t+y)}{\bar{G}(y)}\,dy\),*i*←1 - 2.
\(u^{(i)}(t)\leftarrow a(t) + \int_{0}^{t}u^{(i-1)}(y)g(t-y)\,dy\) for 0≤

*t*≤*T* - 3.
If ∥

*u*^{(i)}−*u*^{(i−1)}∥_{T}>*ϵ*, then*i*←*i*+1 and go to Step 2; otherwise*b*(*t*,0)←*u*^{(i)}(*t*) for 0≤*t*≤*T* - 4.
Solve the BWT ODE and determine

*T*_{1} - 5.
Compute

*b*(*t*,*x*) using (15) for 0≤*t*≤*T*∧*T*_{1}. End

Note that *ϵ* is the (small positive) error threshold level that we specify in advance. Here we let the contraction iteration in Step 2 end when the uniform distance between the *u* functions in two consecutive iterations is small.

The algorithm above requires that the given staffing function *s* be feasible. However, we can also easily modify the algorithm so that infeasibility can be detected. That extension is discussed in Appendix G of [24]. With the algorithm above, we will see that *s* is infeasible (if it is) in Step 4 by observing that *b*(*t*,0)≤0 for some 0≤*t*≤*T*; see the next section.

## 9 Feasibility of the staffing function

*s*is feasible, yielding

*t*≥0 such that

*B*(

*t*)=

*s*(

*t*). This requirement is automatically satisfied in underloaded intervals when

*B*(

*t*)=

*s*(

*t*), because in that case we require that

*s*′(

*t*)+

*σ*(

*t*)≥

*λ*(

*t*) where necessarily

*λ*(

*t*)≥0. Feasibility is only a concern during overloaded intervals, and then only when the staffing function is decreasing, i.e., when

*s*′(

*t*)<0.

*t*

^{∗}be the time of first violation. Let

*I*

_{n}be the

*n*th overloaded subinterval in [0,

*∞*) determined under the assumption that the original staffing function

*s*is feasible. Let

*I*be the union of these subintervals, i.e., the subset of [0,

*∞*) during which the system is overloaded. Then

*t*

^{∗}<

*∞*(violation). Thus, we compute

*b*and detect the first violation.

Correcting the staffing function is not difficult either (by which we mean replacing it with a higher feasible staffing function): We simply construct a new staffing function *s*^{∗} consistent with turning off the input into the queue (setting *b*(*t*,0)=0) starting at time *t*^{∗} and lasting until the first time *t* after *t*^{∗} at which *s*^{∗}(*t*)=*s*(*t*). (By the adjustment, we will have made *s*^{∗}(*t*^{∗}+)>*s*(*t*^{∗}+).) Since the system has operated differently during the time interval [*t*^{∗},*t*], we must recalculate all the performance measures after time *t*, but we have now determined a feasible staffing function up to time *t*>*t*^{∗}. By successive applications of this correction method (adjusting the staffing function *s* and recalculating *b*), we can construct the minimum feasible staffing function overall.

*t*],

*t*>

*t*

^{∗}, that coincide with

*s*over [0,

*t*

^{∗}]; i.e., with \(\mathbb {C}^{2}_{p} (t)\) denoting the set of twice differentiable positive real-valued functions on [0,

*t*] with second derivatives in ℂ

_{p}, let for

*t*

^{∗}in (40), where \(b_{\tilde{s}}\) is the function

*b*associated with the model with staffing function \(\tilde{s}\).

### Theorem 7

(Minimum feasible staffing function)

*Assume that*\(s \in \mathbb {C}^{2}_{p}\)

*and*\(b_{\tilde{s}}(\cdot,0)\)

*exists and is continuous for each*\(\tilde{s} \in \mathcal {S}_{f,s} (t))\).

*Then there exist*

*δ*>0

*and*\(s^{*} \in \mathcal {S}_{f,s} (t^{*}+ \delta)\)

*in*(41)

*for*

*t*

^{∗}

*in*(40)

*such that*

*i*.

*e*., \(s^{*} \in \mathcal {S}_{f,s} (t^{*} + \delta)\)

*and*\(s^{*} (u) \le\tilde{s}(u)\), 0≤

*u*≤

*t*

^{∗}+

*δ*,

*for all*\(\tilde{s} \in \mathcal {S}_{f,s}(t^{*}+ \delta)\).

*In particular*,

*Moreover*,

*δ*

*can be chosen so that*

*with*

*δ*≡

*∞*

*if the infimum in*(44)

*is not attained*.

### Proof

First, since *b*_{s}(⋅,0) is continuous for our original *s*, the violation in (40) must persist for a positive interval after *t*^{∗}; that ensures that a strictly positive *δ* can be found.

*t*

^{∗},

*t*

^{∗}+

*δ*] for

*s*

^{∗}in (43) and any feasible function \(\tilde{s}\), and we will show that

*s*

^{∗}itself is feasible. For 0≤

*t*≤

*t*

^{∗}+

*δ*, suppose \(\tilde{s}\) is feasible. Since the system is overloaded, system being in the overloaded regime implies that where equality on the second line holds because of the fundamental evolution equations in Assumption 6 and because \(b_{\tilde{s}} (t^{*}, x) = b_{s} (t^{*}, x)\) for all

*x*, and the inequality holds because \(b_{\tilde{s}}\geq0\). On the other hand, the equality holds when \(b_{\tilde{s}}(t^{*} + u,0)=0\) for all

*u*, which yields

*B*(

*t*

^{∗}+

*u*)=

*s*

^{∗}(

*t*+

*u*). Therefore, the proof is complete. □

### Corollary 6

(Minimum feasible staffing with exponential service times)

*For the special case of exponential service times*, *i*.*e*., *with*\(\bar{G}(x) \equiv e^{-x}\), (43) *becomes simply**s*^{∗}(*t*^{∗}+*u*)=*B*(*t*^{∗})*e*^{−u}, 0≤*u*≤*δ*.

We have constructed a minimal feasible staffing function by requiring that the new staffing function agree with the original one up until the time of the first violation. We have shown that assumption leads to a unique minimum feasible staffing function. However, it may be desirable to consider other approaches to feasibility, where we have the freedom to revise the staffing function before *t*^{∗} as well as afterwards. It is natural to frame the issue as an optimization problem; e.g., as in productions smoothing, we might want to impose costs for fluctuations of the staffing function as well high values. We leave such investigations for future work.

## 10 Staffing the *G*_{t}/*GI*/*s*_{t}+*GI* fluid model to stabilize delays

So far, we have discussed the performance analysis of the *G*_{t}/*GI*/*s*_{t}+*GI* fluid model with the staffing function *s* regarded as a given function. In this section, we assume that we are free to choose the staffing function *s*, and do so with the objective of stabilizing the potential waiting time *v* at some (constant) target *v*^{∗}>0. This delay stabilization problem is a variant of one considered previously for many-server queueing models with time-varying arrival rates in [12]. In [12], the goal was to stabilize the probability an arrival experiences any delay. in contrast, here we stabilize the delay of all fluid at precisely *v*^{∗}>0. Now everybody must wait, but only *v*^{∗}.

*v*at

*v*

^{∗}, it suffices to stabilize

*w*at

*v*

^{∗}. By Theorem 3, we see that we will be able to do so if and only if we can find a staffing functions

*s*for which the resulting performance satisfies the equation

*b*(

*t*,0)=

*q*(

*t*,

*v*

^{∗}) when

*w*(

*t*)=

*v*

^{∗}.

Suppose that the system is initially empty, i.e., *b*(0,*x*)=*q*(0,*x*)=0 for all *x*>0. Thus, we do not start staffing the service facility until time *v*^{∗}, so that no input enters service during [0,*v*^{∗}]; i.e., we let *b*(*t*,0)=0 for 0≤*t*≤*v*^{∗}, in order to let *w* increase from 0 to *v*^{∗}. At time *v*^{∗}, the input at time 0 is sent to the queue, after waiting precisely time *v*^{∗}.

*q*(

*t*,0)=

*λ*(

*t*) and

*q*(0,

*x*)=0, the queue instantly becomes overloaded at time 0, and we can apply Proposition 6 and Corollary 3 (or (5)) to obtain

*t*=

*v*

^{∗}: With the explicit expression of

*b*(

*t*,0) and

*b*(0,

*x*)≡0,

*x*≥0, (5) implies that

Therefore, we can easily compute *B*(*t*), *σ*(*t*), *q*(*t*,*x*), *Q*(*t*) and *α*(*t*) for *t*>*v*^{∗}. We have just proved the following theorem.

### Theorem 8

*Consider the*

*G*

_{t}/

*GI*/

*s*

_{t}+

*GI*

*fluid model with a general arrival*-

*rate function*

*λ*.

*Suppose the system is initially empty*.

*For any specified constant*

*v*

^{∗}>0,

*we can make the system overloaded such that the PWT is fixed at*

*v*

^{∗},

*i*.

*e*.,

*v*(

*t*)=

*v*

^{∗}

*for all*

*t*≥0,

*by*

- (i)
*not allowing any input to enter service until time**t*=*v*^{∗}, - (ii)
- (iii)
*operating the queue in the usual FCFS manner after time**v*^{∗}*with**b*(*t*,0)>0.*If we do so*,*then**w*(*t*)=*v*^{∗}*for**t*≥*v*^{∗}*and**w*(*t*)=*t**for**t*≤*v*^{∗},

*If*

*λ*

*is a periodic function*,

*then so are*

*b*(⋅,

*x*),

*B*(⋅)=

*s*

^{∗}(⋅),

*σ*,

*q*(⋅,

*x*),

*Q*(⋅)

*and*

*α*

*after time*

*v*

^{∗},

*with the same period*.

### Remark 8

(Connection to the QED regime when *v*^{∗}=0)

All the analysis in this section can be extended to the delay target *v*^{∗}=0. In this case, the staffing function in Theorem 8 is just sufficient to guarantee that all fluid enters service immediately upon arrival (thus with 0 delay in the queue) and that the system is CL for all *t* (the service capacity is fully occupied, i.e., *B*(*t*)=*s*(*t*)). This scenario corresponds to the heavy-traffic QED system regime.

### Remark 9

(General initial conditions or no delay)

Theorem 8 is based on starting empty. However, it is possible to stabilize delays with arbitrary initial conditions. We present the details in Appendix H of [24]. We can also achieve the minimum staffing level so that there is no delay at all by simply staffing at the fluid content *B*(*t*) in the underloaded regime. These two variants may involve having an atom of initial fluid content enter service at time 0, so that we leave the smooth framework.

## 11 Proofs of the main results

### Proof of Theorem 3

We establish the different results in turn:

(a) (Rate of growth) Consider an interval [*t*,*t*+*δ*] that is overloaded. If no fluid enters service during this interval, i.e., if *b*(*s*,0)=0 for *t*≤*s*≤*t*+*δ*, then the waiting time of a quantum of fluid at the front of the queue will increase with rate 1, i.e., *w*(*t*+*δ*)=*w*(*t*)+*δ*, provided that quantum does not abandon. Hence, we have the claimed bound on the rate of growth: *w*(*t*+*u*)≤*w*(*t*)+*u* for all *t*≥0 and *u*≥0 with *t*+*u*≤*T*. A more formal argument follows from (5) in Assumption 6.

*w*(

*t*+

*δ*)<

*w*(

*t*)+

*δ*if

*b*(

*t*,0)>0 because the FCFS service discipline implies that the queue is being eaten away from the head. In other words, fluid is being transported from the queue to the service facility from the right boundary of

*q*(

*t*,

*x*). Therefore, where

*ϵ*(

*t*,

*δ*) is the amount of boundary waiting time

*w*(

*t*) that is pushed back (eaten up) by

*b*(

*t*,0) from

*t*to

*t*+

*δ*, see Fig. 6. (Note that

*δ*>0 and

*ϵ*(

*t*,

*δ*)≥0.) To determine

*ϵ*(

*t*,

*δ*), we apply (30), with (31). We will bound

*ϵ*(

*t*,

*δ*) in (51) below.

*A*(

*t*,

*t*+

*δ*) in (30) is asymptotically negligible, so that it can be ignored when computing the derivative, but we use it to establish Lipschitz continuity. Even though

*A*(

*t*,

*t*+

*δ*) is somewhat complicated, we can easily bound it above. Moreover, we can do so uniformly in

*t*over the entire interval [0,

*T*]. First let

*w*

^{↑}≡sup{

*w*(

*t*):0≤

*t*≤

*T*}. We necessarily have

*w*

^{↑}≤

*w*(0)+

*T*<

*∞*by virtue of the bound on the growth rate growth determined above. Next let \(h_{F}^{\uparrow} \equiv\sup{\{h_{F}(x): 0 \le x \le w^{\uparrow}\}}\) which necessarily is finite, since

*f*∈ℂ

_{p}and \(\bar{F} (w^{\uparrow}) > 0\); and let \(\tilde{q}^{\uparrow} \equiv\sup{\{\tilde{q} (t, x): 0 \le x \le w^{\uparrow}\}}\), which again necessarily is finite because \(\tilde{q}(t, \cdot) \in \mathbb {C}_{p}\). We thus have the bound

*t*≤

*t*+

*δ*≤

*T*, where \(C_{1} \equiv h_{F}^{\uparrow}\tilde{q}^{\uparrow} w^{\uparrow}\), because

*ϵ*(

*t*,

*δ*)≤

*w*

^{↑}

*δ*.

*w*is Lipschitz continuous by showing that

*ϵ*(

*t*,

*δ*)≤

*Cδ*for some constant

*C*. Recall that

*b*(⋅,0) is an element of \(\mathbb {D}\) by Theorem 2. Hence, ∥

*b*(⋅,0)∥

_{T}<

*∞*, so that there exists a constant

*C*

_{2}such that

*E*(

*t*+

*δ*)−

*E*(

*t*)≤

*C*

_{2}

*δ*for 0≤

*t*≤

*t*+

*δ*≤

*T*. Together with (50), that implies that the integral \(I(t, w(t), \tilde{q}, \delta)\) is bounded above by

*Cδ*for 0≤

*t*≤

*t*+

*δ*≤

*T*, where

*C*≡

*C*

_{1}+

*C*

_{2}. Since the integrand of

*I*is bounded below by

*c*>0 by virtue of Assumption 10,

*t*≤

*t*+

*δ*≤

*T*, so that indeed

(e) (The derivative) Since *w* is Lipschitz continuous, *w* necessarily is differentiable a.e., but we will establish a stronger result. Given that *ϵ*(*t*,*δ*)=*cδ*+*o*(*δ*) as *δ*↓0, from the first inequality in (50) we see that *A*(*t*,*t*+*δ*)=*O*(*δ*^{2})+*o*(*δ*^{2}), so that the abandonment term can be ignored when we consider the derivative. Together with (30) and (31), that implies that a right derivative of *w* exists at *t* with value in (32). The convergence as *δ*↓0 in the definition of that right derivative will be uniform over a neighborhood of *t* if \(\tilde{q}(t, x)\) is continuous function of *x* at *x*=*w*(*t*), but not otherwise.

*t*−

*δ*,

*t*] that is overloaded. Similarly, we have and

*K*implies where the first equality follows from (52) and fundamental evolution equations, the second equality holds by change of variable. It is easy to see that

*K*=

*o*(

*δ*) as

*δ*↓0. Therefore, together with (53), that implies that a left derivative of

*w*exists at

*t*with value in (33).

The stronger differentiability conclusion depends on the discontinuities of \(\tilde{q} (t,x)\). From Proposition 6, all discontinuity points lie on finitely many 45 degree lines in the upper right quadrant [0,*∞*)×[0,*∞*); i.e., in the set \(\{(t,x): x = t +c \mbox{ and } c \in \mathcal {S}\}\) where \(\mathcal {S}\) contains *c*=0 and the finite set of discontinuities of *λ* for *c*<0 and the finite subset of discontinuities of *q*(0,⋅) for *c*>0. Since *w*(*t*+*u*)≤*w*(*t*)+*u* for 0≤*t*≤*t*+*u*≤*T*, the trajectory of \(\tilde{q} (t, w(t))\) crosses over each of these lines at most once. Moreover, it stays on each line for at most a finite interval. If the trajectory immediately crosses over the line, then the crossing time *t* constitutes the sole discontinuity point for *w*′ associated with that line. If the trajectory stays on the line for an interval, then the two endpoints constitute discontinuity points for *w*′ associated with that line.

(f) (Existence of a solution) The solution can be constructed by considering the successive intervals between discontinuity points and piecing together the solutions. The function *Ψ* in (32) is continuous in each continuity interval. Hence, existence follows from Peano’s theorem; see Sect. 2.6 of [35]. We apply Assumption 9 to ensure that *w*(0)<*∞*.

(g) (Uniqueness of a solution) Under extra regularity conditions, the function *Ψ* in (32) will be locally Lipschitz on each continuity interval of *w*′, so that each piece constructed in the existence argument above will be unique, by virtue of the classical Picard–Lindelöf theorem; e.g., Theorem 2.2 of [35]. Specifically, it suffices to assume that *λ* and *q*(0,⋅) (already assumed to be in ℂ_{p}) are differentiable on the subintervals where they are continuous with derivatives in ℂ_{p} over these subintervals.

*q*(

*t*,

*w*(

*t*)−) in the denominator or (32) takes one of two forms, depending on whether

*w*(

*t*)≤

*t*or not. Our proof applies to both cases in the same way, so we only consider one case: we suppose that

*w*(

*t*)≤

*t*. Then \(q(t, w(t)-) = \lambda((t - w(t))-)\bar{F}(w(t))\). Then ODE (32) implies that Now suppose there is another function \(\tilde{w}\) that also satisfies ODE (32) with \(\tilde{w}(t_{1})=0\). Then, by the same reasoning, we get

*w*and \(\tilde{w}\) are different. Since \(w(t_{1})=\tilde{w}(t_{1})=0\), let \(\tilde{t}\equiv\inf\{{t>t_{1}}:w(t)\neq \tilde{w}(t)\}\), which implies that \(w'(\tilde{t})\neq\tilde {w}'(\tilde{t})\). Without loss of generality suppose that \(w'(\tilde{t})<\tilde{w}'(\tilde{t})\); hence there exists a

*δ*>0 such that \(w(t)<\tilde{w}(t)\) for all \(\tilde{t}<t\leq\tilde{t}+\delta\). Then we have \(1/\bar{F}(w(t))<1/\bar{F}(\tilde{w}(t))\) for all \(\tilde{t}<t\leq\tilde{t}+\delta\) and \(\tilde{t}+\delta-\tilde{w}(\tilde{t}+\delta)<\tilde{t}+\delta-w(\tilde{t}+\delta)\). Therefore, (56) implies that

### Proof of Theorem 5

To show that the two equations in (37) are equivalent, make the change of variables *s*≡*t*−*w*(*t*). Then the first equation gives *v*(*s*)=*w*(*t*)=*w*(*s*+*w*(*t*))=*w*(*s*+*v*(*s*)), which is the second equation. The other direction is similar.

For a given *w*, we shall do three things: (i) construct *v* given the first equation in (37), (ii) show that this construction gives a function *v* that is right-continuous and has limits from the left, and (iii) show that the construction in (i) is the unique one that satisfies (ii).

For an arbitrary *t*, we draw a 45-degree ray starting from point (*t*,0): *L*(*s*)=*s*−*t*, *s*≥*t*. Let *v*(*t*) be the largest *t*_{w} such that *L*(*t*_{w})=*w*(*t*_{w}), as shown in Fig. 5. We first show that there necessarily exists at least one time *t*_{w}≥*t* such that *L*(*t*_{w})=*w*(*t*_{w}). If *w*(*t*)=0, then *t*_{w}=*t* is a solution. Otherwise, we have *w*(*t*)>0=*L*(*t*), and *w* starts above the line *L* at time *t*. By Theorem 3, *w* is a continuous function. In general, we could have *w*(*t*)>*L*(*t*) for all *t*, but then we would have *v*(*t*)=*∞*. Since *v*(*t*)<*∞*, there necessarily is a time *t*_{w} such that *L*(*t*_{w})=*w*(*t*_{w}).

By Theorem 3, *w*′(*t*)≤1. Therefore, once *L*(*t*_{w})=*w*(*t*_{w}) for the first time, it either stays there or leaves, never to return. In other words, there are two cases: First, as always occurs if *w*′(*t*_{w})<1, there may be a unique *t*_{w}≥*t* such that *L*(*t*_{w})=*w*(*t*_{w}). Second, there may exist an interval *I*≡[*t*_{1},*t*_{2}] such that *L*(*t*)=*w*(*t*) for *t*∈*I*, i.e., *L*(*t*_{1})=*w*(*t*_{1}) and *w*′(*t*)=1 for *t*∈*I*; see Fig. 5. In the first case, we let *v*(*t*)≡*t*_{w}; in the second case, we let *v*(*t*)≡*w*(*t*_{w}) where *t*_{w}≡inf{*s*>*t*_{1}:*L*(*s*)≠*w*(*s*)}. That completes our construction.

*ϵ*>0, our construction shows that it is possible to choose

*δ*>0 sufficiently small that

*v*(

*t*+

*δ*)=

*w*(

*t*

_{w}+

*δ*+

*ϵ*) such that

*w*(

*t*

_{w}+

*δ*+

*ϵ*)−

*w*(

*t*

_{w})=

*ϵ*, where

*ϵ*≡

*ϵ*(

*t*,

*δ*), as shown in Fig. 7. Our construction implies that for some \(t_{w}\leq\hat{t} \leq t_{w}+\delta+ \epsilon\) and \(w'(\hat{t})<1\), which implies that Therefore, as

*δ*→0, by the continuity of

*w*. Therefore,

*v*is right-continuous. Similarly, we can show that

*v*has limits from the left.

It is evident that, by this construction, we have ensured that *v* is right-continuous with left limits and unique. Moreover, *v* is discontinuous at *t* if and only if we are in the second case with an interval of solutions. □

### Proof of Theorem 6

*δ*>0, the second equation in (37) yields where

*ϵ*(

*t*,

*δ*)≡

*v*(

*t*+

*δ*)−

*v*(

*t*)+

*δ*. Simple algebra implies that Letting

*δ*↓0, we obtain where the second equality holds since right-continuity of

*v*implies that

*ϵ*(

*t*,

*δ*)→0 as

*δ*→0, the third equality follows from ODE (32), the fourth equality follows from the second equation in (37), the last equality holds because the system being overloaded at time

*t*+

*v*(

*t*) implies that \(\tilde{q}(t+v(t),v(t)) =q(t,0)\bar{F}(v(t))=\lambda(t)\bar{F}(v(t))\). The similar argument applies to the left derivative with (

*v*(

*t*)−

*v*(

*t*−

*δ*))/

*δ*when

*t*is a continuity point of

*v*.

*v*is continuous under the extra condition that

*b*(

*t*,0)>0 for all

*t*. That clearly makes the right derivative finite for all

*t*. Hence,

*v*is differentiable wherever

*Φ*is continuous. We can now exploit Theorem 3 and its proof. Since

*b*(

*t*,0)>0 for all

*t*, there will be a one-to-one correspondence between the finitely many points where

*Ψ*in (32) is discontinuous and the points where

*Φ*is discontinuous. Now we have the relations (for the right derivatives everywhere)

*w*. □

## 12 Conclusions

In this paper we have characterized all the standard performance functions for the *G*_{t}/*GI*/*s*_{t}+*GI* fluid model. Our results were obtained under two important regularity conditions: (i) Assumption 2, requiring that we have a smooth model, and (ii) Assumption 7, requiring that there be only finitely many switches between overloaded (OL) and underloaded (UL) intervals in finite time. There also is a restriction on the service distribution in Assumption 8 in order to guarantee that the fixed-point equation (18) for the rate of flow from queue into service, *b*(*t*,0), has a unique solution that can be computed iteratively. It suffices for either (i) the service hazard function *h*_{G} to be bounded or (ii) the system to have started empty at some time in the (finite) past; see Sect. 6. Additional regularity conditions were imposed in Sect. 7 to obtain results for the waiting times.

For *M* service, the relatively simple algorithm primarily requires solving the ODE for the BWT *w* in Theorem 3 and the equation for the PWT *v* in Theorem 5 during each OL interval. For non-exponential service, in addition we must solve the fixed-point equation (18) for the flow rate into service *b*(*t*,0), which is needed to determine the full service content density *b*(*t*,*x*). The algorithm is summarized in Sect. 8. We characterized the model, as just reviewed, under the assumption that the staffing function *s* is feasible, but in Theorem 7 we also characterized the minimum feasible staffing function greater than or equal to any given staffing function, provided that it is not changed prior to the first infeasibility time. In Sect. 10 we showed that we can construct a staffing function to stabilize the potential waiting time *v* at any desired target *v*^{∗}>0.

The fluid model is well defined directly, but it is intended to serve as an approximation for large-scale many-server queueing systems. We performed extensive simulation experiments to confirm that the fluid model can provide a useful approximation for such stochastic queueing systems. One of these experiments is described in Sect. 2; others are described in [24]. The simulation results show that, first, the fluid approximation is essentially exact for very large queueing systems and, second, it can be effective as an approximation for mean values even when the scale is not too large; e.g., the number of servers might be only 20. The approximation tends to be more accurate when the system is either overloaded or underloaded, rather than critically loaded, as illustrated by Fig. 3.

The results here even contribute to our understanding of the stationary *G*/*GI*/*s*+*GI* fluid model introduced in [37]. For the special case of the *G*/*M*/*s*+*GI* fluid model, building on the present paper, in [21] we prove that the time-dependent performance of the fluid model converges to that steady-state performance as time evolves for any finite initial condition. Moreover, we provide bounds on the rate of convergence. In [21] we also establish convergence to a periodic steady state for periodic models and we establish asymptotic loss of memory (ALOM) for more general time-varying models.

There are many directions for future research. (i) It remains to consider alternative approaches to obtaining feasible staffing functions. The method in Sect. 9 detects any infeasibility of a candidate staffing function and removes the problem by increasing the staffing after the violation point. Alternative methods could modify the entire staffing function, aiming to achieve minimum cost subject to constraints. (ii) It remains to establish existence, uniqueness and algorithm results for the more general model in which many of the regularity conditions imposed here are relaxed. (iii) It remains to extend the model to represented more complicated service systems with multiple service pools and multiple customer classes. Building on the present paper, a first step has been made for single-class networks of queues with time-varying Markovian routing among the queues in [20]. (iv) Finally, it remains to develop alternative approximations and many-server heavy-traffic limits for *G*_{t}/*GI*/*s*_{t}+*GI* systems that tend to be nearly critically loaded at all times, instead of switching back and forth between OL and UL intervals.

## Acknowledgements

This research was supported by NSF grants DMI 0457095, CMMI 0948190 and CMMI 1066372.

### Open Access

This article is distributed under the terms of the Creative Commons Attribution License which permits any use, distribution, and reproduction in any medium, provided the original author(s) and the source are credited.