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

The visit-normalization anchor station of each chain. More...

#include <cstddef>
#include <vector>
Include dependency graph for sn_get_refstat_chain.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::qn
namespace  line::api

Functions

std::vector< std::size_t > line::api::sn_get_refstat_chain (const std::vector< std::size_t > &refstat, const std::vector< std::size_t > &refclass, const std::vector< std::vector< std::size_t > > &inchain)
 Anchor station of each chain, from plain per-class/per-chain vectors.
template<class T>
std::vector< std::size_t > line::api::sn_get_refstat_chain (const qn::NetworkStruct< T > &sn, const std::vector< std::vector< std::size_t > > &inchain)
 Anchor station of each chain, port of sn_get_refstat_chain(sn, inchain).
template<class T>
std::vector< std::size_t > line::api::sn_get_refstat_chain (const qn::NetworkStruct< T > &sn)

Detailed Description

The visit-normalization anchor station of each chain.

Port of matlab/src/api/sn/sn_get_refstat_chain.m.

TWO NOTIONS THAT USED TO BE ONE. Classes within a chain may each declare their own reference station, classes[k].refstat: the station at which that CLASS's throughput X(k) = T(refstat(k),k) and cycle time C(k) = N(k)/X(k) are observed. Chain-level quantities, by contrast, need a single station to gauge the chain visit ratios against, because Vchain is defined only up to a scale factor. This function fixes that gauge, so that every consumer of Vchain, Lchain, Xchain and Cchain agrees on where the chain is being measured.

The anchor is the reference class's station when the chain declares a reference class (refclass[c] > 0), and otherwise the station of the chain's first class. Per-station metrics (Q, U, R, T) are invariant to this choice; the chain system throughput Xchain and cycle time Cchain are reported at it.

INDEXING: every index here is 1-based, as the struct stores them – class indices in inchain, the class in refclass (0 = none) and the stations in refstat and in the result. An empty chain yields 0, as the reference does.

The header is included by network_struct.h itself (the visit refresh normalizes at the anchor), so it only forward-declares the struct.

Definition in file sn_get_refstat_chain.h.