LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
pfqn_qzgbup.m
1%{
2%{
3 % @file pfqn_qzgbup.m
4 % @brief Upper asymptotic bound on queue length (Zahorjan-Gittelsohn-Bryant).
5%}
6%}
7
8%{
9%{
10 % @brief Upper asymptotic bound on queue length (Zahorjan-Gittelsohn-Bryant).
11 % @fn pfqn_qzgbup(L, N, Z, i)
12 % @param L Service demand vector.
13 % @param N Population.
14 % @param Z Think time.
15 % @param i Station index.
16 % @return Qgb Upper bound on mean queue length at station i.
17%}
18%}
19function Qgb=pfqn_qzgbup(L,N,Z,i)
20sigma=sum(L.^2)/sum(L);
21Yi=L(i)*min([1/max(L),N/(Z+sum(L)+sigma*(N-1-Z*pfqn_xzabaup(L,N-1,Z)))]);
22if Yi<1
23 Qgb=Yi/(1-Yi) - (Yi^(N+1))/(1-Yi);
24else
25 Qgb=N;
26end
27end