![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
M/G/1 under SETF (shortest elapsed time first), the non-preemptive counterpart of FB/LAS. More...
#include <cstddef>#include <vector>#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.
Classes | |
| struct | line::qsys::Mg1DisciplineResult< T > |
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_setf (const std::vector< T > &lambda, const std::vector< T > &mu, const std::vector< T > &cs) |
| M/G/1 under SETF (shortest elapsed time first), the non-preemptive counterpart of FB/LAS. | |
M/G/1 under SETF (shortest elapsed time first), the non-preemptive counterpart of FB/LAS.
Templated port of matlab/src/api/qsys/qsys_mg1_setf.m, cross-checked against jar/src/main/java/jline/api/qsys/Qsys_mg1_setf.java.
SETF ranks waiting jobs by attained service and never interrupts service, so every waiting job has attained service 0 and the FCFS tie break decides the order: SETF is FCFS, and the Pollaczek-Khinchine form
W_k = lambda E[X^2] / (2 (1-rho)) + 1/mu_k
is exact for any size law. The former body evaluated one job of mean size x_k = 1/mu_k under FB plus a residual penalty, which read 1.6033 on M/M/1 (lambda = 1, mu = 2) against the exact 1.0.
ARITHMETIC. Rational operations only; the transcendental gate is kept for API stability.
The returned rhohat is Q/(1+Q) with Q = sum_k lambda_k W_k, the qsys family convention; the utilization sum_k rho_k is not part of the return value because MATLAB overwrites it.
Definition in file qsys_mg1_setf.h.