LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
matching_station.h File Reference
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <limits>
#include <string>
#include <utility>
#include <vector>
#include "line/api/mam/map_moment.h"
#include "line/lang/distribution.h"
#include "line/lang/lang_types.h"
#include "line/lang/qn/network_struct.h"
#include "line/util/error.h"
Include dependency graph for matching_station.h:

Go to the source code of this file.

Classes

struct  line::qn::matching::Tput
 Per-class rates at a Matching station: matched, accepted and reneging. More...

Namespaces

namespace  line
 Conservation laws of a layered queueing network, enumerated from its structure.
namespace  line::qn
namespace  line::qn::matching

Functions

template<class T>
bool line::qn::matching::is_matching (const NetworkStruct< T > &sn, std::size_t ist)
 True when station ist (1-based) is a Matching (FCFM) station.
template<class T>
bool line::qn::matching::is_matching_node (const NetworkStruct< T > &sn, std::size_t ind)
 True when node ind (1-based) is a Matching (FCFM) station.
template<class T>
std::vector< std::vector< bool > > line::qn::matching::compatibility (const NetworkStruct< T > &sn, std::size_t ist)
 Compatibility graph of Matching station ist (1-based), R x R.
template<class T>
long line::qn::matching::capacity (const NetworkStruct< T > &sn, std::size_t ist)
 Capacity of station ist (1-based), or -1 when the station is uncapped.
template<class T>
bool line::qn::matching::has_patience (const NetworkStruct< T > &sn, std::size_t ist, std::size_t r)
 Whether class r (0-based) reneges at station ist (1-based).
template<class T>
mam::Map< T > line::qn::matching::patience_map (const NetworkStruct< T > &sn, std::size_t ist, std::size_t r)
 The (D0, D1) representation of the class-r patience at station ist.
template<class T>
std::vector< std::size_t > line::qn::matching::phases (const NetworkStruct< T > &sn, std::size_t ist, std::size_t r, bool initial_only)
 Patience phases (1-based) a waiting class-r job can be in: {1} without patience, otherwise 1..K, or only the phases with positive initial probability when initial_only is true.
template<class T>
std::pair< std::vector< std::size_t >, std::vector< T > > line::qn::matching::entry (const NetworkStruct< T > &sn, std::size_t ist, std::size_t r)
 Initial patience phases (1-based) of a new class-r job and their probabilities.
template<class T>
std::vector< std::vector< T > > line::qn::matching::space (const NetworkStruct< T > &sn, std::size_t ist, const std::vector< std::size_t > &n, bool initial_only)
 Local states of Matching station ist (1-based) with per-class waiting counts n, WITHOUT the trailing routing variables.
template<class T>
std::vector< T > line::qn::matching::count_waiting (const NetworkStruct< T > &sn, std::size_t ind, const std::vector< T > &row)
 Per-class waiting counts of a Matching station's local state row (node ind, 1-based).
template<class T>
std::vector< std::pair< std::size_t, std::size_t > > line::qn::matching::word_of (const std::vector< T > &row, std::size_t w2)
 The (class, phase) pairs of a word, both 1-based, oldest first.
template<class T>
std::vector< T > line::qn::matching::pack (const std::vector< std::pair< std::size_t, std::size_t > > &w, const std::vector< T > &row, std::size_t w2)
 Pack a word back into a row of the width of row, keeping its trailing variables.
template<class T>
void line::qn::matching::after_event (const NetworkStruct< T > &sn, std::size_t ind, const std::vector< T > &inspace, lang::EventType event, std::size_t cls, std::vector< std::vector< T > > &rows, std::vector< T > &rates, std::vector< T > &probs)
 Successors of a Matching station (node ind, 1-based) after event on class cls (1-based): the rows, their rates (-1 on the passive ARV) and their probabilities.
template<class T>
std::vector< double > line::qn::matching::source_rates (const NetworkStruct< T > &sn)
 Arrival rate of each class at the Source (0 when the class has none).
template<class T>
Tput line::qn::matching::matching_tput (const NetworkStruct< T > &sn, std::size_t ist, const std::vector< const std::vector< T > * > &rows, const std::vector< double > &prob)
 Per-class rates at Matching station ist (1-based) from the probabilities prob of its local states rows (each [c_1 k_1 ... c_W k_W | vars]).