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

What NetworkSolver.getAvg does to an LDES engine result before anyone reads it. More...

#include <cmath>
#include <cstddef>
#include <limits>
#include <vector>
#include "line/api/sn/sn_arvr_state_dependent_balance.h"
#include "line/lang/lang_types.h"
#include "line/lang/qn/network_struct.h"
#include "line/solvers/wrappers/ldes/ldes_options.h"
#include "line/util/matrix.h"
Include dependency graph for ldes_getavg.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::ldes

Functions

void line::ldes::ldes_cap_unstable_open_stations (const line::qn::NetworkStruct< double > &L, LdesResult &r)
 The instability cap the reference document carries: LdesCLI writes after solver.getAvg(), and NetworkSolver.getAvg caps every finite-server open station whose offered load rho_open = sum over open r of TN(i,r) / (c * lldpeak * rate(i,r)) reaches 1.
line::Matrix< double > line::ldes::ldes_residt_from_respt (const line::qn::NetworkStruct< double > &L, const line::Matrix< double > &RN)
 The per-JOB residence time the reference document carries as WN: snGetResidTFromRespT, which LdesCLI applies through solver.getAvg() before writing.
void line::ldes::ldes_apply_getavg (const line::qn::NetworkStruct< double > &sn, LdesResult &r)
 getAvg applied to an engine result in place: WN becomes the per-job residence time and AN/WN are re-derived at the stations a JSQ/SQ dispatcher feeds, WNCI is scaled with WN, and the instability cap is applied last.

Detailed Description

What NetworkSolver.getAvg does to an LDES engine result before anyone reads it.

The reference's LdesCLI writes its document after solver.getAvg(), so the station tables a caller sees are not the engine's raw sample-path means: WN is the per-JOB residence time and saturated open stations are capped. Every C++ caller that reports LDES means applies the same post-processing here, so that ldes -s ... and a SolverUQ design point solved by LDES agree column for column (moved out of ldes_cli.cpp on 2026-11-29 for the UQ stage).

Definition in file ldes_getavg.h.