Transient error approximation in a L\'evy queue

Motivated by a capacity allocation problem within a finite planning period, we conduct a transient analysis of a single-server queue with L\'evy input. From a cost minimization perspective, we investigate the error induced by using stationary congestion measures as opposed to time-dependent measures. Invoking recent results from fluctuation theory of L\'evy processes, we derive a refined cost function, that accounts for transient effects. This leads to a corrected capacity allocation rule for the transient single-server queue. Extensive numerical experiments indicate that the cost reductions achieved by this correction can by significant.


Introduction
The issue of matching a service system's capacity to stochastic demand induced by its clients arises in many practical settings. Typically, the resources available to satisfy demand are scarce and hence expensive. This forces the manager to consider a tradeoff between the system efficiency and the quality of service perceived by its clients.
In this paper, we focus on this trade-off in the context of the M/G/1 queue, in which the variable amenable for optimization is the server speed μ.
In general, optimizing the server speed μ in a single-server queue in a timehomogeneous environment, while trading off congestion levels against capacity allocation costs, does not pose any technical challenges. Typically, the objective function to be minimized, the total cost function, has the shape where E[Q μ (∞)] denotes the expected steady-state amount of work given server speed μ, and B describes the service requirement per arrival. The parameter α > 0 represents the relative capacity allocation costs incurred by deploying service rate μ. This one-dimensional optimization problem yields the optimizer Despite the simplicity and tractability of the problem described above, the presence of the steady-state measure in the cost function in (1.1) should be handled carefully. By employing this particular cost structure, one automatically agrees with the underlying assumption of the system being sufficiently close to its steady state. However, referring to the practical applications of the single-server model, system parameters rarely remain constant over time. Moreover, planning periods for the optimization problem are naturally finite. Hence, the true expected costs incurred, which we denote by Π T (μ), in addition depend on the length of the planning period T . Consequently, the usage of steady-state models for decision making needs to be justified by a more elaborate time-dependent or transient analysis for these type of settings. The time-dependent behavior of the single-server queue received much attention in queueing theory. First efforts to analyze the time-dependent properties of the M/G/1 queue date back to the 1950s and 1960s; for example, [7,10,17,28,29]. The analyses in these papers mostly yield implicit expressions for performance characteristics through Laplace transforms, integro-differential equations and infinite convolutions. More specifically, there is vast literature on the transient analysis of the M/M/1 queue, with the goal to derive explicit expressions for queue length characteristics; see, for example, [3,9,23,24]. These works provide a variety of explicit expressions for the transient dynamics, although the complexity of the resulting expressions, typically involving Bessel functions, exposes the intricate intractability of the matter. Consequently, approximation methods for insightful quantification of the dynamics based on numerical [20] or asymptotic methods have become prevalent in more recent literature. The asymptotic methods either exploit knowledge of the evolution of the queueing process as time t grows large [3,21,22], or as the arrival rate λ is increased to infinity [1,2,11]. It is noteworthy that a substantial contribution to the transient literature is made by Abate and Whitt [1][2][3][4], who exploit the existence of a decomposition of the mean transient queue length and obtain expressions for the moments of the queue length and virtual waiting through probabilistic arguments in several queueing models. More recently, asymptotic methods have been used to justify the application of stationary performance measures in Markovian environments or to refine them; see, for example, [12,30]. Other approximative methods known as uniform acceleration expansions [19] have been developed to reveal the asymptotic behavior of the singleserver queue as a function of t, which are moreover able to capture time-varying arrival rates.
The majority of the works mentioned above do reflect on the error imposed by usage of steady-state performance metrics instead of the correct time-dependent counterpart. However, no light has been shed on the accumulation of this error over a finite period of time. To the best of our knowledge, the only work that addresses this issue is the paper by Steckley and Henderson [27], who compute an approximation for the error accumulated between the steady-state and transient delay probability. Our analysis on the other hand is centered around the mean workload, which requires a different approach. In addition, the focus in [27] is on performance measures only, while the main goal of our paper is to investigate the quality of staffing rules.
Although the M/G/1 queue serves as the leading example in our analysis, we choose to use a more general framework for the arrival process of the queue. Namely, we let the server face a Lévy process. This gives the advantage that once we have obtained the results, we can apply them to broader queue input classes, such as Brownian motion and the Gamma process.
To shed light on the influence of the transience of the queueing process on traditional staffing questions, we will study the capacity allocation problem in the context of cost minimization in which the objective function is Π T (μ), i.e., a function of both μ and T . We investigate how the invalidity of the stationary assumption is echoed through the operational cost accounting for congestion-related penalties.
Furthermore, we establish a result on the strict convexity of the function Π T (μ), for almost all values of T (with a few minor exceptions for certain deterministic initial states), which is an essential property for convergence of both cost function and corresponding minimizer to their stationary counterparts.
As it will appear that an exact analysis of this disparity is intractable, we will present an explicit approximate correction to the conventional stationary objective function given by Ψ (μ)/T and prove that with the help of recent results from the fluctuation theory of Lévy processes. Based on this refinement, we ultimately examine how incorporating transient effects changes the optimal capacity level and propose a refinement to the steady-state capacity allocation rule, We moreover deduce an explicit expression for μ • in terms of the initial state and the first three moments of the service requirement per arrival. It is noteworthy that similar refined square-root staffing rules have been proposed for multi-server queues in the Halfin-Whitt regime; see, for example, [14][15][16]25,31]. In those cases, the relevant decision value is the number of servers and refinements are derived for λ → ∞, whereas we consider the regime T → ∞.
Building upon the insights gained through the analysis of this optimality gap, we reflect on the parameter settings of the underlying queueing process in which our refined capacity sizing rule yields significant improvement and in which cases it has little effect. Special emphasis is put on the relationship between the accuracy of the standard procedure and the length of the planning period.
The remainder of the paper is structured as follows. Section 2 is devoted to the model description and presents some preliminary results. The main result will be given in Sect. 3, and results regarding the optimization problem will be discussed in Sect. 4, followed by the validation of our novel techniques through numerical experiments in Sect. 5. We will give some concluding remarks and topics for further research in Sect. 6. We have deferred all proofs to the appendices.

