![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
M/G/1 under LRPT (longest remaining processing time). More...
#include <cstddef>#include <vector>#include "line/api/qsys/qsys_mg1_setf.h"#include "line/api/qsys/qsys_types.h"#include "line/num/number.h"#include "line/util/error.h"Go to the source code of this file.
Namespaces | |
| namespace | line |
| Conservation laws of a layered queueing network, enumerated from its structure. | |
| namespace | line::qsys |
Functions | |
| template<class T> | |
| Mg1DisciplineResult< T > | line::qsys::qsys_mg1_lrpt (const std::vector< T > &lambda, const std::vector< T > &mu, const std::vector< T > &cs) |
| M/G/1 under LRPT (longest remaining processing time). | |
M/G/1 under LRPT (longest remaining processing time).
Templated port of matlab/src/api/qsys/qsys_mg1_lrpt.m, cross-checked against jar/src/main/java/jline/api/qsys/Qsys_mg1_lrpt.java.
LRPT gives the server to the job with the most work left, so the slowdown is the same for every job in the system (Wierman and Harchol-Balter, SIGMETRICS 2003, Sec. 3.2):
E[T(x)] = x/(1-rho) + lambda E[X^2] / (2 (1-rho)^2)
with rho the total load and E[X^2] the second moment of the mixture size. Only the first term depends on x, so for ANY size law the class mean is the closed form E[T_k] = E[S_k]/(1-rho) + lambda E[X^2]/(2 (1-rho)^2), which is never below FCFS. The former code integrated the exponential case to 20/mu_k only, and answered a non-exponential input with a priority surrogate that ignored cs and fell below FCFS.
ARITHMETIC. Rational operations only; the gate is kept for API stability.
Definition in file qsys_mg1_lrpt.h.