![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
The station blocks SolverCTMC appends to a station's local state for three features the population lattice cannot carry on its own, ports of the native python api/state/setup_delayoff.py, retrial_attempts.py and server_parallelism.py: More...
#include <cmath>#include <cstddef>#include <map>#include <string>#include <vector>#include "line/api/mam/map_moment.h"#include "line/lang/lang_types.h"#include "line/lang/qn/network_struct.h"#include "line/util/error.h"Go to the source code of this file.
Classes | |
| struct | line::qn::SetupLaw< T > |
| One setup or delay-off law in phase-type form, and its offset in the block. More... | |
| struct | line::qn::SetupInfo< T > |
| The setup/delay-off layout of one station (python setup_info). More... | |
| struct | line::qn::AttemptsLayout |
| A finite-attempt retrial station (python attempts_info). More... | |
Namespaces | |
| namespace | line |
| Conservation laws of a layered queueing network, enumerated from its structure. | |
| namespace | line::qn |
| namespace | line::qn::blocks_detail |
Functions | |
| template<class T> | |
| std::size_t | line::qn::ctmc_tail_col (const NetworkStruct< T > &sn) |
| The 0-based nvars column that holds the CTMC station block's width. | |
| template<class T> | |
| std::size_t | line::qn::ctmc_tail_width (const NetworkStruct< T > &sn, std::size_t ind) |
| Width of the CTMC station block of node ind (1-based), 0 when it has none. | |
| bool | line::qn::blocks_detail::is_phase_type (lang::ProcessType p) |
| The laws a server-state block takes, python _ph: every CONTINUOUS family with a (D0, initial vector) representation – the renewal phase-type ones, a MAP or MMPP2 (its interval law, entered at the embedded vector map_pie, as the reference's getInitProb), and the matrix-exponential ME and RAP. | |
| template<class T> | |
| SetupLaw< T > | line::qn::blocks_detail::phase_law (const lang::Distrib< T > &d, const std::string &what, const std::string &node, const std::string &cls) |
| template<class T> | |
| SetupInfo< T > | line::qn::setup_layout (const NetworkStruct< T > &sn, std::size_t ind) |
| The setup/delay-off layout of node ind as the model declares it, whether or not the block is active. | |
| template<class T> | |
| SetupInfo< T > | line::qn::setup_info (const NetworkStruct< T > &sn, std::size_t ind) |
| The ACTIVE setup/delay-off block of node ind: the layout, when SolverCTMC appended it. | |
| template<class T> | |
| AttemptsLayout | line::qn::attempts_layout (const NetworkStruct< T > &sn, std::size_t ind) |
| The finite-attempt retrial of node ind as the model declares it, active or not. | |
| template<class T> | |
| AttemptsLayout | line::qn::attempts_info (const NetworkStruct< T > &sn, std::size_t ind) |
| The ACTIVE attempt block of node ind: the layout, when SolverCTMC appended it. | |
| void | line::qn::attempt_compositions (std::size_t total, std::size_t parts, std::vector< std::vector< std::size_t > > &out, std::vector< std::size_t > head=std::vector< std::size_t >()) |
| Every vector of parts nonnegative integers summing to total, in the order of python compositions: the first part runs from total down to 0, so the all-at-level-0 vector comes first. | |
| template<class T> | |
| std::vector< double > | line::qn::parallelism_of (const NetworkStruct< T > &sn, std::size_t ind) |
| Per-class server degrees n_r (all >= 1) of node ind, or empty when every class seizes one server (python parallelism_of). | |
| template<class T> | |
| bool | line::qn::ctmc_station_blocks (const NetworkStruct< T > &in, NetworkStruct< T > &out, bool &reachable) |
| Prepare the copy SolverCTMC solves: validate the setup/delay-off, finite-attempt and server-parallelism stations, and give each setup or attempt station its block column (python ctmc_setup, ctmc_retrial_attempts, ctmc_parallelism). | |
The station blocks SolverCTMC appends to a station's local state for three features the population lattice cannot carry on its own, ports of the native python api/state/setup_delayoff.py, retrial_attempts.py and server_parallelism.py:
WHERE THE BLOCK LIVES. The reference takes the shared node-block column of sn.nvars (python column 2R) and reads the block as the last columns of the row. This port's node block is followed by the REPLY counters, so the block gets a column of its own instead: nvars[ind-1][3R+1], one past the reference's 3R+1 columns. It exists only on the copy SolverCTMC solves (ctmc_station_blocks), which is what ACTIVATES the block: every other solver, and SolverCTMC on a model without these features, sees nvars rows of the usual width and none of the handlers below. Every slicer that takes nvars_of clear of the right-hand end already takes the block with it.
The block must TRAIL the row, so it is refused together with the two other trailing constructs, the breakdown status and the true-BAS held-job block.
Definition in file ctmc_blocks.h.