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

Port of matlab/src/api/sn/sn_patience_handles.m. More...

#include <cmath>
#include <cstddef>
#include <functional>
#include <limits>
#include "line/api/mam/map_cdf.h"
#include "line/api/mam/map_pdf.h"
#include "line/api/qsys/qsys_mgisrgi_whitt.h"
#include "line/api/qsys/qsys_types.h"
#include "line/lang/distribution.h"
#include "line/lang/lang_types.h"
#include "line/lang/qn/network_struct.h"
#include "line/num/number.h"
Include dependency graph for sn_patience_handles.h:

Go to the source code of this file.

Classes

struct  line::api::PatienceHandles< T >
 The patience law of one station-class pair, in the forms the solvers consume. More...

Namespaces

namespace  line
namespace  line::api

Functions

template<class T>
PatienceHandles< T > line::api::sn_patience_handles (const qn::NetworkStruct< T > &sn, std::size_t ist, std::size_t r)
 Build the patience handles of station ist (0-based), class r.

Detailed Description

Port of matlab/src/api/sn/sn_patience_handles.m.

The abandonment solvers need the patience law as FUNCTIONS – a complementary cdf and a hazard rate – not as moments, because that is what the underlying theory consumes: Whitt's engineering solution reads the hazard near the origin, and the fluid models integrate the ccdf. This port reads the law from Station::patience, which holds the distribution itself rather than the (D0,D1) pair the MATLAB and Java structs carry.

ARITHMETIC: transcendental. The ccdf of a phase-type law is a matrix exponential.

Definition in file sn_patience_handles.h.