Class Pfqn_oi_mixed
Port of matlab/src/api/pfqn/pfqn_oi_mixed.m. Class r is closed
when N[r] is finite and open when N[r] is infinite. For each closed count
vector c (0 <= c <= N on the closed classes) the routine returns
W(c) = sum_o Phi(c, o) * prod_r lambda_r^{n_r},
H_r(c) = sum_o n_r Phi(c, o) * prod_r lambda_r^{n_r},
S_r(c) = sum_o Xi_r(c, o) * prod_r lambda_r^{n_r},
where o runs over ALL open count vectors, n = (c, o), Phi is the OI balance
function (Pfqn_ncoi) and Xi_r its in-service weight
(Pfqn_oi_insvc). lambda is the visit ratio of a
closed class and the offered traffic lambda_r * V_ir of an open class. W is
the station's factor in the closed-chain convolution of a MIXED product-form
network (OI queues are quasi-reversible, Berezner, Kriel, Krzesinski 1995);
H and S give the per-class mean and in-service weights for that convolution.
With no closed class the lattice is the single point c = 0 and
E[n_r] = H_r/W, E[sir_r] = S_r/W are the open station's means
(Pfqn_oi_open).
SATURATION RECURSION. With tau_r the per-class cutoffs of the OPEN classes, mu(c, o) = mu(c, min(o, tau)) for every closed c <= N, the open coordinates collapse into macrostates (m_r = tau_r stands for every o_r >= tau_r) while the closed coordinates stay exact. Summing the balance recursion over a macrostate, with den(m) = mu(m) - sum_{r open, m_r = tau_r} lambda_r,
G(m) den(m) = sum_{r: m_r>0} lambda_r G(m - e_r)
H_j(m) den(m) = sum_{r: m_r>0} lambda_r H_j(m - e_r)
+ lambda_j 1{m_j>0} (1{j open, m_j = tau_j} G(m) + G(m - e_j))
S_j(m) den(m) = sum_{r: m_r>0} lambda_r S_j(m - e_r)
+ lambda_j 1{m_j>0} 1{mu(m) > mu(m - e_j)} G(m - e_j)
and W, H, S are the sums of G, H, S over the open macrostates at each c. A
reachable macrostate with den(m) <= 0 makes its open series diverge: the
station is unstable. With every cutoff 1 and no closed class this is the
Bonald-Comte-Mathieu (2017) class-subset recursion.
NON-SATURATING RATES. When the open coordinates do not saturate within
taumax, the rate is frozen at a uniform open cutoff T and T is doubled until
the tables move by less than tol (relative); the method is then
oi.trunc, and the run fails by name past maxstates macrostates.
ADMISSIBLE SET. With an admissible predicate, the station only holds count
vectors n with admissible(n) true, and an arrival that would leave the set is
lost. The stationary law is the unrestricted OI law renormalized over the set
(Berezner, Kriel, Krzesinski 1995, Sec. 6; Berezner, Krzesinski 1996), which
holds when the set contains 0 and is closed under removing a job (n
admissible implies n - e_r admissible for every r with n_r > 0); a mask
that is not is refused by name. The recursion then runs over the admissible
macrostates only. The cutoff search treats the mask as part of the rate and
then probes it taumax beyond each saturated coordinate, growing the cutoffs
until the mask is constant on each macrostate; a mask that does not saturate
within taumax is frozen with the rate in oi.trunc. Example: the FCFM
non-bipartite matching model (Comte 2022) is the open station with
mu(n) = lambda(N(supp n)) and admissible(n) true when supp n is an
independent set of the compatibility graph. A loss station is NOT
quasi-reversible, so the tables with a mask describe the station in
isolation only.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classStation tables over the closed lattice. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleDefault macrostate budget.static final intDefault per-class cutoff search limit.static final doubleDefault relative tolerance of theoi.truncbranch. -
Method Summary
Modifier and TypeMethodDescriptionstatic Pfqn_oi_mixed.Resultpfqn_oi_mixed(double[] lambda, double[] N, ToDoubleFunction<int[]> mu) static Pfqn_oi_mixed.Resultpfqn_oi_mixed(double[] lambda, double[] N, ToDoubleFunction<int[]> mu, double tol, int taumax, double maxstates) static Pfqn_oi_mixed.Resultpfqn_oi_mixed(double[] lambda, double[] N, ToDoubleFunction<int[]> mu, double tol, int taumax, double maxstates, Predicate<int[]> admissible)
-
Field Details
-
DEFAULT_TOL
public static final double DEFAULT_TOLDefault relative tolerance of theoi.truncbranch.- See Also:
-
DEFAULT_TAUMAX
public static final int DEFAULT_TAUMAXDefault per-class cutoff search limit.- See Also:
-
DEFAULT_MAXSTATES
public static final double DEFAULT_MAXSTATESDefault macrostate budget.- See Also:
-
-
Method Details
-
pfqn_oi_mixed
public static Pfqn_oi_mixed.Result pfqn_oi_mixed(double[] lambda, double[] N, ToDoubleFunction<int[]> mu) -
pfqn_oi_mixed
public static Pfqn_oi_mixed.Result pfqn_oi_mixed(double[] lambda, double[] N, ToDoubleFunction<int[]> mu, double tol, int taumax, double maxstates) - Parameters:
lambda- (R) closed visit ratios / open offered traffic (>= 0)N- (R) closed populations, infinite for an open classmu- total rate mu(n) on the per-class count vector (length R)tol- relative tolerance of theoi.truncbranchtaumax- per-class cutoff search limitmaxstates- macrostate budget- Returns:
- the closed-lattice tables
-
pfqn_oi_mixed
public static Pfqn_oi_mixed.Result pfqn_oi_mixed(double[] lambda, double[] N, ToDoubleFunction<int[]> mu, double tol, int taumax, double maxstates, Predicate<int[]> admissible) - Parameters:
lambda- (R) closed visit ratios / open offered traffic (>= 0)N- (R) closed populations, infinite for an open classmu- total rate mu(n) on the per-class count vector (length R)tol- relative tolerance of theoi.truncbranchtaumax- per-class cutoff search limitmaxstates- macrostate budgetadmissible- admissible(n) on the per-class count vector (length R), true for an admissible state; null for no restriction- Returns:
- the closed-lattice tables
-