![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
M^X/G/1: the FCFS batch-Poisson queue with general service. More...
Go to the source code of this file.
Classes | |
| struct | line::qsys::MeanValueResult< T > |
| The four outputs [W, Wq, U, Q] of qsys_mxg1, qsys_mg1_vacation and qsys_mg1_breakdown. More... | |
Namespaces | |
| namespace | line |
| Conservation laws of a layered queueing network, enumerated from its structure. | |
| namespace | line::qsys |
Functions | |
| template<class T> | |
| MeanValueResult< T > | line::qsys::qsys_mxg1 (const T &lambda_batch, const T &mu, const T &cs, const T &E_X, const T &E_X2) |
| M^X/G/1 from the first two raw moments of the batch size. | |
| template<class T> | |
| MeanValueResult< T > | line::qsys::qsys_mxg1_variance (const T &lambda_batch, const T &mu, const T &cs, const T &E_X, const T &Var_X) |
| Variance form: MATLAB's qsys_mxg1(..., Var_X, 'variance'). | |
| template<class T> | |
| MeanValueResult< T > | line::qsys::qsys_mxg1_pmf (const T &lambda_batch, const T &mu, const T &cs, const std::vector< T > &batch_sizes, const std::vector< T > &pmf) |
| Support-and-pmf form: MATLAB's qsys_mxg1(..., batch_sizes, pmf); the pmf is renormalized. | |
M^X/G/1: the FCFS batch-Poisson queue with general service.
Templated port of matlab/src/api/qsys/qsys_mxg1.m, cross-checked against jar/src/main/java/jline/api/qsys/Qsys_mxg1.java.
With E[S] = 1/mu, E[S^2] = (1+cs^2)/mu^2, lambda = lambda_batch E[X] and rho = lambda E[S] (Haverkort 1998, eq. 5.31):
Wq = lambda E[S^2] / (2(1-rho)) + (E[X^2]-E[X]) E[S] / (2 E[X] (1-rho)) W = Wq + E[S], U = rho, Q = lambda W
cs = 1 gives qsys_mxm1 and a batch size of 1 gives qsys_mg1. Every term is rational in the inputs, so this is exact for T = Rational. As for qsys_mxm1 the three MATLAB batch-law forms are the entry points qsys_mxg1, qsys_mxg1_variance and qsys_mxg1_pmf.
Definition in file qsys_mxg1.h.