<< Chapter < Page Chapter >> Page >
Basic theory of one- and two-server ques with Poisson arrivals and exponential servers. Matlab calculations provide numerical examples.

A standard model of a queueing system with a single waiting line and one or more servers assumes that “customers” arrive according to a Poisson process withrate ( λ ) . The customer at the head of the line goes to the first available server, if there are more than one, or to the single server as soonas available, if there is only one. The servers operate independently (of each other and the arrival process), each with exponential service time. We supposeeach server has the same distribution, exponential ( μ ) . Such a system may be analyzed as a Markov birth-death process. An analysis of the long-runprobabilities and expectations of various quantities after the system has settled down to equilibrium yields the results below.

Calculation of these quantities is straightforward, but somewhat tedious if various cases are considered. Matlab procedures for single-server andtwo-server systems are utilized to make these calculations quickly and to present them in a useful way.

Notation

  • N t = number in system (in service and waiting) at time t
  • Q t = number waiting to be served at time t
  • π j = lim t p i j ( t ) = long-run probability of being in state j
  • W t = waiting time for service for customer who arrives at time t
  • D t = waiting time plus service time for customer who arrives at time t
  • A = random variable with distribution of interarrival times
  • S = random variable with distribution of service times

Long-run probabilities π j = P ( N t = j ) for large t , s servers, E [ A ] = 1 / λ , E [ S ] = 1 / μ

For s = 1 ,

  • ρ = E [ S ] / E [ A ] = λ / μ
  • π 0 = 1 - ρ π n = ( 1 - ρ ) ρ n
  • N t is approximately geometric ( 1 - ρ )

For s > 1 ,

  • ρ = E [ S ] / s E [ A ] = λ / s μ
  • π n = π 0 ( s ρ ) n / n ! = π 0 ( λ / μ ) n / n ! 0 n s π 0 ( s s / s ! ) ρ n = π 0 [ ( s ρ ) s / s ! ] ρ n - s s < n

For s = 2

  • π 0 = 1 - ρ 1 + ρ = 2 μ - λ 2 μ + λ

For s = 3

  • π 0 = 1 - ρ 1 + 2 ρ + 3 2 ρ 2

For s = 4

  • π 0 = 1 - ρ 1 + 3 ρ + 8 ρ 2 + 8 3 ρ 3

For large t , with the system in equilibrium

E [ D t ] = E [ A ] E [ N t ] and E [ W t ] = E [ A ] E [ Q t ] E [ S ] E [ N t ]

For s = 1

  • E [ N t ] = ρ 1 - ρ = λ μ - λ
  • E [ Q t ] = ρ E [ N t ] P ( N t > 0 ) = ρ
  • E [ W t ] = E [ S ] E [ N t ] = λ / μ μ - λ
  • D t is approximately exponential ( μ - λ )

For s > 1

  • C = P ( W t > 0 ) = π 0 ( s ρ ) s s ! ( 1 - ρ ) = E [ Q t ] 1 - ρ ρ = s μ ( 1 - ρ ) E [ W t ]
  • P ( W t > v ) = C e - ( μ s - λ ) v v 0
  • P ( D t > v ) = e - μ v 1 + C μ 1 - e - [ μ ( s - 1 ) - λ ] v μ ( s - 1 ) - λ for λ μ ( s - 1 )
  • P ( D t > v ) = e - μ v [ 1 + μ C v ] for λ = μ ( s - 1 )
  • E [ Q t ] = π 0 ( s ρ ) s s ! ρ ( 1 - ρ ) 2
  • E [ N t ] E [ Q t ] + λ μ = E [ Q t ] + s ρ

Matlab calculations for single server queue (in file queue1.m)

L = input('Enter lambda '); % Type desired value, no extra space M = input('Enter mu '); % Type desired value, no extra spacea = [' lambda mu'];b = [L M];disp(a) disp(b)r = L/M; % RhoEN = r/(1 - r); % E[N]EQ = r*EN; % E[Q]EW = EQ/L; % E[W]ED = EN/L; % E[D]A = [' rho EN EQ EW ED']; % Identifies entries in B B = [r EN EQ EW ED]; disp(A)disp(B)v = input('Enter row matrix of values v '); % Type matrix of desired valuesPD = exp(-M*(1 - r)*v); % Calculates P(Dt>v)S = [' v P(D>v)'];s = [v; PD]';disp(S) disp(s)
queue1Enter lambda 0.1 Enter mu 0.2lambda mu 0.1000 0.2000rho EN EQ EW ED0.5000 1.0000 0.5000 5.0000 10.0000Enter row matrix of values v [8 16 24]v P(D>v) 8.0000 0.449316.0000 0.2019 24.0000 0.0907

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Topics in applied probability. OpenStax CNX. Sep 04, 2009 Download for free at http://cnx.org/content/col10964/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Topics in applied probability' conversation and receive update notifications?

Ask