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

Exact per-class sojourn-time distribution at an OPEN order-independent (OI) station whose rate is that of a NESTED collaborative server pool, as a phase-type law. More...

#include <algorithm>
#include <cmath>
#include <cstddef>
#include <functional>
#include <limits>
#include <string>
#include <vector>
#include "line/api/mam/map_moment.h"
#include "line/api/pfqn/pfqn_oi_mixed.h"
#include "line/num/number.h"
#include "line/util/error.h"
#include "line/util/matrix.h"
Include dependency graph for pfqn_oi_respt.h:

Go to the source code of this file.

Classes

struct  line::pfqn::OiResptResult< T >
 Return value of pfqn_oi_respt, mirroring [PH, ok, why]. More...

Namespaces

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

Functions

template<class T>
OiResptResult< T > line::pfqn::pfqn_oi_respt (const std::vector< T > &lambda, const std::function< T(const std::vector< int > &)> &mu, const OiMixedOptions &opt=OiMixedOptions())
 Per-class phase-type sojourn laws of an open nested-pool OI station.

Detailed Description

Exact per-class sojourn-time distribution at an OPEN order-independent (OI) station whose rate is that of a NESTED collaborative server pool, as a phase-type law.

Templated port of matlab/src/api/pfqn/pfqn_oi_respt.m. A collaborative pool (sn_compat_rate) has a rate that depends only on which classes are present, mu(n) = mu(S(supp n)) with S(A) the servers compatible with some class of A. It is NESTED when any two classes have server sets that are disjoint or contained one in the other. For such a station fed by Poisson traffic (in isolation, or anywhere in an open product-form network, since an OI queue is quasi-reversible), Gardner and Righter (2020, Thm 4.5) give, for every class i,

T_i ~ Exp(mu(S_i) - lambda(R(S_i)))

  • sum_{g : S_i strictly in S_g} Bernoulli(lambda_g / muh_g) * Exp(muh_g - lambda_g),

muh_g = mu(S_g) - lambda(R(S_g)) + lambda_g, all terms independent, where R(S) are the classes whose server set lies in S and classes with equal server sets are merged into one group g (they are served FCFS among themselves).

Everything is read off the rate function on CLASS SETS, m(A) = mu(1_A): S_j in S_i iff m({i,j}) = m({i}), S_i, S_j disjoint iff m({i,j}) = m({i}) + m({j}), and the structure is then CHECKED on every class subset: m(A) must equal the sum of m over the most flexible classes of A.

REFUSALS, with the reference's reason strings verbatim: "unstable", "not support-only" (the rate depends on how many jobs of a class are present), "not nested" (two classes share some but not all servers), "not a pool" (the subset check failed), "too many classes" (more than 16 classes with traffic).

Reference: Gardner, Righter (2020), Queueing Systems 96:3-51, Sec. 4.1 (Thm 4.5).

ARITHMETIC. Field arithmetic; the structural tests are tolerance tests taken in double, as the reference takes them. Stability and the saturation cutoffs come from pfqn_oi_mixed (the open station is its one-point closed lattice), which reports an unstable station as stable = false in every arithmetic, so "unstable" is returned rather than raised even under Rational.

Definition in file pfqn_oi_respt.h.