A queueing model with Lévy input
The model that inspired our study is the standard M/G/1 queue starting out of equilibrium. Customers arrive to the queue according to a Poisson process with rate λ, and each arrival has iid service requirement B i , stemming from a common random variable B. Without loss of generality, we will assume E[B] = 1 throughout. The server is able to remove μ amounts of work from the system per time unit; a variable we will refer to as the server speed. For example, if μ = 3 and two customers are in the system with remaining service times 4 and 2, then the queue will be empty 2 time units later, provided that no new arrivals occur in the meantime. Let N λ (t) denote the number of arrivals until time t. Accordingly, the total work generated by the customers is given by We call X λ,μ the net-input process. More generally, we assume throughout the paper that X λ,μ is a Lévy process. Specifically, we let Z λ be of the form Z λ (t) = U (λt), where U is a spectrally positive Lévy process generated by the triplet (a, σ, ν) and E[U (1)] = 1. This restriction to spectrally positive processes is equivalent to stating ν(−∞, 0) = 0 and is a vital assumption in our analysis. Subsequently, we assume the net-input process X λ,μ to be Note that by setting a = σ = 0 and ν = λ F B , where F B is the cumulative distribution function of B, we retrieve the original M/G/1 queue. The stochastic process central to our analysis is the workload process Q λ,μ (t), t ≥ 0, which describes the amount of work the server is facing at time t. The net-input process X λ,μ completely determines the trajectory of Q λ,μ , namely where Q(0) is the initial workload in the system. In fact, Q λ,μ is the reflected version of X λ,μ with reflection barrier at zero. Careful inspection of the structure also reveals that X λ,μ (t) ≡ X λ/μ,1 (μt) ≡ X 1,μ/λ (λt), so that for all λ, μ, t > 0. This identity will prove to be convenient for the numerical analysis in Sect. 5. For reasons of clarity, we omit the subscript λ in our expressions if no ambiguity is possible. The process Q μ is a natural indicator of the level of congestion in the system and therefore a good choice for quantifying the Quality of Service (QoS) received by a client. We remark that alternative processes characterizing congestion in the system can be deduced directly from Q μ (t). For example, consider the virtual waiting time process V μ (t), which is the waiting time a customer would experience if he arrives at time t. This satisfies the relation V μ (t) ≡ Q μ (t)/μ for all t ≥ 0. Likewise, the expected number of customers in the system L μ (t) at time t ≥ 0 is given by Little's law: To facilitate our investigation of the queueing model, we end this subsection by introducing some notation regarding the net-input and workload process and by stating a useful preliminary result concerning the stationary process Q μ (∞). Throughout the paper, we assume μ > λ to ensure ergodicity of the queue and convergence in distribution to the limit for any initial state Q(0) < ∞. This random variable necessarily coincides with the stationary distribution of Q μ (t). By κ U (·) and κ μ (·), we denote the Lévy exponents of the processes U and X μ , respectively: ... Using this representation, we obtain the following preliminary result.
represents the steady-state distribution of the workload process, then The proof of Lemma 1 follows directly by differentiation of the Laplace transform of Q μ (∞) and is therefore straightforward.

