Class Pfqn_cdfun
-
Method Summary
Modifier and TypeMethodDescriptionstatic Matrixpfqn_cdfun(Matrix nvec, List<SerializableFunction<Matrix, Matrix>> cdscaling, int M) Evaluate class-dependent (CD) scaling function for the first class.static Matrixpfqn_cdfun(Matrix nvec, List<SerializableFunction<Matrix, Matrix>> cdscaling, int M, int classIdx) Evaluate class-dependent (CD) scaling function.
-
Method Details
-
pfqn_cdfun
public static Matrix pfqn_cdfun(Matrix nvec, List<SerializableFunction<Matrix, Matrix>> cdscaling, int M) Evaluate class-dependent (CD) scaling function for the first class.- Parameters:
nvec- Per-class queue-length values. The values can be continuous.cdscaling- CD functions indexed by station index, or null if noneM- Number of stations- Returns:
- matrix of scaling factors
-
pfqn_cdfun
public static Matrix pfqn_cdfun(Matrix nvec, List<SerializableFunction<Matrix, Matrix>> cdscaling, int M, int classIdx) Evaluate class-dependent (CD) scaling function.Returns, for every station i, the reciprocal of the class-dependent scaling beta_{i,r}(n_i1, ..., n_iR) evaluated at the per-class population vector nvec(i,:), for class r = classIdx.
cdscaling.get(i) is a function of the per-class population vector at station i. It may return either a 1x1 matrix, i.e. a chain-independent scaling beta_i(n) shared by every class (the common case), or a length-R row vector, i.e. the per-class scalings [beta_{i,1}(n), ..., beta_{i,R}(n)], of which element classIdx is taken. The per-class form expresses Sauer's chain-dependent service rates mu_{r,i}(n) (Sauer 1983, "Computational Algorithms for State-Dependent Queueing Networks", eq. (40)), so a single class-dependence mechanism covers both the chain-independent and the chain-specific cases.
A null entry denotes a station with no class dependence and is skipped, leaving the neutral factor 1. Such stations are deliberately not filled with a constant function: under Sauer a constant 1 asserts that every class completes at rate 1, which is not load independence.
- Parameters:
nvec- Per-class queue-length values. The values can be continuous.cdscaling- CD functions indexed by station index, or null if noneM- Number of stationsclassIdx- Class index selecting beta_{i,r}- Returns:
- matrix of scaling factors
-