5#ifndef LINE_API_PFQN_PFQN_OI_OPEN_H
6#define LINE_API_PFQN_PFQN_OI_OPEN_H
69 const std::function<T(
const std::vector<int>&)>& mu,
71 const std::size_t R = lambda.size();
74 lambda, std::vector<double>(R, std::numeric_limits<double>::infinity()), mu,
opt);
79 out.
Q.assign(R, zero);
80 out.
Usir.assign(R, zero);
85 "pfqn_oi_open: the station is unstable (a saturated macrostate has a nonpositive "
86 "net rate) and its mean queue length is infinite, which exact arithmetic cannot "
90 for (std::size_t r = 0; r < R; ++r)
91 if (lambda[r] > zero) {
99 for (std::size_t r = 0; r < R; ++r) {
100 out.
Q[r] = T(m.
H(0, r) / m.
W[0]);
101 out.
Usir[r] = T(m.
S(0, r) / m.
W[0]);
NumericError(const std::string &what)
The exception types the port throws.
OiMixedResult< T > pfqn_oi_mixed(const std::vector< T > &lambda, const std::vector< double > &N, const std::function< T(const std::vector< int > &)> &mu, const OiMixedOptions &opt=OiMixedOptions())
Closed-lattice station tables of an OI station with open classes summed out.
OiOpenResult< T > pfqn_oi_open(const std::vector< T > &lambda, const std::function< T(const std::vector< int > &)> &mu, const OiMixedOptions &opt=OiMixedOptions())
Exact means of an open OI station.
Conservation laws of a layered queueing network, enumerated from its structure.
Number-type abstraction for the templated API port.
Closed-lattice station tables of an order-independent (OI) station visited by CLOSED and OPEN classes...
The <kind> part of a LINE:<category>:<kind> identifier (see _kb/17-error-vocabulary....
The tuning fields of pfqn_oi_mixed / pfqn_oi_open (OPTIONS in the reference).
Return value of pfqn_oi_mixed, mirroring [W, H, S, stable, tau, method].
std::vector< int > tau
(R) open cutoffs used (0 for closed and idle classes)
Matrix< T > S
(prod(Nc+1) x R) per-class in-service weights
std::vector< T > W
(prod(Nc+1)) column-major table over the closed lattice
std::string method
"oi" (exact) or "oi.trunc"
bool stable
false when some reachable macrostate has den(m) <= 0
Matrix< T > H
(prod(Nc+1) x R) per-class mean weights
Return value of pfqn_oi_open, mirroring [Q, Usir, P0, stable, tau, method].
std::vector< T > Usir
(R) mean number of class-r jobs in service (Inf when unstable)
std::vector< T > Q
(R) mean number of class-r jobs E[n_r] (Inf when unstable)
std::string method
"oi" (exact) or "oi.trunc"
bool stable
false when some reachable macrostate has den(m) <= 0
T P0
probability that the station is empty (0 when unstable)
std::vector< int > tau
(R) cutoffs used (frozen T for 'oi.trunc')