LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
qsys_gig1_approx_myskja.m
1function [W,rhohat]=qsys_gig1_approx_myskja(lambda,mu,ca,cs,q0,qa)
2% [W,RHOHAT]=QSYS_GIG1_APPROX_MYSKJA(LAMBDA,MU,CA,CS,Q0,QA)
3%
4% Myskja's third-moment approximation of the mean waiting time
5% Wq = rho/(2*mu*(1-rho))*((1+cs^2)+(q0/qa)^(1/rho-rho)*(1/rho)*(ca^2-1))
6% exact for M/G/1 (ca=1). The returned W adds the mean service time
7% (response time, time in system).
8%
9% qa = third relative moment E[X^3]/6/E[X]^3, X=inter-arrival time r.v.
10% q0 = lowest value of the relative third moment for a given mean and SCV
11
12rho=lambda/mu;
13Wq=rho/(2*mu*(1-rho))*((1+cs^2)+(q0/qa)^(1/rho-rho)*(1/rho)*(ca^2-1));
14W=Wq+1/mu;
15rhohat = W*lambda/(1+W*lambda); % so that M/M/1 formulas still hold
16end