Class Solver_ag_closed
closed_chain_condition in solver_ag.m).
The INAP estimators read a reversed rate off an ISOLATED component, and an isolated closed component neither knows the chain population nor sees the traffic equations. Left alone, the marginals do not sum to N_c and the throughputs do not balance around a cycle (ag_closed_network, N = 10: populations summing to 10.61, throughputs 1.4568 against 0.99485).
For every closed chain whose components synchronize only with each other through positive actions, the answer is replaced by the RCAT product form restricted to the chain population. The convolution runs over STATIONS, not over (station, class) components, because classes of one chain at one station share its server:
- x_a = s * v_ACT(a) * p_a, with v the visit ratios of the routing among the chain's components and s a throughput scale;
- each station gets level masses M_i(n) for the chain population n held there: a product-form single server (PS or LCFS-PR, or FCFS or SIRO with exponential service and equal rates) gives M_i(n) = rho_i^n, an infinite server M_i(n) = rho_i^n / n!, with rho_i = sum_r s v_ir / mu_ir and 1/mu_ir the mean service time; any other single server holding ONE chain class uses its isolated component solved at those rates;
- prod_i M_i(n_i) is conditioned on sum_i n_i = N_c by convolution, P_i(n) = M_i(n) G_{-i}(N_c - n) / G(N_c), and at an aggregated station the split across classes is multinomial with p_r = rho_ir / rho_i;
- s is moved until G(N_c - 1) / G(N_c) = 1 (a warning if it does not converge within maxiter).
EXACT (equal to the product form of the chain, e.g. exact MVA) when every station the chain visits serves no class outside the chain, is an infinite server or a PS or LCFS-PR single server (any service law), or else is a single server with exponential service where several chain classes meet only under FCFS or SIRO with equal rates, and no signal, catastrophe or external removal reaches the chain.
APPROXIMATE, with a warning, otherwise: a non-exponential component alone at a single server that is not PS or LCFS-PR, or a station also serving classes outside the chain, is conditioned as above (population and flow balance hold, the marginals are not exact); several chain classes at a single server that is not a product-form station, or a chain touched by signals or losing jobs outside its components, keeps the unconditioned INAP answer.
The components of an aggregated station get their (QLen, Util, Tput) in
INAPResult.ovr: there a component's own marginal cannot give the
utilization, since its class holds the server only for the share p_r of the
busy time.
-
Method Summary
Modifier and TypeMethodDescriptionstatic INAPResultcondition(NetworkStruct sn, INAPResult res, RCATModel rcat, double tol, int maxiter) static StringWhy the RCAT decomposition cannot serve an infinite-server station of this model, or null when it can (MATLAB ag_inf_supports).
-
Method Details
-
condition
public static INAPResult condition(NetworkStruct sn, INAPResult res, RCATModel rcat, double tol, int maxiter) -
infSupportsReason
Why the RCAT decomposition cannot serve an infinite-server station of this model, or null when it can (MATLAB ag_inf_supports).EVERY RCAT COMPONENT IS A SINGLE-SERVER QBD: build_rcat never reads sn.sched or sn.nservers, so a Delay is decomposed as an M/PH/1 queue (and 'inapinf' returns its geometric marginal). A CLOSED chain is conditioned, the infinite server getting the level masses rho^n / n! (layout kind "inf"), which needs no blocked station in the chain and no signal class in the model (a negative action reaching the chain makes the conditioning skip it;
condition(jline.lang.NetworkStruct, jline.solvers.ag.handlers.INAPResult, jline.solvers.ag.handlers.RCATModel, double, int)raises if it would still skip such a chain). An OPEN class is refused: nothing conditions it, so the component serves at mu where the station serves at n*mu (an open Source -> Delay(1) at lambda = 0.5 reported 1.0 jobs at the Delay against the exact 0.5). A self-looping class is exempt, being reported from sn.njobs. The CHAIN population decides, because of class switching.
-