![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
QNA, the two-moment open-network decomposition analyzer. More...
#include <algorithm>#include <cmath>#include <limits>#include <string>#include <vector>#include "line/api/da/da_fpi.h"#include "line/api/sn/sn_rt_stations.h"#include "line/api/da/da_traffic_superpos.h"#include "line/api/npfqn/npfqn_traffic_split_rr.h"#include "line/lang/qn/network_struct.h"#include "line/solvers/mva/mva_types.h"Go to the source code of this file.
Namespaces | |
| namespace | line |
| Conservation laws of a layered queueing network, enumerated from its structure. | |
| namespace | line::mva |
Functions | |
| template<class T> | |
| MvaSolution< T > | line::mva::solver_qna (const qn::NetworkStruct< T > &L, const MvaOptions &opt) |
| Port of solver_qna.m. | |
QNA, the two-moment open-network decomposition analyzer.
Templated port of matlab/src/solvers/MVA/solver_qna.m, which implements Section 7.2.3 of N. Gautam, "Analysis of Queues", CRC Press 2012, with corrections the reference records as agreed with the author.
The structure is decomposition-aggregation. Each sweep
and da_fpi drives the sweeps to a fixed point on the queue lengths.
CLOSED CHAINS. A closed chain's throughput is not an input: each sweep finds the rate lambda_c at which the stations, solved in isolation with the current flow SCVs, hold exactly the chain's population N_c. The population is increasing in the rate and diverges as a station the chain visits saturates, so it is bracketed by that first saturation (min over FCFS and PS stations of m / D) and found by bisection; with several closed chains the rates are solved Gauss-Seidel within a sweep. The PS station takes the finite-population geometric bound (U - U^(N+1)) / (1 - U). Little's law Q = X R holds at every station by construction and no column is rescaled afterwards. SolverMVA still advertises qna for open models only (its feature set withdraws ClosedClass), exactly as the reference does, so the closed path is reached by calling the analyzer directly.
OPEN CHAINS are never rescaled. The departure SCV of the Source is the rate-weighted superposition of the open chains' streams, and it seeds the flow SCVs before the first sweep, so a non-Poisson arrival stream is seen from the start and the sweeps run to their actual fixed point (Q1 = 0.75 on the Erlang tandem of the test suite). Before 2026-11-14 every codebase but the JAR rescaled each chain column by its population, which is Inf * 0 / 0 on an open chain: the NaN stopped da_fpi after one sweep, with every flow SCV still 1, and on a closed chain the rescale broke Q = X R.
SELF-LOOPING CLASSES. The reference special-cases sn.isslc after the iteration. This port has no SelfLoopingClass (JobClassType is OPEN or CLOSED only), so that branch is unreachable and is not transcribed.
Arithmetic: TRANSCENDENTAL. da_fpi stops on a tolerance, and the alpha(m) correction takes a real power of the utilization.
Definition in file solver_qna.h.