<< Chapter < Page | Chapter >> Page > |
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
Long-run probabilities for large servers,
For ,
For ,
For
For
For
For large t , with the system in equilibrium
For
For
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
Notification Switch
Would you like to follow the 'Topics in applied probability' conversation and receive update notifications?