LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
solver_mam_decmmap.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2012-2026, QORE Lab, Imperial College London
3 * All rights reserved.
4 */
5#ifndef LINE_SOLVERS_MAM_SOLVER_MAM_DECMMAP_H
6#define LINE_SOLVERS_MAM_SOLVER_MAM_DECMMAP_H
7
8/**
9 * @file
10 * @ingroup line_solvers
11 * Port of `solver_mam.m`, the `dec.mmap` method: the per-class departure-process
12 * decomposition.
13 *
14 * IT IS THE MMAP DECOMPOSITION WITHOUT THE FORK-JOIN MACHINERY. The sweep is the
15 * same one `solver_mam_basic_mmap_inner` runs -- rebuild every arrival stream
16 * from the departure table through the traffic equations, solve each station in
17 * isolation, and replace each departure process by the ETAQA truncation of that
18 * station's own QBD -- with three differences, all of them the reference's:
19 * - the traffic step is `solver_mam_traffic`, the plain one, so DEP is
20 * STATION-indexed and a Fork or a Join in the model is refused by the
21 * traffic step itself rather than synchronized;
22 * - there is no Join post-processing, because there is no Join;
23 * - the increment norm is `max(|xn-xr|./xr)`, WITHOUT the FineTol offset the
24 * fork-join variant adds, so the first sweep's norm is NaN by construction
25 * (Q starts at zero) and `config.da_miniter = 3` is what carries the loop
26 * past it.
27 *
28 * WHAT THE REFERENCE REFUSES, AND HOW THIS PORT REFUSES IT. Two model classes
29 * get NO ANSWER from `solver_mam.m`, and neither refusal is an error there:
30 * - a station whose discipline is not EXT, FCFS, HOL, FCFSPRPRIO or PS makes
31 * it return `[]` for all six metrics with `method = ''`, after a warning.
32 * Note that INF is NOT in that list: a model with a Delay is refused;
33 * - a model that is not purely open returns the ZERO matrices it initialised,
34 * again after a warning.
35 * Returning empty or all-zero metrics under a method name is exactly the
36 * silently-wrong answer this port refuses to produce, so both are thrown BY NAME
37 * here, with the reference's own reason in the message.
38 *
39 * THE TRAILING SURROGATE-DELAY BLOCK IS OUTSIDE THE NODE SWITCH in the
40 * reference, so it runs at EVERY station and not only at the queues -- including
41 * the Source, whose `PH` is its own ARRIVAL process (the EXT branch never
42 * assigns one) and whose utilization therefore comes out as lambda * (1/lambda)
43 * = 1. Reproduced as written: it is what the reference reports, the surrogate
44 * term is zero at the Source because it has one server, and `getAvg`'s metric
45 * filter is what decides whether a Source utilization is shown.
46 *
47 * ARITHMETIC. Double (or real) only, for the reasons `solver_mam_basic.h` lists.
48 */
49
50#include <algorithm>
51#include <cmath>
52#include <string>
53#include <utility>
54#include <vector>
55
56#include "line/api/da/da_fpi.h"
68#include "line/solvers/mam/solver_mam_bmap.h" // mam_detect_mmck
70#include "line/util/error.h"
71#include "line/util/matrix.h"
72
73namespace line {
74namespace mam {
75
76namespace decmmap_detail {
77
78using lang::GlobalConstants;
80
81/** `solver_mam.m`'s opening station loop: the disciplines it has a branch for. */
82template <class T>
83void check_disciplines(const qn::NetworkStruct<T>& L) {
84 for (std::size_t i = 0; i < L.nstations; ++i) {
85 const SchedStrategy sc = L.stations[i].sched;
86 if (sc == SchedStrategy::EXT || sc == SchedStrategy::FCFS || sc == SchedStrategy::HOL ||
88 continue;
89 throw UnsupportedError(ErrorKind{"SchedStrategy"},
90 std::string("SolverMAM: the dec.mmap method has no branch for ") +
91 lang::sched_to_text(sc) + " scheduling at station '" + L.stations[i].name +
92 "'. solver_mam.m warns and returns EMPTY metrics with a cleared method name for such a "
93 "model, which is no answer at all; note that INF is not in its list either, so a model "
94 "carrying a Delay belongs to 'dec.source' or 'dec.source.mmap'");
95 }
96}
97
98} // namespace decmmap_detail
99
100/**
101 * Port of `solver_mam.m`.
102 *
103 * @param L the refreshed struct; open classes only
104 * @param opt the SolverMAM options; `tol` is the fixed point's iter_tol
105 */
106template <class T>
108 if constexpr (!num_traits<T>::has_transcendental) {
109 (void)L; (void)opt;
110 throw UnsupportedError(ErrorKind{"Arithmetic"},
111 "solver_mam_decmmap: the departure-process fixed point stops on a tolerance, "
112 "MMAP[K]/PH[K]/1 runs the ADDA doubling iteration and the ETAQA departure process "
113 "needs transcendental arithmetic; rerun with --arith double or --arith real");
114 } else {
115 using namespace decmmap_detail;
116 using namespace basic_mmap_detail;
117 using basic_detail::station_visits;
118 using basic_detail::truncate_renorm;
119 const T zero = num_traits<T>::from_int(0), one = num_traits<T>::from_int(1);
120 const std::size_t M = L.nstations, K = L.nclasses, C = L.nchains;
121 const T ftol = num_traits<T>::from_double(GlobalConstants::FineTol);
122 MmapDecConfig cfg;
123
124 check_disciplines(L);
125 if (!L.is_open_model())
126 throw UnsupportedError(ErrorKind{"ClosedClass"},
127 "SolverMAM: the dec.mmap method solves open models only. solver_mam.m warns and "
128 "returns the ZERO matrices it initialised for anything else, which reports an empty "
129 "network rather than refusing; use 'dec.source', 'dec.source.mmap' or 'mna'");
130
131 // The chain arrival rate, as solver_mam.m computes it: the total rate the
132 // chain's classes are released at by the reference station of its first
133 // class, carried by every class of the chain.
134 std::vector<T> lambda(K, zero);
135 for (std::size_t c = 0; c < C; ++c) {
136 if (L.inchain[c].empty()) continue;
137 const std::size_t rs = L.classes[L.inchain[c][0] - 1].refstat - 1;
138 T tot = zero;
139 for (std::size_t k : L.inchain[c]) {
140 if (L.disabled[rs][k - 1]) continue;
141 if (!std::isfinite(num_traits<T>::to_double(L.rates(rs, k - 1)))) continue;
142 tot += L.rates(rs, k - 1);
143 }
144 for (std::size_t k : L.inchain[c]) lambda[k - 1] = tot;
145 }
146
147 const Matrix<T> V = station_visits(L);
148 const MmapPhTable<T> ph = mmap_ph_table(L);
149 const TrafficConfig tcfg = traffic_config(opt);
150
151 Matrix<T> QN(M, K, zero), UN(M, K, zero), RN(M, K, zero), TN(M, K, zero);
152 for (std::size_t i = 0; i < M; ++i)
153 if (L.stations[i].sched == SchedStrategy::EXT)
154 for (std::size_t r = 0; r < K; ++r)
155 TN(i, r) = L.disabled[i][r] ? zero : L.rates(i, r);
156
157 // STATION-indexed here, node-indexed in the fork-join variant: the plain
158 // traffic step reads DEP[station][class].
159 DepTable<T> DEP(M, std::vector<Map<T>>(K));
160
161 auto sweep = [&](const std::vector<T>&,
162 std::size_t itnum) -> std::pair<std::vector<T>, std::vector<T>> {
163 if (itnum == 1)
164 for (std::size_t i = 0; i < M; ++i)
165 for (std::size_t r = 0; r < K; ++r)
166 DEP[i][r] = (lambda[r] > zero && V(i, r) > zero)
167 ? map_scale(ph.PH[i][r], T(one / T(lambda[r] * V(i, r))))
168 // The reference divides unconditionally; a
169 // zero denominator would scale to an
170 // infinite mean, which the traffic step
171 // reads as a silent stream. Left as the
172 // unscaled process instead, which is what
173 // that stream carries.
174 : ph.PH[i][r];
175
176 std::vector<Mmap<T>> ARV = solver_mam_traffic(L, DEP, tcfg);
177
178 std::vector<T> xref(M * K, zero);
179 for (std::size_t i = 0; i < M; ++i)
180 for (std::size_t r = 0; r < K; ++r) xref[i * K + r] = QN(i, r);
181
182 for (std::size_t i = 0; i < M; ++i) {
183 const std::size_t ind = L.node_of_station(i + 1) - 1;
184 const SchedStrategy sc = L.stations[i].sched;
185 const double ns = L.stations[i].nservers;
186 bool finiteCapUsed = false;
187
188 if (L.nodes[ind].nodetype == qn::NodeType::Queue && ARV[ind].order() > 0) {
189 if (ARV[ind].order() > tcfg.space_max) ARV[ind] = compress_arrival(ARV[ind]);
190 const std::vector<T> lam = mmap_lambda(ARV[ind]);
191 for (std::size_t r = 0; r < K; ++r) TN(i, r) = lam[r];
192
193 std::vector<PhService<T>> sl;
194 for (std::size_t r = 0; r < K; ++r) sl.push_back(ph.svc[i][r]);
195
196 if (sc == SchedStrategy::FCFS || sc == SchedStrategy::HOL ||
197 sc == SchedStrategy::FCFSPRPRIO) {
198 if (std::isfinite(L.stations[i].cap)) {
199 const std::size_t capK =
200 static_cast<std::size_t>(std::llround(L.stations[i].cap));
201 T meanQ = zero, lossProb = zero;
202 const MmckDetection<T> det = mam_detect_mmck(L, i + 1, ARV[ind]);
203 if (det.isMmck) {
204 T lamTot = zero;
205 for (std::size_t r = 0; r < K; ++r)
206 if (!std::isnan(num_traits<T>::to_double(TN(i, r))))
207 lamTot += TN(i, r);
209 lamTot, det.muRate, static_cast<unsigned>(std::llround(ns)),
210 static_cast<unsigned>(capK));
211 meanQ = ex.meanQueueLength;
212 lossProb = ex.lossProbability;
213 } else {
214 const basic_detail::TruncRenorm<T> tr =
215 truncate_renorm(ARV[ind], sl, capK);
216 meanQ = tr.meanQ;
217 lossProb = tr.lossProb;
218 }
219 std::vector<T> eff(K, zero), Sact(K, zero);
220 T sumTN = zero;
221 for (std::size_t r = 0; r < K; ++r) {
222 const T inflow =
223 std::isnan(num_traits<T>::to_double(TN(i, r))) ? zero : TN(i, r);
224 eff[r] = T(inflow * T(one - lossProb));
225 Sact[r] = T(map_mean(ph.PH[i][r]) * num_traits<T>::from_double(ns));
226 sumTN += eff[r];
227 }
228 T Wq = zero;
229 if (sumTN > zero) {
230 T sw = zero;
231 for (std::size_t r = 0; r < K; ++r) {
232 const T c = T(eff[r] * Sact[r]);
233 if (!std::isnan(num_traits<T>::to_double(c))) sw += c;
234 }
235 const T w = T(T(meanQ / sumTN) - T(sw / sumTN));
236 Wq = (w > zero) ? w : zero;
237 }
238 for (std::size_t r = 0; r < K; ++r) {
239 TN(i, r) = eff[r];
240 UN(i, r) = T(TN(i, r) * map_mean(ph.PH[i][r]));
241 if (TN(i, r) > zero) {
242 RN(i, r) = T(Wq + Sact[r]);
243 QN(i, r) = T(TN(i, r) * RN(i, r));
244 } else {
245 RN(i, r) = zero;
246 QN(i, r) = zero;
247 }
248 }
249 finiteCapUsed = true;
250 } else {
251 // No saturation test and no MAP/MAP/1 fast path here:
252 // solver_mam.m goes straight to MMAP[K]/PH[K]/1, and its
253 // fork-join sibling is the one that added both.
254 bool prio_distinct = false;
255 if (sc != SchedStrategy::FCFS)
256 for (std::size_t r = 1; r < K; ++r)
257 if (L.classes[r].prio != L.classes[0].prio) prio_distinct = true;
258 if (prio_distinct && ARV[ind].classes() == K) {
259 // HOL and FCFSPRPRIO with non-identical priorities are
260 // MMAP[K]/PH[K]/1 priority queues, as in solver_mam_basic.
261 // MMAPPH1FCFS here served every class in arrival order and
262 // reported that as the priority answer (until 2026-11-10).
263 // BUTools orders the marks LOWEST priority first and
264 // LINE's lower classprio is the higher priority.
265 std::vector<std::size_t> iK(K);
266 for (std::size_t r = 0; r < K; ++r) iK[r] = r;
267 std::stable_sort(iK.begin(), iK.end(),
268 [&L](std::size_t a, std::size_t b) {
269 return L.classes[a].prio > L.classes[b].prio;
270 });
271 for (std::size_t j = 1; j < K; ++j)
272 if (L.classes[iK[j]].prio == L.classes[iK[j - 1]].prio)
273 throw UnsupportedError(ErrorKind{"Priority"},
274 "solver_mam: Solver MAM requires either identical "
275 "priorities or all distinct priorities");
276 Mmap<T> pa;
277 pa.D0 = ARV[ind].D0;
278 pa.D1 = ARV[ind].D1;
279 std::vector<PhService<T>> slp;
280 for (std::size_t j = 0; j < K; ++j) {
281 pa.Dc.push_back(ARV[ind].Dc[iK[j]]);
282 slp.push_back(sl[iK[j]]);
283 }
284 const std::vector<std::vector<T>> pm =
285 (sc == SchedStrategy::FCFSPRPRIO) ? mmapph1prpr_ncmoms(pa, slp, 1)
286 : mmapph1nppr_ncmoms(pa, slp, 1);
287 for (std::size_t j = 0; j < K; ++j) QN(i, iK[j]) = pm[j][0];
288 } else {
289 const std::vector<T> m = mmapph1fcfs_ncmean(ARV[ind], sl);
290 for (std::size_t r = 0; r < K; ++r)
291 QN(i, r) = m[ARV[ind].classes() == 1 ? 0 : r];
292 }
293 }
294 } else if (sc == SchedStrategy::PS) {
295 for (std::size_t r = 0; r < K; ++r)
296 UN(i, r) = T(TN(i, r) * map_mean(ph.PH[i][r]));
297 T usum = zero;
298 for (std::size_t r = 0; r < K; ++r) usum += UN(i, r);
299 const T uden = (usum < T(one - ftol)) ? usum : T(one - ftol);
300 for (std::size_t r = 0; r < K; ++r) QN(i, r) = T(UN(i, r) / T(one - uden));
301 }
302 }
303
304 // OUTSIDE the node switch in the reference; see the file header.
305 if (!finiteCapUsed) {
306 for (std::size_t r = 0; r < K; ++r) {
307 UN(i, r) = T(TN(i, r) * map_mean(ph.PH[i][r]));
308 if (std::isfinite(ns))
309 QN(i, r) = T(QN(i, r) + TN(i, r) *
310 T(map_mean(ph.PH[i][r]) *
312 num_traits<T>::from_double((ns - 1.0) / ns));
313 RN(i, r) = T(QN(i, r) / TN(i, r));
314 }
315 }
316 }
317
318 // ---- the departure processes for the next sweep -------------------
319 for (std::size_t i = 0; i < M; ++i) {
320 const std::size_t ind = L.node_of_station(i + 1) - 1;
321 if (L.nodes[ind].nodetype != qn::NodeType::Queue || ARV[ind].order() == 0) continue;
322 const SchedStrategy sc = L.stations[i].sched;
323 const bool fcfs = (sc == SchedStrategy::FCFS || sc == SchedStrategy::HOL ||
324 sc == SchedStrategy::FCFSPRPRIO);
325 if (!fcfs && sc != SchedStrategy::PS) continue;
326 T rho = zero;
327 for (std::size_t r = 0; r < K; ++r) rho += UN(i, r);
328 for (std::size_t r = 0; r < K; ++r) {
329 const Mmap<T> A = mmap_hide_but(ARV[ind], r);
330 const Map<T>& Srv = ph.PH[i][r];
331 const std::size_t etaqa_sz = (cfg.etaqa_trunc + 1) * A.order() * Srv.D0.rows();
332 Map<T> dep = Srv;
333 if (etaqa_sz <= tcfg.space_max && rho < T(one - ftol)) {
334 // The reference's own try/catch, as in the fork-join variant.
335 try {
336 const Map<T> Am{A.D0, A.D1};
337 dep = map_normalize(fcfs ? qbd_depproc_etaqa(Am, Srv, cfg.etaqa_trunc)
338 : qbd_depproc_etaqa_ps(Am, Srv, cfg.etaqa_trunc));
339 } catch (const Error&) {
340 dep = Srv;
341 }
342 }
343 // Unconditional in the reference, which divides by zero when the
344 // class does not flow here; left unscaled instead, as at the
345 // initialisation above.
346 if (lambda[r] > zero && V(i, r) > zero)
347 dep = map_scale(dep, T(one / T(lambda[r] * V(i, r))));
348 DEP[i][r] = dep;
349 }
350 }
351
352 std::vector<T> xnew(M * K, zero);
353 for (std::size_t i = 0; i < M; ++i)
354 for (std::size_t r = 0; r < K; ++r) xnew[i * K + r] = QN(i, r);
355 return std::make_pair(xnew, xref);
356 };
357
359 fo.iter_max = static_cast<std::size_t>(opt.iter_max);
360 fo.iter_tol = opt.tol;
361 fo.miniter = 3; // config.da_miniter
362 fo.relative_norm = true; // config.da_norm, WITHOUT the FineTol offset
363 const da::FpiResult<T> fr = da::da_fpi<T>(sweep, std::vector<T>(M * K, zero), fo);
364
366 out.Q = QN;
367 out.U = UN;
368 out.R = RN;
369 out.Tp = TN;
370 // CN and XN are the zeros solver_mam.m initialises and never assigns.
371 out.C.assign(K, zero);
372 out.X.assign(K, zero);
373 out.method = "dec.mmap";
374 out.iter = static_cast<int>(fr.iterations);
375 out.lG = 0.0;
376 return out;
377 } // if constexpr has_transcendental
378}
379
380} // namespace mam
381} // namespace line
382
383#endif // LINE_SOLVERS_MAM_SOLVER_MAM_DECMMAP_H
Base error for the multiprecision C++ port.
Definition error.h:73
UnsupportedError(const std::string &what)
Definition error.h:119
A network plus its refreshed NetworkStruct.
std::vector< std::vector< bool > > disabled
std::vector< JobClass > classes
std::vector< Station< T > > stations
stations[k-1] is the k-th station
Matrix< T > rates
(nstations x nclasses) service rates and SCVs, with a PARALLEL disabled flag instead of MATLAB's NaN ...
std::vector< std::vector< std::size_t > > inchain
1-based class indices per chain
std::size_t node_of_station(std::size_t st) const
1-based node index of station st, 0 when the map has no entry.
std::vector< NodeDef > nodes
every node, in creation order
bool is_open_model() const
sn_is_open_model: EVERY class is open, which is not has_open_classes.
Damped fixed-point iteration, the shared driver of the decomposition algorithms.
The exception types the port throws.
The option and result types SolverMAM shares with its analyzers.
Markovian arrival process descriptors: stationary vectors, rate, moments, autocorrelation and the ind...
MAP constructors and structural transformations.
Dense matrix and non-owning view.
Marked MAP (MMAP) algebra: per-class rates, class probabilities, superposition, normalization and sca...
The MMAP[K]/PH[K]/1 FCFS queue: per-class mean number in system and per-class queue-length distributi...
The MMAP[K]/PH[K]/1 priority queue, preemptive resume (mmapph1prpr_*) and non-preemptive (mmapph1nppr...
FpiResult< T > da_fpi(const std::function< std::pair< std::vector< T >, std::vector< T > >(const std::vector< T > &, std::size_t)> &iterfun, const std::vector< T > &x0, const FpiOptions &options=FpiOptions())
Damped fixed-point iteration, the shared driver of the decomposition algorithms.
Definition da_fpi.h:102
SchedStrategy
Scheduling disciplines, with the values of MATLAB SchedStrategy.
Definition lang_types.h:194
const char * sched_to_text(SchedStrategy s)
Definition lang_types.h:248
std::vector< T > mmapph1fcfs_ncmean(const Mmap< T > &arrival, const std::vector< PhService< T > > &svc)
Per-class mean number of customers in the system, BUTools' 'ncMoms', 1.
MmckDetection< T > mam_detect_mmck(const qn::NetworkStruct< T > &L, std::size_t ist, const Mmap< T > &arv)
Port of mam_detect_mmck.m: is the exact M/M/c/K closed form legitimate at this station?
std::vector< std::vector< Map< T > > > DepTable
DEP{i,r}, the departure process of class r from i in (D0,D1) form.
TrafficConfig traffic_config(const MamOptions &opt)
The traffic step's view of SolverOptions('MAM').
std::vector< T > mmap_lambda(const Mmap< T > &m)
Alias kept for parity with the MATLAB name.
Mmap< T > mmap_hide_but(const Mmap< T > &in, std::size_t keep)
mmap_hide(m, setdiff(1:K, keep)): keep ONE mark, hide every other.
Map< T > qbd_depproc_etaqa(const Map< T > &arrival, const Map< T > &service, std::size_t n)
MAP descriptor of the departure process of a MAP/MAP/1-FCFS queue, ETAQA-truncated at level n (qbd_de...
T map_mean(const Map< T > &m)
Mean inter-arrival time, 1/lambda.
Definition map_moment.h:101
Map< T > qbd_depproc_etaqa_ps(const Map< T > &arrival, const Map< T > &service, std::size_t n)
MAP descriptor of the departure process of a MAP/MAP/1-PS queue, ETAQA-truncated at level n (qbd_depp...
std::vector< std::vector< T > > mmapph1prpr_ncmoms(const Mmap< T > &arrival, const std::vector< PhService< T > > &svc, std::size_t n, const PrioQueueOptions &opt=PrioQueueOptions())
Per-class moments 1..n of the number of jobs, MMAP[K]/PH[K]/1 preemptive resume priority.
Map< T > map_scale(const Map< T > &in, const T &new_mean)
Rescale time so that the mean inter-arrival time becomes new_mean.
mva::MvaSolution< T > solver_mam_decmmap(const qn::NetworkStruct< T > &L, const MamOptions &opt)
Port of solver_mam.m.
std::vector< Mmap< T > > solver_mam_traffic(const qn::NetworkStruct< T > &sn, const DepTable< T > &DEP, const TrafficConfig &config)
Port of solver_mam_traffic.m.
Map< T > map_normalize(const Map< T > &in)
Clamp negative off-diagonal entries of D0 and negative entries of D1 to zero, then rebuild the diagon...
std::vector< std::vector< T > > mmapph1nppr_ncmoms(const Mmap< T > &arrival, const std::vector< PhService< T > > &svc, std::size_t n, const PrioQueueOptions &opt=PrioQueueOptions())
Per-class moments 1..n of the number of jobs, MMAP[K]/PH[K]/1 non-preemptive priority.
MmckResult< T > qsys_mmck(const T &lambda, const T &mu, unsigned c, unsigned K)
Exact analysis of the M/M/c/K queue (truncated Erlang form).
Definition qsys_mmck.h:70
Conservation laws of a layered queueing network, enumerated from its structure.
Definition aoi_dist2ph.h:51
A queueing network and its refreshed NetworkStruct.
Departure process of a MAP/MAP/1 queue: the ETAQA-truncated MAP descriptor under FCFS and under PS,...
Exact analysis of the M/M/c/K queue (truncated Erlang form).
Port of solver_mam_basic.m, the dec.source analyzer and the default algorithm of SolverMAM.
Port of solver_mam_basic_mmap.m, solver_mam_basic_mmap_inner.m and solver_mam_basic_mmap_closed....
The batch-arrival and batch-service queues of the MAM solver, and the two finite-capacity helpers sol...
Port of solver_mam_traffic.m and solver_mam_traffic_mmap.m: the traffic step of the dec....
The <kind> part of a LINE:<category>:<kind> identifier (see _kb/17-error-vocabulary....
Definition error.h:37
Options mirroring the fields MATLAB reads off the options struct.
Definition da_fpi.h:50
std::size_t iter_max
Definition da_fpi.h:51
std::size_t miniter
iterations before the stopping test applies
Definition da_fpi.h:54
bool relative_norm
config.da_norm, the increment norm.
Definition da_fpi.h:71
std::size_t iterations
Definition da_fpi.h:88
The options SolverMAM reads.
Definition mam_types.h:30
A MAP as the pair of matrices (D0, D1).
Definition map_moment.h:53
Matrix< T > D0
Definition map_moment.h:54
The options.config fields the MMAP decomposition reads on top of MamOptions.
std::size_t etaqa_trunc
config.etaqa_trunc, the ETAQA level truncation of the departure process.
An MMAP: the underlying MAP plus the per-class arrival matrices.
Definition mmap_lambda.h:45
Matrix< T > D0
Definition mmap_lambda.h:46
Matrix< T > D1
Definition mmap_lambda.h:47
std::size_t order() const
Definition mmap_lambda.h:50
What mam_detect_mmck returns; muRate is meaningful only when isMmck.
The fields of options.config the traffic step reads.
Class-level results, the [Q,U,R,T,C,X] of the MATLAB analyzers.
Definition mva_types.h:97
std::vector< T > X
Definition mva_types.h:99
double lG
log of the normalizing constant, the reference's lG.
Definition mva_types.h:119
std::vector< T > C
Definition mva_types.h:99
T meanQueueLength
L, mean number in system.
Definition qsys_mmck.h:45