Accepted Manuscript The M/M/1+M queue with a utility-maximizing server Dongyuan Zhan, Amy R. Ward
PII: DOI: Reference:
S0167-6377(18)30218-9 https://doi.org/10.1016/j.orl.2018.08.004 OPERES 6386
To appear in:
Operations Research Letters
Received date : 9 May 2018 Revised date : 26 July 2018 Accepted date : 23 August 2018 Please cite this article as: D. Zhan, A.R. Ward, The M/M/1+M queue with a utility-maximizing server, Operations Research Letters (2018), https://doi.org/10.1016/j.orl.2018.08.004 This is a PDF file of an unedited manuscript that has been accepted for publication. As a service to our customers we are providing this early version of the manuscript. The manuscript will undergo copyediting, typesetting, and review of the resulting proof before it is published in its final form. Please note that during the production process errors may be discovered which could affect the content, and all legal disclaimers that apply to the journal pertain.
The M/M/1+M Queue with a Utility-Maximizing Server Dongyuan Zhana , Amy R. Wardb a School
b Booth
of Management, University College London, London E14 5AB,
[email protected] School of Business, University of Chicago, Chicago, IL 60637,
[email protected]
Abstract We consider an M/M/1+M queue with a human server, who is influenced by incentives. Specifically, the server chooses his service rate by maximizing his utility function. Our objective is to guarantee the existence of a unique maximum. The complication is that most sensible utility functions depend on the server utilization, a non-simple expression. We derive a property of the utilization that guarantees quasiconcavity of any utility function that multiplies the server’s concave (including linear) “value” of his service rate by the server utilization. Keywords: M/M/1+M, Utilization, Server Utility, Endogenous Service Rate 1. Introduction Traditional single-server queueing models assume the service rate is exogeneous. This is sensible when the server is a machine. However, when the server is human, the balance between payment and required effort determines the resulting service rate. We model this by assuming the server has a utility function, and that the service rate emerges when the server maximizes his utility function. The relevant question is: When does there exist a unique service rate? We answer this question in the context of a singleserver queue with abandonment. Customers arrive to the system according to a Poisson process at rate λ, and the maximum amount of time each customer is willing to wait for service is an independent random sample from an exponential distribution with mean 1/θ. Any customer whose wait exceeds that maximum abandons the system without receiving service. Service times are independent and exponential, and, for a given utility function U, have rate µˆ := argmaxµ∈[µ,µ] U(µ)
(1)
when the maximum is unique, where U is the utility function, and 0 < µ ≤ µ < ∞ are the lower and upper bounds on the possible service rate. In summary, we consider an M/M/1+M queue except that the service rate is determined as in (1). The utility function is assumed to have the form U(µ) := V(µ) × B(µ) ≥ 0, where the non-negative function V is the server’s value of completing µ tasks per time unit and P∞ i−1 Y λ i=1 ai (µ) P for ai (µ) := B(µ) := ∞ 1 + i=1 ai (µ) µ + kθ k=0
is the utilization function, which can be computed in a straightforward manner because the M/M/1+M queue is a birth and Preprint submitted to Operations Research Letters
death process. The function V could model a piece-rate payment to the server, as in [11], in which case V(µ) = pµ, where p ≥ 0 is the payment per finished service. Or, the function V could represent a piece-rate payment that additionally accounts for quality, as in [12]. As a final example, the function V could trade off monetary payment and effort. Then, V(µ) = M(µ) − c(µ), where M is some kind of piece-rate payment function and c represents the per-unit-busy-time cost. The function c would model the decrease in utility caused by increased effort, as is common in labor economics (see [3]). In this paper, we prove the following result. Theorem 1. If V is a concave (including linear) function in µ, then there exists a unique utility-maximizing service rate µ. ˆ The key to the proof of Theorem 1 is the following property of the utilization function in an M/M/1+M queue, that may be helpful in other endogeneous service rate queueing models. Lemma 1.
0 2 00 2 B (µ) − B(µ)B (µ) > 0.
The remainder of this paper is organized as follows. We end this section with a brief literature review. Section 2 proves Theorem 1 under the assumption that Lemma 1 holds. Section 3 proves Lemma 1. Literature Review The service rate that maximizes the server’s utility is solution to a queueing game. There is a large literature on the queueing games, well surveyed by [9] and [8]. Much of that literature assumes a fixed service rate (or rates in the case of a manyserver model), and focuses on how utility-maximizing customer decisions (such as whether or not to queue, and behind which server to queue) affect system performance. Some exceptions (that is, papers that allow the service rates to be the solution July 26, 2018
to a game) are [10], [7],[1], [2], [5], [6]. A main challenge in all these papers is to guarantee the existence and uniqueness of the equilibrium service rate(s), for which the assumptions on the server utility function is critical. However, none of the aforementioned papers allow for customer abandonment.
Figure 1: The service rate as functions of the piece-rate incentive and effort cost μ 20
15
10
2. The Utility-Maximizing Service Rate
5
The server wants to maximize his utility max U(µ) = V(µ)B(µ).
0
µ∈[µ,µ]
10
20
30
40
p
(a) c = 1, r = 2
The issue is to know when the above maximization leads to a unique service rate µ. If there is non-uniqueness, then µˆ in (1) is not well-defined. As a consequence, system performance cannot be predicted through the use of M/M/1+M queueing formulae. Theorem 1 provides a sufficient condition for the maximum in (1) to be unique, implying that the service rate in (1) is well-defined.
μ 20
15
10
5
Proof of Theorem 1 0
1
2
The first order condition of the utility maximization is 0
0
0
5
c
μ 20
0
The second order derivative is 00
4
(b) p = 20, r = 2
U (µ) = V (µ)B(µ) + V(µ)B (µ) = 0.
00
3
15 0
00
U (µ) = V (µ)B(µ) + 2V (µ)B (µ) + V(µ)B (µ) 0 B (µ) V(µ) 00 0 0 00 B(µ)B (µ) − 2(B (µ))2 + 2U (µ) . = V (µ)B(µ) + B(µ) B(µ)
10
5
00
From the concavity of V we know V ≤ 0 so the first term is 0 00 non-positive. From Lemma 1, 2(B (µ))2 − B(µ)B (µ) > 0, and the second term is negative. At a stationary point satisfying 0 00 U (µ) = 0, the third term is zero, and so U (µ) < 0. Hence, any stationary point is a local maximum. Since any stationary point must be a local maximum, there can exist at most one stationary 0 point. In summary, U (µ) has at most one zero point, which is a local maximum, implying quasiconcavity. We end this section with an example in which there is piecerate payment and a convex effort cost; specifically, assume
1.5
2.0
2.5
3.0
r
(c) p = 20, c = 1
3. Proof of Lemma 1 We prove Lemma 1 in three steps: 00
0
• Step 1: We show B (µ)B(µ) − 2(B (µ))2 < 0 is equivalent to ∞ 2 ∞ ∞ X X X 2 ai bi − ai ai (b2i + ci ) > 0, (2)
r
V(µ) = pµ − cµ for µ ≥ 0, c > 0, r > 1. Since V is concave, Theorem 1 guarantees
i=1
µˆ = argmaxµ∈[0,∞] (pµ − cµr )B(µ)
i=1
i=1
for ai as defined earlier and
is unique. Assuming λ = 10, θ = 1, Figure 1 solves for µˆ numerically by changing one parameter among p, c, r and fixing the other two. Consistent with intuition, the service rate increases as the piece-rate incentive p increases, and decreases as the effort cost coefficient c or r increases.
bi =
i−1 X k=0
2
1 , µ + kθ
where N + := {1, 2, · · · }.
ci =
i−1 X k=0
1 , i ∈ N +, (µ + kθ)2
• Step 2: We rewrite (2) as m−1 ∞ X X m=2 j=1
Substituting for the above two expressions shows 0 2 00 B (µ)B(µ) − 2 B (µ) = − (1 − B(µ))3 × ∞ 2 ∞ ∞ X X X 2 2 ai (µ)bi (µ) − ai (µ)(bi (µ) + ci (µ)) . ai (µ)
am− j a j 2bm− j b j − b2j − c j .
Then, for each m ≥ 2, we show that m−1 X j=1
am− j a j 2bm− j b j − b2j − c j
≥ am−J(m) a J(m)
m−1 X j=1
00
Since 1 − B(µ) > 0 for all µ ∈ [µ, µ], showing B (µ)B(µ) − 0 2 2 B (µ) < 0 is equivalent to showing (2). Finally, the two interchanges of summation and derivative we must justify are: 0 P P 0 (i) ∞ ai (µ) = ∞ i=1 ai (µ), 0 Pi=1 P 0 0 ∞ (ii) ∞ i=1 ai (µ)bi (µ) = i=1 ai (µ)bi (µ) + ai (µ)bi (µ). P To show (i), first observe it is straightforward to see ∞ i=1 ai (µ) < ∞ (by, for example, the ratio test), and that ai (µ) is continuous in µ for each i ∈ N + . Then, to establish (i) (see, for examP 0 ple, Theorem 2.4.3 in [4]), we must show ∞ i=1 ai (µ) converges uniformly on every closed bounded subinterval of [µ, µ]. Since 0 ai (µ) = ai (µ)bi (µ) and bi < i/µ for every i ∈ N + , if we define i−1 i λ mi := m λθ (i−1)! for any finite m > µ2 , then
2bm− j b j − b2j − c j ,
where J(m) ∈ {1, · · · , bm/2c} will be defined in that step. • Step 3: We prove that for any m ≥ 2, m−1 X j=1
2bm− j b j − b2j − c j > 0,
which completes the proof. Step 1: 0 We regard ai and bi as functions of µ, and write ai (µ) and 0 + bi (µ) for their derivatives. For any i ∈ N , we have 0
ai (µ) = −ai (µ) 0
bi (µ) = −
i−1 X k=0
i−1 X k=0
i−1 i−1 0 i Y λ iλ Y λ ai (µ) < = 2 < mi , for all µ ∈ [µ, µ]. µ k=0 µ + kθ µ k=1 µ + kθ
The Weierstrass M-test implies the uniform convergence holds P if ∞ i=1 mi < ∞, which is true by the ratio test λi+1 mi+1 = lim = 0. lim i→∞ mi i→∞ θ i2 (i2 +i)λ λ i−1 Similarly, if we re-define mi := (i−1)!µ for any i ∈ N + , 3 θ then 0 0 0 (a (µ)b (µ)) = a (µ)b (µ) + a (µ)b (µ) = a (µ)(b2 (µ) + c (µ))
1 = −ai (µ)bi (µ), µ + kθ
1 = −ci (µ). (µ + kθ)2
Assuming the interchange of summation and derivative, P∞ 0 !0 1 0 i=1 ai (µ) P∞ B (µ) = 1 − = P 2 1 + i=1 ai (µ) 1+ ∞ i=1 ai (µ) ∞ X = −(1 − B(µ))2 ai (µ)bi (µ),
i
0
∞ X
ai (µ)bi (µ)
i=1
∞ 0 X − (1 − B(µ)) ai (µ)bi (µ) 2
i=1
∞ 2 X 3 = −2(1 − B(µ)) ai (µ)bi (µ) − (1 − B(µ))2
i=1 ∞ X
0
ai (µ)bi (µ) + ai (µ)bi (µ)
i=1
∞ 2 X 3 = −2(1 − B(µ)) ai (µ)bi (µ) + (1 − B(µ))2
0
i=1 ∞ X
i
i
i
i−1 Y
i
2
i
!
i
i
i−1 (i + i)λ Y λ = < mi . µ + kθ µ3 k=1 2
λ i i + 2 2 µ + kθ µ µ k=0 P 0 The Weierstrass M-test implies ∞ i=1 (ai (µ)bi (µ)) converges uniformly on every closed bounded subinterval of [µ, µ] if P∞ i=1 mi < ∞, which is true by the ratio test mi+1 λi+2 = lim lim = 0. i→∞ mi i→∞ θ i2 Step 2: We drop the argument µ in ai , bi , ci for i ∈ {1, 2, · · · } for notational convenience. Then from algebra and re-arranging the order of summation terms, ∞ 2 ∞ ∞ X X X 2 ai bi − ai ai (b2i + ci )
and, using the above expression, 00
i
<
i=1
B (µ) = 2(1 − B(µ))B (µ)
i=1
i=1
i=1
i=1 ∞ X ∞ X
=2
i=1 j=1
=
∞ X ∞ X i=1 j=1
ai (µ)(b2i (µ) + ci (µ)).
=
i=1
∞ X m−1 X m=2 j=1
3
i=1
i=1 ∞ X ∞ X
ai bi a j b j −
ai a j (b2j + c j )
i=1 j=1
ai a j 2bi b j − b2j − c j
am− j a j 2bm− j b j − b2j − c j .
Since j < bm/2c, we have j + 1 ≤ m − j − 1. Therefore, µ+1 jθ > 1 µ+(m− j−1)θ , b j+1 ≤ bm− j−1 and b j < bm− j−1 < bm− j . The above is negative. Step 3: From the definition of b j , j ∈ N + ,
To identify a lower bound for the inner summation term, it is helpful to observe the following: (i) First, for ∆(m, j) := 4bm− j b j − b2j − b2m− j − c j − cm− j , m−1 X j=1
am− j a j 2bm− j b j − b2j − c j =
b(m−1)/2c X j=1
m−1 X
∆(m, m/2) am− j a j ∆(m, j) + 1{m is even}; 2
(ii) Second, a j am− j is increasing for j ∈ {1, · · · , bm/2c} because am− j−1 a j+1 = am− j a j =
bm− j b j =
j=1
j=1
j−1 m− j−1 m−1 X X X
λ µ+ jθ λ µ+(m− j−1)θ
j=1 l=0
µ + (m − j − 1)θ > 1 for j ∈ {1, · · · , bm/2c − 1}. µ + jθ
k=0
j−1 j−1−l m−1 X X X 1 1 1 1 = , µ + kθ µ + lθ µ + kθ µ + lθ j=1 l=0 k=0
can be shown through a geometric argument. Define Pm−1 P j−1 Pm− j−1 1 1 . Then f (k, l, j) f (k, l, j) := µ+kθ j=1 l=0 k=0 µ+lθ corresponds to triangular pyramid OABD in Figure 2; Pm−1 P j−1 P j−1−l j=1 l=0 k=0 f (k, l, j) corresponds to triangular pyramid OABC. OABD is equivalent to OABC if we map the points in the direction of j axis since the value of f (k, l, j) is independent of j.
am− j a j ∆(m, j) ≥ am−J(m) a J(m) ∆(m, j) for all j ∈ {1, · · · , bm/2c}. so that
j=1
k=0
Figure 2: The equivalence of two summations
am− j a j 2bm− j b j − b2j − c j
k m-2 D
b(m−1)/2c X ∆(m, m/2) 1{m is even} ∆(m, j) + ≥ am−J(m) a J(m) 2 j=1
= am−J(m) a J(m)
m−1 X j=1
j−1 m−1 X X 1 1 1 X 1 = . µ + kθ l=0 µ + lθ µ + kθ µ + lθ j=1 k+l< j
The second equality, which is equivalent to
Suppose we can show that for every positive integer m ≥ 2, there exists an integer J(m) such that ∆(m, j) < 0 for j ∈ {1, · · · , J(m) − 1} and ∆(m, j) ≥ 0 for j ∈ {J(m), · · · , bm/2c}. Then, also using (i) and (ii) above,
m−1 X
j−1 m−1 m− X X
C k=m-1-j
2bm− j b j − b2j − c j .
Note that the above equality is still valid if ∆(m, j) > 0 for all j ∈ {1, · · · , bm/2c} (J(m) = 1) or if ∆(m, j) ≤ 0 for all j ∈ {1, · · · , bm/2c} (J(m) = bm/2c). Now we justify the existence of J(m) for any m ≥ 2 by showing the monotonicity of ∆(m, j) in j when j ∈ {1, · · · , bm/2c}. Specifically, for j ∈ {1, · · · , bm/2c − 1},
(1,0,0)
B m-1
O
m-2
∆(m, j) − ∆(m, j + 1)
l=j-1
j
A
l
= 4(bm− j b j − bm− j−1 b j+1 ) + (b2j+1 − b2j ) − (b2m− j − b2m− j−1 )
+ (c j+1 − c j ) − (cm− j − cm− j−1 ) ! ! bm− j−1 bj 2b j+1 1 =4 − + + − µ + jθ µ + (m − j − 1)θ µ + jθ (µ + jθ)2 ! 2bm− j 1 − − µ + (m − j − 1)θ (µ + (m − j − 1)θ)2 1 1 + − (µ + jθ)2 (µ + (m − j − 1)θ)2 ! bm− j−1 bj =2 − + µ + jθ µ + (m − j − 1)θ 2 bm− j−1 − b j+1 2 bm− j − b j − − . µ + jθ µ + (m − j − 1)θ
Next, algebra gives m−1 X j=1
2bm− j b j − b2j − c j
2 j−1 j−1 m−1 X X X X 1 1 1 1 2 = − − . 2 µ + kθ µ + lθ µ + kθ (µ + kθ) j=1 k=0 k+l< j k=0
To complete the proof, it is sufficient to show each term in the above summation is positive. This follows from the following 4
sequence of equalities
[8] R. Hassin, Rational queueing, CRC Press, 2016 [9] R. Hassin, M. Haviv, To queue or not to queue: Equilibrium behavior in queueing systems, Kluwer Academic Publishers, 2003. [10] E. Kalai, M. I. Kamien, M. Rubinovitch, Optimal service speeds in a competitive environment, Manag. Sci. 38(8), (1992) 1154-1163. [11] Z.J. Ren, Y.P. Zhou, Call center outsourcing: Coordinating staffing level and service quality, Manag. Sci. 54(2), (2008) 369-383. [12] D. Zhan, A.R. Ward, Incentive based service system design: Staffing and compensation to trade off speed and quality, 2017 (working paper).
j−1 2 j−1 X 1 X 1 X 1 1 − 2 − µ + kθ µ + lθ µ + kθ (µ + kθ)2 k=0 k=0 k+l< j j−1 j−1
X
j−1
XX 1 X 1 1 1 1 =2 − − µ + kθ µ + lθ µ + kθ µ + lθ (µ + kθ)2 k+l< j k=0 l=0 k=0
j−1 X X 1 1 1 1 1 = − − µ + kθ µ + lθ µ + kθ µ + lθ (µ + kθ)2 k+l< j k< j,l< j,k+l≥ j k=0 X X X 1 1 1 1 = − + 2 µ + kθ µ + lθ (µ + kθ) (µ + kθ)2 k+l≤ j−1,k,l j/2≤k< j k< j/2
X
X
j−1
X 1 1 1 − µ + kθ µ + lθ (µ + kθ)2 k=0 k< j,l< j,k+l≥ j,k,l X X 1 1 1 1 = + µ + kθ µ + lθ µ + kθ µ + lθ k+l≤ j−2,k,l k+l= j−1,k,l X X 1 1 1 − −2 . µ + kθ µ + lθ (µ + kθ)2 k< j,l< j,k+l≥ j,k,l j/2≤k< j −
For any pair (k, l) in the set {(k, l)|0 ≤ k ≤ j − 1, 0 ≤ l ≤ j − 1, k + l ≤ j − 2, k , l}, ( j − 1 − k, j − 1 − l) is in the set {(k, l)|0 ≤ k ≤ j − 1, 0 ≤ l ≤ j − 1, k + l ≥ j, k , l}, and vice versa. Therefore, X X 1 1 1 1 − µ + kθ µ + lθ µ + kθ µ + lθ k+l≤ j−2,k,l k< j,l< j,k+l≥ j,k,l ! X 1 1 1 1 = − . µ + kθ µ + lθ µ + ( j − 1 − l)θ µ + ( j − 1 − k)θ k+l≤ j−2,k,l Note that j − 1 − k > l and j − 1 − l > k, hence the above is positive. Meanwhile, X X 1 2 1 1 = µ + kθ µ + lθ µ + kθ µ + ( j − 1 − k)θ j/2≤k< j k+l= j−1,k,l X 2 > . (µ + kθ)2 j/2≤k< j
References [1] G.P. Cachon, P.T Harker, Competition and outsourcing with scale economies, Manag. Sci. 48(10), (2002) 1314-1333. [2] G.P. Cachon, F. Zhang, Obtaining fast service in a queueing system via performance-based allocation of demand, Manag. Sci. 53(3), (2007) 408420. [3] P. Cahuc, A. Zylberberg, Labor Economics, MIT Press, 2004. [4] G. Casella, R. L. Berger. Statistical Inference, 2nd Ed, Duxbury Press, 2002 [5] L.G Debo, L.B. Toktay, L.N. Van Wassenhove, Queuing for Expert Services, Manag. Sci. 54(8), (2008) 1497-1512. [6] X. Geng, W.T. Huh, M. Nagarajan, Fairness among servers when capacity decisions are endogenous. Production and Operations Management, 24(6) (2015) 961-974. [7] S.M. Gilbert, Z.K. Weng, Incentive effects favor nonconsolidating queues in a service system: The principal-agent perspective, Manag. Sci. 44(12), (1998) 1662-1669.
5