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

M/G/1 FCFS with server breakdowns: Queue.setBreakdown with no down service. More...

Include dependency graph for qsys_mg1_breakdown.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>
MeanValueResult< T > line::qsys::qsys_mg1_breakdown (const T &lambda, const T &mu, const T &cs, const T &alpha, const T &ER, const T &ER2, const T &RLST)
 M/G/1 FCFS with exponential failures (busy or idle) and general repair.

Detailed Description

M/G/1 FCFS with server breakdowns: Queue.setBreakdown with no down service.

Templated port of matlab/src/api/qsys/qsys_mg1_breakdown.m, cross-checked against jar/src/main/java/jline/api/qsys/Qsys_mg1_breakdown.java.

An up server fails after an exponential time of rate alpha WHETHER BUSY OR IDLE; repair R is general; arrivals continue while down and an interrupted job resumes. With p = alpha/(lambda+alpha) and r = R*(lambda), the residual repair D met by a job arriving to an empty system has E[D] = p (E[R] - (1-r)/lambda) / (1 - p r) E[D^2] = p (E[R^2] - 2E[R]/lambda + 2(1-r)/lambda^2) / (1 - p r) and each job holds the server for C = S + repairs during S (Gaver 1962): E[C] = E[S](1 + alpha E[R]), E[C^2] = E[S^2](1 + alpha E[R])^2 + alpha E[S] E[R^2]. The queue is an M/G/1 with exceptional first service C0 = D + C (Welch 1964; Avi-Itzhak and Naor 1963): with a = lambda E[C], a0 = lambda E[C0], a2 = lambda^2 E[C^2], a02 = lambda^2 E[C0^2], E[N] = ((2 a0 + a02)(1 - a) + a0 a2) / (2 (1 - a)(1 - a + a0)). W = E[N]/lambda, Wq = W - 1/mu, U = lambda/mu, Q = E[N]. Rational in the inputs (the repair LST enters as a number), so exact for T = Rational.

Definition in file qsys_mg1_breakdown.h.