LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
qsys_mmc_prio.h File Reference

M/M/c with non-preemptive (head-of-line) priorities and a common exponential service rate (Cobham, 1954). More...

#include <cstddef>
#include <string>
#include <vector>
#include "line/api/qsys/qsys_res.h"
#include "line/num/number.h"
#include "line/util/error.h"
Include dependency graph for qsys_mmc_prio.h:

Go to the source code of this file.

Classes

struct  line::qsys::MmcPrioResult< T >
 MATLAB's [W, rho, res] outputs. More...

Namespaces

namespace  line
 Conservation laws of a layered queueing network, enumerated from its structure.
namespace  line::qsys

Functions

template<class T>
MmcPrioResult< T > line::qsys::qsys_mmc_prio (const std::vector< T > &lambda, const T &mu, unsigned c)
 M/M/c with head-of-line priorities.

Detailed Description

M/M/c with non-preemptive (head-of-line) priorities and a common exponential service rate (Cobham, 1954).

Port of matlab/src/api/qsys/qsys_mmc_prio.m. With A = sum(lambda)/mu, the Erlang C probability of waiting C(c, A) and sigma_i = sum_{j<=i} lambda_j/(c mu),

Wq_i = (C / (c mu)) / ((1 - sigma_{i-1})(1 - sigma_i)), W_i = Wq_i + 1/mu.

ARITHMETIC: field. Erlang B is a rational recursion, so the computation is exact for T = Rational.

Definition in file qsys_mmc_prio.h.