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