![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Exact mean response time of a 2-way fork-join system of M/M/1 branches. More...
#include "line/api/fj/fj_types.h"#include "line/api/qsys/qsys_mm1.h"#include "line/num/number.h"#include "line/util/error.h"Go to the source code of this file.
Namespaces | |
| namespace | line |
| namespace | line::fj |
Functions | |
| template<class T> | |
| T | line::fj::fj_respt_2way (const T &lambda, const T &mu) |
| Exact mean response time of a 2-way fork-join system of M/M/1 branches. | |
Exact mean response time of a 2-way fork-join system of M/M/1 branches.
Templated port of matlab/src/api/fj/fj_respt_2way.m, cross-checked against FJ_respt.fj_respt_2way in jar/src/main/java/jline/api/fj/FJ_respt.java (identical; the JAR inlines qsys_mm1 as 1/(mu-lambda), which is the same value MATLAB's qsys_mm1 returns).
R_2 = (H_2 - rho/8) R(rho) = ((12 - rho)/8) / (mu - lambda)
Rational in rho, hence exact in the field. This is the only fork-join response time in the family that is exact rather than an approximation, so it is the natural calibration point for the approximations around it.
Definition in file fj_respt_2way.h.