LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
qsys_gig1_approx_kimura.m
1function [W,rhohat]=qsys_gig1_approx_kimura(lambda,mu,ca,cs)
2% [W,RHOHAT]=QSYS_GIG1_APPROX_KIMURA(LAMBDA,MU,CA,CS)
3%
4% Kimura's diffusion-interpolation approximation of the mean waiting time
5% Wq = rho*(ca^2+cs^2)/(mu*(1-rho)*(1+ca^2))
6% exact for M/M/1 and M/G/1. The returned W adds the mean service time
7% (response time, time in system).
8%
9% Reference: Kimura, T. (1986). A two-moment approximation for the mean
10% waiting time in the GI/G/s queue. Management Science 32(6), 751-763.
11
12rho=lambda/mu;
13Wq=rho*(ca^2+cs^2)/mu/(1-rho)/(1+ca^2);
14W=Wq+1/mu;
15rhohat = W*lambda/(1+W*lambda); % so that M/M/1 formulas still hold
16end