![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Exact steady state of an order-independent (OI) LOSS queue. More...
#include <algorithm>#include <cmath>#include <functional>#include <limits>#include <sstream>#include <vector>#include "line/num/number.h"#include "line/util/error.h"Go to the source code of this file.
Classes | |
| struct | line::qsys::OiLossResult< T > |
| Return value of qsys_oi_loss, mirroring [Q, Usir, B, Xadm, P0]. More... | |
Namespaces | |
| namespace | line |
| Conservation laws of a layered queueing network, enumerated from its structure. | |
| namespace | line::qsys |
Functions | |
| template<class T> | |
| OiLossResult< T > | line::qsys::qsys_oi_loss (const std::vector< T > &lambda, const std::function< T(const std::vector< int > &)> &mu, double K, std::vector< double > Kr=std::vector< double >()) |
| Exact OI loss queue. | |
Exact steady state of an order-independent (OI) LOSS queue.
Templated port of matlab/src/api/qsys/qsys_oi_loss.m. Poisson arrivals of R classes at rates LAMBDA, a permutation-invariant total service rate mu(n) of the per-class count vector, at most K jobs in total and at most Kr(r) of class r; an arrival that would breach a limit is lost.
Truncating an OI queue destroys quasi-reversibility but not the product form of the truncated chain: the stationary law is the unrestricted OI law renormalized over the admissible set A = {n : sum(n) <= K, n <= Kr} (Berezner, Kriel, Krzesinski 1995, Sec. 6, total limit; Berezner and Krzesinski 1996, per-type limits). With g(n) = Phi(n) prod_r lambda_r^{n_r},
g(0) = 1, g(n) = (1/mu(n)) sum_{r: n_r>0} lambda_r g(n - e_r), n in A,
and by PASTA the class-r blocking probability is the mass of the states in which a class-r arrival is refused, B_r = P(sum(n) = K or n_r = Kr(r)). The in-service means use the weight Xi_r of pfqn_oi_insvc on the same set. The queue is exact only IN ISOLATION: a loss OI queue is not quasi-reversible.
ARITHMETIC. Field arithmetic; exact under Rational. The in-service indicator mu(n) > mu(n - e_r) is a tolerance test taken in double, as the reference's.
Definition in file qsys_oi_loss.h.