Finite horizon
For the purpose of this paper, we are interested in the dynamics of the workload process within a fixed time frame of length T > 0. For all 0 ≤ t ≤ T , we assume that the parameters of the queue, λ, μ, u 2 , u 3 , remain unchanged. If at t = 0 the queue is not in steady-state corresponding to the specified parameters of the starting period, Moreover, E[Q μ (t)] is not even a strictly increasing nor decreasing function of time. This phenomenon is a consequence of the decomposition of the transient mean into one strictly increasing, and a strictly decreasing term for Q(0) > 0, as discussed in [3]. Nonetheless, Since the time horizon of our analysis is limited to t ≤ T , the process may not approach the steady-state distribution sufficiently close to appropriately use its steadystate properties for capacity allocation. To overcome this disparity, we propose a way to include the influence of this transient phase in the capacity allocation problem.

Cost structure
As mentioned before, we are interested in balancing the QoS and efficiency of the queue by choosing the optimal server speed μ. The adjective optimal indicates that we intend to choose the speed according to some objective function. In our case, we conduct our analysis based on a cost function, which consists of a part accounting for the penalty for congestion in the system and a part for staffing cost. The cost value of both parts is governed by the variable μ. The instantaneous cost incurred at time t equals where α is a positive constant defining the relative staffing cost. Hence, the cost structure we apply is a combination of the transient mean of the workload process and a linear staffing cost. Accumulated and normalized over the period [0, T ], the cost function on which the rest of this paper will be based equals We use shorthand notation for the normalized congestion costs: and In order to compare the actual costs incurred over the interval [0, T ] to the cost function of the queue in stationary conditions, we define which allows an explicit expression by Lemma 1. Under mild conditions on the netinput process and the distribution of the initial state, the cost functions coincide for T → ∞.

Rewriting (2.4) gives the relation
Section 3 is concerned with the analysis of the correction factor Ω T (μ). Ultimately, we are concerned with the additional costs incurred by choosing the server speed through minimization of Π ∞ (μ) instead of Π T (μ). Therefore, we formulate the exact and approximate optimization problems as follows

8)
In Sect. 4, we turn to the comparison of μ T and μ ∞ as well as the optimality gap

Analysis of the objective function
From (2.7) it is evident that, for finding an explicit characterization of Π T (μ), it suffices to study the term Ω T (μ) in more detail. We start by stating the main result of this section, which describes the leading order behavior of Ω T (μ) as T increases.

Note that this expression provides an approximation of the actual cost function Π T (μ).
We elaborate on the implications of this additional information on the optimization problem in Sect. 4.
In the remainder of this section, we provide a detailed description of the steps taken to obtain this outcome. We assume a fixed service rate μ throughout the analysis in this section and therefore omit the subscript μ. Proofs of the intermediate results can be found in Appendix 2.

Constructing a coupling
Before starting our analysis of the correction term Ω T (μ), we introduce some auxiliary notation. By Q A (t) we denote the workload process as described in Sect. 2.1 with initial state A and E A the expectation with respect to any nonnegative random variable A, which is independent of the net-input process X . To be able to compare E[Q(t)] and E[Q(∞)] as in Ω T (μ), we will use a coupling technique. Observe that by the . Hence, quantifying the difference between the transient and stationary mean is equivalent to comparing the workload processes of two queues starting in two different (random) states at t = 0.
We starting our analysis for two queues starting in two deterministic states x, y ≥ 0, respectively. At the end of our analysis, we will obtain the original form by replacing x with Q(0) and y with Q(∞).
Equation (2.2) shows that all randomness in the workload process originates from the process X (t). With this in mind, we couple the processes Q x (t) and Q y (t) on a → t sample path level by feeding both queues the same net-input process X (t) for t ≥ 0. This allows us to compare the processes in the same probability space, so that and Ω x,y A possible sample path triple for Q x (t), Q 0 (t) and Y x,0 (t) is depicted in Fig. 2. As we see from this figure, Y x,0 (t) has nice structural properties which we will exploit in the next subsection.

