<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">AJOR</journal-id><journal-title-group><journal-title>American Journal of Operations Research</journal-title></journal-title-group><issn pub-type="epub">2160-8830</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ajor.2020.104009</article-id><article-id pub-id-type="publisher-id">AJOR-101696</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  An Algorithm for Estimating the Expected Number of Customers for a Class of Markovian Queueing Systems
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Hung-Yuan</surname><given-names>Tu</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Hillel</surname><given-names>Kumin</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>School of Industrial and Systems Engineering, University of Oklahoma, Norman, USA</addr-line></aff><pub-date pub-type="epub"><day>16</day><month>06</month><year>2020</year></pub-date><volume>10</volume><issue>04</issue><fpage>132</fpage><lpage>137</lpage><history><date date-type="received"><day>19,</day>	<month>May</month>	<year>2020</year></date><date date-type="rev-recd"><day>21,</day>	<month>July</month>	<year>2020</year>	</date><date date-type="accepted"><day>24,</day>	<month>July</month>	<year>2020</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  An algorithm is presented for estimating the expected number of customers for a class of Markovian queueing systems. The class is characterized by those systems whose transition matrix for the underlying customer arrival and departure process is finite, irreducible, and aperiodic. The algorithm does not depend on a closed-form solution for the limiting behavior of the queue. The expected number of customers is frequently used as a measure of effectiveness to describe the behavior of the system or to optimize its design or control. To calculate such a quantity one must usually obtain a closed-form expression for the steady-state probabilities. Unfortunately, of the myriad of Markovian queueing systems, only a few have known closed-form expressions for their steady-state probabilities. The most well-known, using Kendall’s notation, are the M/M/1 and the M/M/c system. The algorithm described below estimates the expected number in the system under steady-state without a need for closed form steady-state probabilities. All that is needed is the transition matrix for the underlying Markov chain.
 
