LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::qsys::Patience< T > Struct Template Reference

The patience (time-to-abandon) law, in the three forms the algorithm accepts. More...

#include <line/api/qsys/qsys_mgisrgi_whitt.h>

Collaboration diagram for line::qsys::Patience< T >:

Static Public Member Functions

static Patience exponential (const T &theta)
 Exponential patience of rate theta, h(t) = theta, the Erlang A case.
static Patience hazard (std::function< T(const T &)> h)
 Patience given by its hazard rate h = f/(1-F).
static Patience ccdf (std::function< T(const T &)> g)
 Patience given by its complementary cdf G(t) = 1-F(t).

Public Attributes

PatienceForm form = PatienceForm::Exponential
theta = num_traits<T>::from_int(0)
std::function< T(const T &)> fun

Detailed Description

template<class T>
struct line::qsys::Patience< T >

The patience (time-to-abandon) law, in the three forms the algorithm accepts.

The engineering solution needs it only through its hazard rate near the origin, so these three carry exactly that.

Definition at line 83 of file qsys_mgisrgi_whitt.h.

Member Function Documentation

◆ ccdf()

template<class T>
Patience line::qsys::Patience< T >::ccdf ( std::function< T(const T &)> g)
inlinestatic

Patience given by its complementary cdf G(t) = 1-F(t).

Definition at line 107 of file qsys_mgisrgi_whitt.h.

References line::qsys::Ccdf, form, and fun.

◆ exponential()

template<class T>
Patience line::qsys::Patience< T >::exponential ( const T & theta)
inlinestatic

Exponential patience of rate theta, h(t) = theta, the Erlang A case.

Definition at line 89 of file qsys_mgisrgi_whitt.h.

References line::qsys::Exponential, form, line::InputError::InputError(), and theta.

Referenced by line::api::PatienceHandles< T >::as_patience(), and line::qsys::qsys_erlanga().

◆ hazard()

template<class T>
Patience line::qsys::Patience< T >::hazard ( std::function< T(const T &)> h)
inlinestatic

Patience given by its hazard rate h = f/(1-F).

Definition at line 99 of file qsys_mgisrgi_whitt.h.

References form, fun, and line::qsys::Hazard.

Referenced by line::api::PatienceHandles< T >::as_patience().

Member Data Documentation

◆ form

◆ fun

template<class T>
std::function<T(const T&)> line::qsys::Patience< T >::fun

Definition at line 86 of file qsys_mgisrgi_whitt.h.

Referenced by ccdf(), and hazard().

◆ theta

template<class T>
T line::qsys::Patience< T >::theta = num_traits<T>::from_int(0)

Definition at line 85 of file qsys_mgisrgi_whitt.h.

Referenced by exponential(), and line::qsys::qsys_mgisrgi_whitt().


The documentation for this struct was generated from the following file: