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

Exact mean measures of the single-class M/G/1/1 retrial queue. More...

#include <string>
#include "line/api/qsys/qsys_retrial_policy.h"
#include "line/num/number.h"
#include "line/util/error.h"
Include dependency graph for qsys_mg11_retrial.h:

Go to the source code of this file.

Classes

struct  line::qsys::Mg11RetrialRes< T >
 The optional res struct of qsys_mg11_retrial. More...
struct  line::qsys::Mg11RetrialResult< T >
 The outputs [N, Norb, R, U, res] of qsys_mg11_retrial. More...

Namespaces

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

Functions

template<class T>
Mg11RetrialResult< T > line::qsys::qsys_mg11_retrial (const T &lambda, const T &mu, const T &cs, const T &nu, RetrialPolicy policy=RetrialPolicy::LINEAR)

Detailed Description

Exact mean measures of the single-class M/G/1/1 retrial queue.

Port of matlab/src/api/qsys/qsys_mg11_retrial.m. Poisson arrivals of rate lambda find the single server busy with probability rho = lambda/mu and then join an orbit, from which they retry after an exponential delay. Under LINEAR each orbiting customer retries at rate nu; under CONSTANT the orbit as a whole retries at rate nu. The service time has mean 1/mu and squared coefficient of variation cs^2, so b2 = (1+cs^2)/mu^2.

LINEAR (Falin and Templeton 1997, Sec. 1.3), stable iff rho < 1: Norb = lambda^2 b2 / (2(1-rho)) + lambda rho / (nu (1-rho)) CONSTANT (Fayolle 1986; Choi, Shin and Ahn 1992), a = nu/(lambda+nu), stable iff rho < a: Norb = (rho(1-rho) + lambda^2 b2 / 2) / (a - rho) - rho

N = Norb + rho, R = N/lambda (Little), U = rho. An unstable queue raises LINE:input:Unstable. Every operation is rational, so the function is valid for any LINE number type.

Definition in file qsys_mg11_retrial.h.