Difference process and leading order behavior of the correction term
We further examine the difference process Y x,y (t) with x > y. Recall from (2.2), for any initial state z ≥ 0, where X (t) is a Lévy process with no negative jumps. Let τ z (w), 0 ≤ w < z, denote the first passage time of level w by the process starting in Then it is easily seen that for all z ≥ 0, Using this representation, we can identify where ∧ denotes the minimum operator, due to the fact that Y x, is obtained by replacing T by ∞ only in the integration bound. It is customary in the literature, particularly in the area of stochastic simulation, to compare the truncated integral to its natural expansion of the integration range to a semi-infinite interval; see, for example, [ This leaves us with two unknowns: E[τ y (0)] and Ψ x−y,0 T . The next lemma gives an equivalent form for the latter.
Since the term E[τ z (0)], for several values of z, appears in many of the preliminary results, we devote our attention to this in the next subsection.
First passage time When studying the first passage time of level 0 ≤ w < z, τ z (w), of the workload process starting in z, we first observe that {τ z (z − w)} z w=0 is a spectrally positive Lévy process itself, also visible through Fig. 2. More precisely, it is a subordinator, i.e., a Lévy process whose paths are almost surely non-decreasing [18]. In order to calculate E[τ z (z − w)], we use theory presented in [26,Section 46], although results presented there are valid for spectrally negative Lévy processes, as opposed to the absence of negative jumps in our case. Nonetheless, our setting is easily transformed into this framework by observing thatX ≡ −X , that isX (t) = −X (t) for all t ≥ 0, is spectrally negative. Furthermore, let (3.6) For completeness, we cite [26,Thm. 46.3].

Randomization
As we stated before, we easily obtain the original Ω T from Ω x,y T through substitution of x and y by Q(0) and Q(∞), respectively, and taking the expectation. In the previous paragraph, we deduced an explicit expression for Ψ x,y T , the leading order term for Ω x,y T . Therefore, we equivalently get an approximation for Ω T , given by through randomization of x and y in Ψ x,y T . By combining the results in Corollary 1, Lemma 1 and Proposition 2, which is given at the end of this section, we directly prove the result in Theorem 1.

Truncation error
In order to get a better comprehension of the properties of Ψ T , we depict the value in terms of the (infinite) region between the curves E[Q(t)], E[Q(∞)] and the vertical axis for the case Q(0) ≡ 0 in Fig. 3. In this figure, Ω T is given by the area enclosed by the two curves, the vertical axis and the line t = T . One can see that the main contribution to the correction term Ω T is given for small t. As t increases, the difference between transient and stationary mean decreases. Hence, for moderate values of T , the contribution to the integral in (3.3) is only minor compared to the contribution over the interval [0, T ].
Recall the definition of Δ can be derived through Δ x,y T in a similar manner as we did for Ψ x,y T to obtain Ψ T . To substantiate our claim, we compute an upper bound for Δ x,y T of order 1/T 2 . The existence of such an upper bound poses a limit on the error this tail integral contributed to the cost structure as a whole.
Remark In the case where the net-input process X is light-tailed, that is, there exists u > 0 such that E[e u X (1) ] < ∞, it can be shown that the truncation error is of order e −βT /T for some β > 0. See Appendix 2 for details.

Optimization
The result in Theorem 1, characterizing the leading order behavior of Ω T (μ), also reveals the behavior of Π T (μ) in leading order. Namely, In fact, this representation naturally gives rise to an approximation of the actual cost function:Π Denote the corresponding minimizer ofΠ T bŷ in addition to the definitions in (2.8) and (2.9). This section is devoted to the analysis of the minimizers μ T ,μ T and μ ∞ , and the optimality gap for the two approximations. Throughout this section, we assume that u 2 , u 3 < ∞ and E[Q(0) 2 ] < ∞. By its definition in (2.6) and Lemma 1, we have an exact expression for the steadystate cost function: It is easily verified that Π ∞ is strictly convex in μ, for instance by observing that Π ∞ (μ) > 0 for all μ > λ. Therefore, Π ∞ has a unique global minimizer and We are interested in the relation between μ ∞ and μ T , and betweenμ T and μ T . Since we have pointwise convergence of the sequence Π T , as well asΠ T , to Π ∞ for T → ∞; we also expect μ T → μ ∞ and μ T → μ ∞ for T → ∞. Before proving that this convergence indeed holds, we present a result on the strict convexity of the function Π T .

Proposition 3
Let μ T ,μ T and μ ∞ be as defined in (2.8) and (4.2). Then The next result describes a refinement of μ T in terms of μ ∞ .

Proposition 4 For T sufficiently large,
Based on Proposition 4, we propose a corrected staffing rule, accounting for the finite horizon:μ with μ • as in (4.4). Here [x] + := max{x, 0}, which ensures the value ofμ T is nonnegative and thus is a feasible solution of the optimization problem. This refined capacity allocation rule is expected to reduce the costs incurred in transient settings.
However, the value of particular interest to us is the cost penalty for using either one of the approximations rather than the actual minimum μ T , that is, the optimality gap.
As it happens, we deduce the order of the optimality gap for μ ∞ with the help of the explicit form of μ • given in (4.4), which is stated in the next proposition. The proof is given in Appendix 3.

Influence of Ω T (μ)
We first assess the contribution of the correction to the cost function provided by Theorem 1. In other words, we investigate whetherΠ T (μ) as in (2.4) yields a significantly better fit to Π T (μ) than Π ∞ (μ) does. Note that these three functions only differ in the costs describing the congestion. Therefore, we limit our study in this subsection to the evaluation of C T (μ) as in (2.5) with stationary equivalent Our novel approximation hence readŝ with Ω T (μ) given in Theorem 1. We conduct our numerical experiments based on three models, namely: is a unit rate compound Poisson process with exponentially distributed increments. We have u 2 = 2, u 3 = 3, so that is a unit rate compound Poisson process with Pareto increments. The Pareto distribution deserves special attention due to its heavy tailed nature, having tail probabilityF(x) = (x/k) −γ , if x ≥ k, and 1 otherwise. It is well-known that heavy-tailed service times lead to long relaxation time. For our purposes, we fix shape parameter γ = 16/5 and scale parameter k = 11/16, so that β = 1, u 2 = 121/96, u 3 = 1331/256 and u k = ∞ for all k > 3. Hence, (5.2) 3. Reflected Brownian motion: U (t) is Brownian motion with drift 1 and infinitesimal variance σ 2 . We have u 2 = σ 2 , u 3 = 0, so that For reflected Brownian motion, we used the explicit distribution function given in [13] for double numerical integration. The results for several values of T and two different starting states are depicted in Figs. 4, 5 and 6. These plots also include the approximated functionsĈ T (μ). We make a few observations based on these figures.
First, we indeed note the pointwise convergence ofĈ T (μ) toĈ ∞ (μ) as T grows, for all μ in all three cases. However, the difference between the stationary costs and those for small values of T can be significant. This is most clear in the plots with x = 2.5 and when μ is close to λ, i.e., it is in heavy traffic. In these scenarios, it is evident that refinements to the stationary cost function are needed.Ĉ T (μ) does a fairly good job at providing such correction, especially for moderate values of μ.
Furthermore, we note that C T (μ) approaches C ∞ (μ) from below for x = 0 for any value of μ, while this is not strictly the case for x > 0.Ĉ T (μ) correctly captures the sign of this correction.
Finally, observe thatĈ T (μ) → −∞ as μ approaches λ from above. This divergence is clear from the expressions in (5.1)-(5.3). Our correction term relies on the premise that under the coupling scheme, the sample paths of the two queues starting from different states have hit with high probability. This is equivalent to stating that the 'largest' of the two queues is emptied at least once before time T . However, as μ approaches λ, the system enters heavy traffic, and hence the hitting time of the zero  barrier is set to run off to infinity. Consequently, this causes our approximation to be inaccurate for small values of μ.

Validation of corrected staffing rule
In this section we examine whether the corrected staffing ruleμ T as in (4.5) indeed yields a significant cost reduction over the choice of μ ∞ by comparing their true costs Π T (μ T ) and Π T (μ ∞ ). We conduct this comparison for different values of the parameters, α, T and starting state x through numerical experiments. The three models on which we do our calculations are the M/M/1 queue, the M/Pareto/1 queue and the reflected Brownian motion, as introduced in the previous subsection. We again focus on λ = 1 only.
For each of the three models, we adhere to the following setup. The quality of both staffing rules is assessed for α = 0.1, 1 and 2, resembling three modes of valuation of the QoS in the system. As a benchmark, observe that the expected workload in steady-state conditions with staffing level μ ∞ equals For each value of α, we consider two scenarios: One in which the system starts empty, i.e., x = 0, and one in which the initial state is double this benchmark value, thus x = √ 2αλu 2 . The numerics are presented for each model separately. We discuss general conclusions drawn from these results afterwards.

M/M/1 queue
As we discussed before, if U is a unit rate compound Poisson process with exponentially distributed increments, then Q μ describes the workload process in an M/M/1 queue. For this setting, we get Table 1 presents the actual costs corresponding to these two staffing levels for different value of x and α.

M/Pareto/1 queue
In the case where the service requirements follow a Pareto distribution with shape parameter γ = 16/5, the staffing rule becomes The numerical results are given in Table 2. Table 1 Comparison of costs for the M/M/1 queue for steady-state and corrected staffing rules and relative cost improvement (r.c.i.)  Table 2 Comparison of costs for the M/Pareto/1 queue for steady-state and corrected staffing rules and relative cost improvement (r.c.i.) Just as in the results for the M/M/1 queue, we observe a higher reduction for larger value of α and T . Also, againμ T < μ ∞ . Hence, the conclusions for the M/Pareto/1 queue are similar to those of the M/M/1 queue. Table 3 Comparison of costs for RBM with σ = 1 for steady-state and corrected staffing rules and relative cost improvement (r.c.i.) In the case where the input process U is Brownian motion with drift 1 and infinitesimal variance σ 2 , the steady-state staffing rule and its corrected version reduce to

Reflected Brownian motion
In Tables 3 and 4, the costs obtained through numerical evaluation are presented for several values of x, T . We also vary σ to examine the influence of the volatility of the arrival process on the quality of the staffing rules.
The observations on the influence of α, x and T are similar to those for the M/M/1 queue and the M/Pareto/1 queue. However, here we see little improvement by the corrected staffing rule for small values of α for both values of x. The results in Tables 3 and 4 also suggest that the reduction is smaller for larger values of σ .

Discussion
Based upon these numerical results in Tables 1, 2, 3 and 4, we make a few remarks. The three models roughly exhibit similar behavior as T , x and α are varied.
Non-surprisingly, we note thatμ T approaches μ ∞ with increasing T , which also implies that the cost reduction achieved by the corrected staffing rule vanishes as T → ∞. Also, we observe that in all scenarios examined, the cost reduction increases with α. This can be explained through investigation of the objective function Π T as a function of μ. Namely, for α small, the curve is relatively flat around the true Table 4 Comparison of costs for RBM with σ = 2 for steady-state and corrected staffing rules and relative cost improvement (r.c.i.) optimum μ T . Hence, in this case a moderate deviation from μ T will likely not lead to a significant cost increase. However, as α becomes larger, i.e., server efficiency is valued more than minimization of congestion, the curve becomes more sharp around μ T , and hence more accurate approximations of μ T are required to achieve an acceptable cost level. Hence, the corrected staffing rule (4.5) proves particularly useful in these cases. Another point we highlight is that the relative improvement is higher for x = 0 than for x = √ 2αλu 2 . Moreover, even though the initial state of the system is above the optimal equilibrium,μ T is smaller than μ ∞ . This is somewhat counter-intuitive. In fact, from (4.4) it follows that μ • positively contributes to the corrected staffing function if E[Q 2 (0)] > 3αλu 2 + 2u 2 3u 3 2αλu 2 .

Conclusion and further research
Motivated by the time-varying nature of queues in practical applications, we studied the impact that the transient phase has on traditional capacity allocation questions. By defining a cost minimization problem in which the objective function contains a correction accounting for the transient period, we identified the leading and secondorder behavior of the cost function as a function of the interval length T . As a byproduct, this result yields an approximation for the actual cost function, which is a refinement to its stationary counterpart. Our numerical experiments in Sect. 5.1 demonstrate the improved accuracy achieved by this approximation in a number of settings. By perturbation analysis of the optimization problem, this furthermore gives rise to a correction to the steady-state optimal capacity allocation of order 1/T . The necessity of the refined capacity allocation level is substantiated by the numerics in Sect. 5.2, which show the cost reduction that can be achieved in a number of settings, compared to settings in which stationary metrics are used. Particularly for small values of T and large values of α, this reduction is significant. Additionally, these results also indicate that it is relatively safe to use the stationary cost when T is moderate, or α is small. The latter reflects the scenario in which QoS is much more valued than service efficiency. This observation links to the flat nature of the cost function around its optimal value for α small, a statement on the optimality gap that we formally proved in Proposition 4. Besides the validation of our theoretical results of Sects. 3 and 4, the numerical results also reveal some phenomena that require more investigation.
As noted, our corrected capacity allocation levelμ T is in most cases studied less than the steady-state optimal value μ ∞ . This implies that congestion levels tend to be higher under our staffing scheme then under stationary staffing. A possible explanation for this may be the fact that the planning period under consideration is finite. Clearly, in the setting we analyzed, anything that happens after time T is neglected. Therefore, it might be beneficial from the cost perspective to end the period with a higher expected congestion level, as it does not need to be canceled out in the future. Related to this observation, it would be interesting to look at the setting in which staffing decisions need to be made in consecutive periods of equal length, in which the arrival rate changes at the start of each period. This case requires careful consideration of the correlation among the staffing decisions within the separate periods.
Another question that arises concerns the translation of our (qualitative) findings to more general queues, in particular the M/G/s queue. Whereas in our analysis the central decision variable is the server speed μ, the variable of interest in multi-server queues is typically the number of servers. It may well be that similar explicit corrections to staffing levels can be deduced to account for transience. Since our analysis heavily relies on the comparability of the sample paths of two single-server queues, which is due to the equal negative drift for the two processes, another approach must be taken to tackle this extension.
The analysis and findings for the single-server queue with Lévy input presented in this paper may serve as a stepping stone for investigation of these more elaborate problems.
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
Hence, for any choice of ε > 0 we can find a valueT such that ΠT (μ) approaches Π ∞ (μ) within distance , which proves the limit.

Appendix 2: Proofs of Section 3 Proof of Lemma 2
Proof Using the representation in (3.2), we write By (3.2) and the strong Markov property holding for Lévy processes [5], observe that which completes the proof.

Proof of Lemma 3
Proof Note that Y z,0 (t) and τ z (w) are intimately related. Namely, due to the fact that X has no negative jumps, In fact, Y z,0 (τ z (w)) = w, which implies that τ z is a right inverse for Y z,0 (t). Therefore, the following equality holds: which implies with the help of Fubini's theorem that
The result for x < y follows directly by the observation Ψ

Proof of Proposition 2
Proof To derive the upper bound for Δ x,y T , we apply the same coupling argument as described in Sect. 3. Let us assume without loss of generality that x > y. In this case, By the decomposition in (3.2), We obtain E[τ w (0) 2 ] with the help of its Laplace transform in (3.8). Namely, As in the previous subsection, we have d Since Υ (0) = μ − λ and we conclude As a direct consequence, ∞ for some θ < 0, then Υ (θ) as in (3.8) has an analytic continuation in the negative half-plane, and in this region Υ (θ) < 0. Consequently, we can replace the upper bound on the tail probability of τ x−u (0) by Along similar lines, we deduce and assuming that E[e −y Q(0) ] < ∞ for all y > 0. The condition E[e Q μ (∞)Υ −1 (−β) ] < ∞ follows from Lemma 1. Hence, the error decays exponentially fast for light-tailed input processes. then Hence, it suffices to prove the convexity of E[Q μ (t)] as a function of μ for all t ≥ 0, and strict convexity for t ≥ ε for some ε ∈ [0, T ).
We distinguish two cases: x > 0 and x = 0. Case x > 0. We start by noticing that if Q μ 1 , Q μ 2 and Q μ 3 experience the same input process U (t), then by absence of negative jumps in U (t), it holds that We use shorthand notation for k = 1, 2, 3. Using representation (9.2) of the workload process, we obtain This partition allows us to spot when strict convexity can occur. Note that by definition . Moreover, by subadditivity of the infimum, and hence D(t) ≥ 0 for t ≥ τ x μ 1 (0). Using the same argument, we deduce In particular, for t < τ x μ 1 (0) this value is strictly positive. As a result, 0)). Accordingly, the latter implies strict positivity of ED(t), and therefore strict convexity of EQ μ (t), if the event (9.4) by the stochastic dominance in (9.3). To ensure the strict inequality in (9.4), we have to enforce the condition P(τ x μ 1 (0) < T ) > 0. (9.5) Remark An example illustrating the need for this condition is the case in which U (t) is a compound Poisson process and T < x/μ 2 < x/μ 1 . Then for all t ∈ [0, T ], since U (t) ≥ 0 and therefore τ x μ 1 (0) > T . Consequently, for all a ∈ (0, 1), proving only convexity of EQ μ (t) and subsequently T 0 E[Q μ (t)] dt. In the case σ > 0, the probability in (9.5) is necessarily positive.
The case x = 0. By the fact that τ μ (0) = 0 for all μ > 0, proving that D(t) > 0 in the case x = 0 reduces to showing that the probability of happening is positive for all t > 0. Define We note that t 0 , as defined above, also defines the epoch of the start of a new excursion of the reflection Q μ for all μ > 0. Namely, Then Q μ (t 0 −) = 0 for all μ > 0. By virtue of the strong Markov Property, note that Hence, we assume without loss of generality that t 0 = 0. Again, we have a stochastic dominance relation similar to (9.3): for all μ 1 < μ 3 < μ 2 . Then Clearly, D(t) ≥ 0 for all t ≥ 0 and forτ μ 3 ≤ t <τ μ 1 . Hence, in a similar manner to (9.4), The last inequality is satisfied if P(τ μ 1 < T ) > 0, which is equivalent to P(U (T ) − μT ≤ 0) > 0, a condition that is clearly true for all our choices of U . In conclusion, for x = 0, E[D(t)] > 0 and therefore E[Q μ (t)] is a strictly convex function of μ.
for any strictly convex function h with minimizer x h . Note that x h > u l implies h(x h ) − h(u l ) < 0 and for all δ > 0 we get by strict convexity , h is decreasing in u l . Moreover, if h is decreasing at u l , then it is decreasing for all y < u l , by arguments similar to the above. Therefore, h(u l − δ) > h(u l ) for all δ > 0 and it must hold that x h > u l . Define f (u l ) − f (u l − δ) := w l < 0, then, again by pointwise convergence, we have that Hence, for sufficiently large n, we also have x n > u l . Fix N = max{N l , N r }. Then, for n ≥ N , x n ∈ (u l , u r ). That is, the sequence x n is bounded. Therefore, by the theorem of Bolzano-Weierstrass, x n has to have a convergent subsequence. That is, there exists a sequence n k such that n k → ∞ and x n k → a as k → ∞ for some a ∈ [u l , u r ]. We prove that every subsequence must converge to x by contradiction. Suppose there exists a subsequence n k such that x n k → a = x. Since, x n ∈ [u l , u r ] for n ≥ N , we may restrict our attention on the sequence of functionsf n : [u l , u r ] → R + , consisting of the original function f n restricted to the domain [u l , u r ]. To be precise, x n = arg min y f n (y) = arg min yfn (y) for n ≥ N . Becausef n andf are bounded, we furthermore havef n →f uniformly. Fix ε > 0. By uniform convergence, there exists K 0 ∈ N such that |f n k (y) −f (y)| < ε/2, ∀k ≥ K 0 , y ∈ [u l , u r ].
Hence, we conclude lim k→∞fn k (x n k ) = f (a). Therefore, lim sup n→∞ f n (x n ) ≥ f (a) > f (x), by minimality of x. However, f n (x n ) ≤ f n (x), which implies lim sup n→∞ f n (x n ) ≤ lim n→∞ f n (x) = f (x), contradicting the strict inequality above. Hence, we deduce x = a. Consequently, every subsequence of x n converges to x and therefore x n → x as n → ∞. Applying Lemma 5 to the functions Π T and Π ∞ with x 0 = λ, together with Lemma 4, we obtain the result immediately.

