LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
matlab
src
api
qsys
qsys_gigk_approx.m
1
function [W,rhohat]=qsys_gigk_approx(lambda,mu,ca,cs,k)
2
% W=QSYS_GIGK_APPROX(LAMBDA,MU,CA,CS,K)
3
rho = lambda / (mu*k);
4
if
rho>0.7
5
alpha = (rho^k+rho)/2;
6
else
7
alpha = rho^((k+1)/2);
8
end
9
W = (alpha/mu)*(1/(1-rho))*(ca^2+cs^2)/(2*k) + 1/mu; % includes service time
10
rhohat = W*lambda/(1+W*lambda); % so that M/M/1 formulas still hold
11
end
Generated by
1.9.8