</p></abstract><kwd-group><kwd>Queueing Systems</kwd><kwd> Markov Chain</kwd><kwd> Expected Number in System</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Preliminaries</title><p>Consider a Markovian queueing system in which the customer arrival and departure process is described by a finite, irreducible, and aperiodic Markov Chain { X n : n = 0 , 1 , ⋯ } whose N &#215; N transition matrix is given by A = ( a i j ) , where a i j = p r { X n = j | X n + 1 = i } .</p><p>It is well known that for a finite, irreducible, aperiodic Markov chain, there exists a unique stationary probability vector V = ( v 0 , ⋯ , v 0 ) such that V A = V [<xref ref-type="bibr" rid="scirp.101696-ref1">1</xref>].</p><p>Let L = Expected number of customers in the steady state system. The expected number of customers is frequently used as a measure of effectiveness to describe the behavior of the system or to optimize its design or control [<xref ref-type="bibr" rid="scirp.101696-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.101696-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.101696-ref4">4</xref>], and [<xref ref-type="bibr" rid="scirp.101696-ref5">5</xref>]. Now define the following</p><p>F = ( 0 , 1 , ⋯ , N − 1 ) t</p><p>A Z F = ( w 0 ( z ) , ⋯ , w N − 1 ( z ) ) t = W ( z )</p><p>w _ ( z ) = min i { w i ( z ) : i = 0 , 1 , ⋯ , N − 1 }</p><p>w &#175; ( z ) = max i { w i ( z ) : i = 0 , 1 , ⋯ , N − 1 }</p><p>L ^ ( z ) = ( w &#175; ( z ) + w _ ( z ) ) 2</p><p>Theorem 1 For any positive integer z,</p><p>1)</p><p>| L − L ^ ( z ) | ≤ ( w &#175; ( z ) + w _ ( z ) ) 2</p><p>2)</p><p>lim z → ∞ L ^ ( z ) = L</p><p>Proof.</p><p>1)</p><p>L = V F = V A Z F = ∑ v i w i ( z )</p><p>since w i ( z ) ≤ w &#175; ( z )</p><p>then,</p><p>∑ v i w i ( z ) ≤ ∑ v i w &#175; ( z ) = w &#175; ( z ) ∑ v i = w &#175; ( z )</p><p>Similarly, since</p><p>w i ( z ) ≥ w &#175; ( z )</p><p>we have,</p><p>∑ v i w i ( z ) ≥ ∑ v i w _ ( z ) = w _ ( z ) ∑ v i = w _ ( z )</p><p>thus</p><p>L − L ^ ( z ) ≤ w &#175; ( z ) − ( w &#175; ( z ) + w _ ( z ) ) 2 = ( w &#175; ( z ) − w _ ( z ) ) 2</p><p>and</p><p>L − L ^ ( z ) ≥ w &#175; ( z ) − ( w &#175; ( z ) + w _ ( z ) ) 2 = − ( w &#175; ( z ) − w _ ( z ) ) 2</p><p>It follows that</p><p>| L − L ^ ( z ) | ≤ ( w &#175; ( z ) + w _ ( z ) ) 2</p><p>2) Let A z = ( p 0 ( z ) , ⋯ , p N − 1 ( z ) ) t , where p i ( z ) is the ( i + 1 ) th row of A z . Since we are concerned with finite, irreducible, aperiodic Markov chains, we have</p><p>lim z → ∞ p i ( z ) = V</p><p>For all i. It follows that</p><p>lim n → ∞ w i ( z ) = lim z → ∞ p i ( z ) F = V F = L</p><p>For all i. Let ( s n ) be the sequence formed by combining the N sequences ( w 0 ( z ) ) , ⋯ , ( w N − 1 ( z ) ) according to the ascendant order of z. Clearly,</p><p>lim z → ∞ s n = L</p><p>Since ( w &#175; ( z ) ) and ( w _ ( z ) ) are both subsequence of ( s n ) , it is clear that</p><p>lim z → ∞ w &#175; ( z ) = lim z → ∞ w _ ( z ) = L</p><p>It therefore follows that</p><p>lim z → ∞ L ^ ( z ) = lim z → ∞ ( w &#175; ( z ) + w _ ( z ) ) 2 = ( lim z → ∞ w &#175; ( z ) + lim z → ∞ w _ ( z ) ) 2 = L + L 2 = L .</p></sec><sec id="s2"><title>2. Algorithm for Estimating the Expected Number of Customers</title><p>The relationship between L ^ and L as stated in Theorem 1 can be used to develop an iterative algorithm for estimating the expected number of customers from the system’s transition matrix.</p><p>Definition 1</p><p>The absolute error of an estimation is the absolute value of the difference between the estimation and the true value. When the true value is unknown, the largest absolute error that may occur is called the maximal absolute error.</p><p>Definition 2</p><p>The relative error of an estimation is the ratio of the absolute error of the estimation to the true value. When the true value is unknown, the largest relative error that may occur is called the maximal relative error.</p><p>The algorithm can now be stated as follows:</p><p>Step 1. Determine the allowable maximal absolute error a.</p><p>Step 2. Set z = 0 and W ( 0 ) = ( 0 , ⋯ , N − l ) t .</p><p>Step 3. Compute W ( z + 1 ) = A W ( z ) .</p><p>Step 4. If ( w &#175; ( z + 1 ) − w _ ( z + 1 ) ) 2 ≤ a , go to step 5; otherwise, increase z by 1 then go to step 3.</p><p>Step 5. The desired accuracy has been reached. Let L = L ^ ( z + 1 ) = ( w &#175; ( z + 1 ) + w _ ( z + 1 ) ) 2 . Terminate</p><p>Theorem 2 Let L ^ ( n ) be the estimation of the expected number of customers obtained from the Algorithm above. Using an allowable maximal absolute error of a, we then have that</p><p>1) The maximal absolute error of L ^ ( n ) is a,</p><p>2) The maximal relative of L ^ ( n ) is a ( L ^ ( n ) − a )</p><p>Proof. 1) Step 4 of the algorithm implies ( w &#175; ( n ) − w _ ( n ) ) 2 ≤ a . Thus, by Theorem 1, | L − L ^ ( n ) | ≤ ( w &#175; ( n ) − w _ ( n ) ) 2 ≤ a . Hence, the maximal absolute error of L ( n ) is a.</p><p>2) The maximal relative error occurs when L = L ^ ( n ) − a . Thus, the maximal relative error = | L ^ ( n ) − L | L = | L ^ ( n ) − ( L ^ ( n ) − a ) | ( L ^ ( n ) − a ) = a ( L ^ ( n ) − a )</p><p>The allowable error associated with the algorithm above is specified in terms of the maximal absolute error, and is thus independent of the magnitude of the expected number of customers. If one needs to associate the error of the estimation with the magnitude of the expected number of customers, then the algorithm may be modified as follows:</p><p>Step 1. Determine the allowable maximal relative error r.</p><p>Step 2. Set z = 0 and W ( 0 ) = ( 0 , ⋯ , N − l ) t</p><p>Step 3. Compute W ( z + 1 ) = A W ( z )</p><p>Step 4. If ( w &#175; ( z + 1 ) − w _ ( z + 1 ) ) 2 ≤ r L ^ ( z + 1 ) ( 1 + r ) , go to step 5; otherwise, increase z by 1 then go to step 3.</p><p>Step 5. The desired accuracy has been reached. Let L = L ^ ( z + 1 ) = ( w &#175; ( z + 1 ) + w _ ( z + 1 ) ) 2 . Terminate.</p><p>Theorem 3 let L ^ ( n ) be the estimation of the expected number of customers obtained from the modified algorithm above, using an allowable maximal relative error of r, then</p><p>1) The maximal absolute error of the L ^ ( n ) is r L ^ ( n ) ( 1 + r )</p><p>2) The maximal relative error of L ^ ( n ) is r</p><p>Proof. 1) Step 4 of the modified algorithm 2 implies ( w &#175; ( n ) − w _ ( n ) ) 2 ≤ r L ^ ( n ) ( 1 + r ) .</p><p>Thus, by Theorem 1, | L − L ^ ( n ) | ≤ ( w &#175; ( n ) − w _ ( n ) ) 2 ≤ r L ^ ( n ) ( 1 + r ) . Hence the maximal absolute error of L ^ ( n ) is r L ^ ( n ) ( 1 + r ) .</p><p>2) The maximal relative error occurs when L = L ^ ( n ) − r L ^ ( n ) ( 1 + r ) . Thus the maximal relative error = | L ^ ( n ) − L | L = | L ^ ( n ) − ( L ^ ( n ) − r L ^ ( n ) ( 1 + r ) ) | ( L ^ ( n ) − r L ^ ( n ) ( 1 + r ) ) = r</p><p>Thus, the initial algorithm will have a maximal absolute error of a, and a maximal relative error of a ( L ^ ( n ) − a ) . The modified algorithm will have a maximal absolute error of r L ^ ( n ) ( 1 + r ) and a maximal relative error of r.</p></sec><sec id="s3"><title>3. Numerical Example (<xref ref-type="table" rid="table1">Table 1</xref>)</title><p>Consider the M/M/c/c queueing system with finite waiting space. Assume that customers arrive according to a Poisson process with rate λ, and that service times are exponential with mean 1/&#181;. Although the process that describe the number of customers in the system at time is a process that take place in continues time, several relevant Markov chains may be defined for this system in discrete time. For example, consider the Markov chain whose transition is given by</p><p>A = a i j = [ 1 − λ λ μ 1 − λ − μ λ 2 μ 1 − λ − 2 μ λ ⋱ ⋱ ( c − 1 ) μ 1 − λ − ( c − 1 ) μ λ c μ 1 − c μ ]</p><p>where λ and μ have been scaled such that A is a legitimate transition matrix, a is set at 0.01, and L is computed using the following formulas for the M/M/c/c (Erlang B) system [<xref ref-type="bibr" rid="scirp.101696-ref6">6</xref>].</p><p>Let</p><p>B ( c , r ) = p c = r c c ! ∑ i = 0 c r i i !</p><p>where r = λ μ and let</p><p>C ( c , r ) = c B ( c , r ) c − r + r B ( c , r )</p><p>then L q = r c − r C ( c , r ) and L = L q + r ( 1 − p c ) where L q is the expected number in the queue.</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> M/M/c/c system</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Arrival rate</th><th align="center" valign="middle"  rowspan="2"  >No. of servers</th><th align="center" valign="middle"  rowspan="2"  >Service rate</th><th align="center" valign="middle"  colspan="2"  >Expected number of customers</th></tr></thead><tr><td align="center" valign="middle" >L</td><td align="center" valign="middle" >Algorithm</td></tr><tr><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >2.4678</td><td align="center" valign="middle" >2.4694</td></tr><tr><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.9834</td><td align="center" valign="middle" >1.9842</td></tr><tr><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >5</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.9664</td><td align="center" valign="middle" >1.9683</td></tr><tr><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >0.08</td><td align="center" valign="middle" >5.3058</td><td align="center" valign="middle" >5.3076</td></tr><tr><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >0.08</td><td align="center" valign="middle" >2.6583</td><td align="center" valign="middle" >2.6596</td></tr><tr><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >5</td><td align="center" valign="middle" >0.08</td><td align="center" valign="middle" >2.4560</td><td align="center" valign="middle" >2.4579</td></tr><tr><td align="center" valign="middle" >0.15</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >2.9630</td><td align="center" valign="middle" >2.9644</td></tr><tr><td align="center" valign="middle" >0.15</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.5353</td><td align="center" valign="middle" >1.5373</td></tr><tr><td align="center" valign="middle" >0.15</td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.4728</td><td align="center" valign="middle" >1.4741</td></tr><tr><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >3.9100</td><td align="center" valign="middle" >3.9115</td></tr><tr><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >5</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >3.0241</td><td align="center" valign="middle" >3.0253</td></tr><tr><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >2.9427</td><td align="center" valign="middle" >2.9442</td></tr></tbody></table></table-wrap><p>These computations were made on a 64-bit Intel<sup>&#210;</sup> Core<sup>TM</sup> m3-6Y30 CPU @ 0.90 GHZ laptop computer.</p></sec><sec id="s4"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s5"><title>Cite this paper</title><p>Tu, H.-Y. and Kumin, H. (2020) An Algorithm for Estimating the Expected Number of Customers for a Class of Markovian Queueing Systems. American Journal of Operations Research, 10, 132-137. https://doi.org/10.4236/ajor.2020.104009</p></sec></body><back><ref-list><title>References</title><ref id="scirp.101696-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Cinlar, E. (1975) Introduction to Stochastic Processes. Prentice-Hall, New Jersey.</mixed-citation></ref><ref id="scirp.101696-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Brigham, G. (1955) On a Congestion Problem in an Aircraft Factory. Operations Research, 3, 412-428. https://doi.org/10.1287/opre.3.4.412</mixed-citation></ref><ref id="scirp.101696-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Kumin, H. (1973) On Characterizing the Minimum of a Function of Two Variables, One of Which Is Discrete. Management Science, 20, 126-129. https://doi.org/10.1287/mnsc.20.1.126</mixed-citation></ref><ref id="scirp.101696-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Smith, J.M. (2004) Optimal Design and Performance Modelling of M/G/1/K Queueing Systems. Mathematical and Computer Modelling, 39, 1049-1081. https://doi.org/10.1016/S0895-7177(04)90534-1</mixed-citation></ref><ref id="scirp.101696-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Stidham, S. (2009) Optimal Design of Queueing Systems. CRC Press, New York. https://doi.org/10.1201/9781420010008</mixed-citation></ref><ref id="scirp.101696-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Gross, D., Shortle, J., Thompson, H. and Harris, C. (2008) Fundamentals of Queueing Theory. John Wiley &amp; Sons, New York. https://doi.org/10.1002/9781118625651</mixed-citation></ref></ref-list></back></article>