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

Memory-bounded exact MVA for closed networks with multiserver stations. More...

#include <cmath>
#include <cstddef>
#include <string>
#include <vector>
#include "line/num/number.h"
#include "line/util/error.h"
#include "line/util/matrix.h"
Include dependency graph for pfqn_mvams_closed.h:

Go to the source code of this file.

Classes

struct  line::pfqn::MvamsClosedResult< T >
 Return value of pfqn_mvams_closed, mirroring [XN,QN,UN,CN,lG,P0]. More...

Namespaces

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

Functions

template<class T>
MvamsClosedResult< T > line::pfqn::pfqn_mvams_closed (const Matrix< T > &L, const std::vector< int > &N, const Matrix< T > &Z, const std::vector< T > &mi, const std::vector< int > &S, bool wantP0=true)
 Memory-bounded exact MVA for closed networks with multiserver stations (Reiser 1981).
template<class T>
MvamsClosedResult< T > line::pfqn::pfqn_mvams_closed (const Matrix< T > &L, const std::vector< int > &N, const Matrix< T > &Z, const std::vector< int > &S)
 Overload with unit replication factors.

Detailed Description

Memory-bounded exact MVA for closed networks with multiserver stations.

Templated port of matlab/src/api/pfqn/pfqn_mvams_closed.m (native Python twin: python/line_solver/api/pfqn/mvams_closed.py). Reiser (1981), "Mean-value analysis and convolution method for queue-dependent servers in closed queueing networks", Performance Evaluation 1, 7-18: the queue-dependent MVA of Sec. 4 restricted to limited queue-dependent servers (Sec. 6.4). A station with c servers keeps only its marginals p_i(j|n), j = 0..c-1, and

W_ir(n) = D_ir/c (1 + Q_i(n-1_r) + sum_{j=0}^{c-2} (c-1-j) p_i(j|n-1_r)) p_i(j|n) = (1/j) sum_r D_ir X_r(n) p_i(j-1|n-1_r), j = 1..c-1.

p_i(0|n) is never obtained by the subtraction 1 - sum_j p_i(j|n) (Reiser eq. 24, which loses all accuracy at a bottleneck); it follows from the complement-system relation (Reiser eq. 27) in its multichain form p_i(0|n) = p_i(0|n-1_r) X_r(n) / X_r^[i](n), any r with n_r > 0. Every sub-network obtained by removing copies of multiserver stations is solved in the same sweep (the nested complement solution of Sec. 6.5), the lattice is swept by total population level and only two levels are kept.

p_i(0|N) of a delay station (needed for UN), and of a single server when P0 is requested, comes from the normalizing constant of its own complement network, G^[i](N)/G(N).

ARITHMETIC. Every step of the recursion is a field operation, so the routine is exact-capable. The only non-field step in MATLAB is the log used to accumulate lG and the exp(lG^[i] - lG) of the complement ratio: a transcendental arithmetic follows MATLAB (log-domain accumulation, which cannot overflow), while the exact field accumulates G itself as the product of the reciprocal throughputs along the lattice path, as pfqn_mva.h does, and takes the complement ratio G^[i]/G exactly.

CONVENTIONS. A server count of -1 (pfqn::INF_SERVERS in pfqn_mvams.h) is an infinite server, MATLAB's Inf. A class absent from a complement sub-network (no demand there, no think time) has an infinite throughput in MATLAB; the port carries that as a flag next to the value, since the exact field has no infinity, and reproduces every use MATLAB makes of it.

Definition in file pfqn_mvams_closed.h.