Proof of Proposition 4
Proof Note that Π ∞ is a smooth function. By the first optimality condition, Π ∞ (μ ∞ ) = 0. We first prove that also Π T (μ) is differentiable with respect to μ for all μ ≥ 0. Recall (2.4), which defines the cost function as a combination of the accumulated expected transient queue length, and linear staffing costs. The latter term is clearly differentiable; hence, it remains to be proved that withτ 0 (u) as defined in (3.6).
Since −X μ is a process with no positive jumps, we may apply Corollary VII3 of [8], which states that the following equivalence between measures holds: s P(τ 0 (u) ∈ ds)du = u P(−X μ (s) ∈ du)ds, (9.8) so that x/s+μ P(U (λs)/s > w) dw ds, (9.12) where the interchange of integrals is justified by Fubini's theorem and this last form is differentiable with respect to μ. Substituting Q(0) for x straightforwardly yields differentiability of the complete cost function Π T for all T . Consequently, we invoke the first optimality condition for μ T to find for some ξ ∈ [μ T , μ ∞ ]. Rearranging this gives for T → ∞, since both μ T − μ ∞ and Ψ T (μ ∞ ) are o (1). Let By (3.9) we have Together with Π ∞ (μ) = λu 2 (μ − λ) 3 and (4.3) we obtain the expression for μ • in (4.4).