LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::mam::censor_detail Namespace Reference

Classes

struct  Pattern
 Sparsity pattern with both adjacency directions, diagonal entries allowed. More...

Functions

double cube_sum (const std::vector< std::size_t > &p)
bool level_gap (const std::vector< std::size_t > &setid, const std::vector< std::size_t > &lvl, std::size_t a, std::size_t b)
std::vector< std::pair< std::size_t, std::size_t > > censor_fill (const Pattern &P, const std::vector< std::size_t > &kix, std::size_t k, const std::vector< std::size_t > &setid, const std::vector< bool > &alive, std::size_t &ncols, std::size_t &nrows_into)
 Port of censor_fill: the pattern of P_Bk * (paths inside k) * P_kB over the alive states outside set k, and the number of columns of B that P_kB touches.
std::vector< std::size_t > censor_order (Pattern P, const std::vector< std::size_t > &setid, const std::vector< std::size_t > &lvl, std::size_t S, const std::vector< std::vector< std::size_t > > &pcnt, double &cost)
 Port of censor_order: the greedy structural elimination order of the S sets (0-based ids) and its estimated work, or an empty order and Inf.
template<class T>
std::size_t censor_level_station (const qn::NetworkStruct< T > &sn, const MamOptions &opt)
 Port of censor_level_station: the 0-based level station the options name.
template<class T>
std::vector< T > mam_censor_solve (const Matrix< T > &Q, const std::vector< qn::NetState< T > > &SS, const Matrix< T > &SSa, const qn::NetworkStruct< T > &sn, const MamOptions &opt, MamCensorInfo &info)
 Port of mam_censor_solve: the stationary vector over the rows of Q.

Variables

static const std::size_t kMaxSets = 64
 The partition cap of mam_censor_solve (MAXSETS).

Function Documentation

◆ censor_fill()

std::vector< std::pair< std::size_t, std::size_t > > line::mam::censor_detail::censor_fill ( const Pattern & P,
const std::vector< std::size_t > & kix,
std::size_t k,
const std::vector< std::size_t > & setid,
const std::vector< bool > & alive,
std::size_t & ncols,
std::size_t & nrows_into )
inline

Port of censor_fill: the pattern of P_Bk * (paths inside k) * P_kB over the alive states outside set k, and the number of columns of B that P_kB touches.

F(b,c) holds when b enters some state i of k and a path inside k leads from i to a state of k with an edge to c. Returned as (b,c) pairs, rows ascending.

Definition at line 140 of file solver_mam_censor.h.

References censor_fill().

Referenced by censor_fill(), and censor_order().

◆ censor_level_station()

template<class T>
std::size_t line::mam::censor_detail::censor_level_station ( const qn::NetworkStruct< T > & sn,
const MamOptions & opt )

Port of censor_level_station: the 0-based level station the options name.

Definition at line 261 of file solver_mam_censor.h.

References censor_level_station(), and line::InputError::InputError().

Referenced by censor_level_station(), and mam_censor_solve().

◆ censor_order()

std::vector< std::size_t > line::mam::censor_detail::censor_order ( Pattern P,
const std::vector< std::size_t > & setid,
const std::vector< std::size_t > & lvl,
std::size_t S,
const std::vector< std::vector< std::size_t > > & pcnt,
double & cost )
inline

Port of censor_order: the greedy structural elimination order of the S sets (0-based ids) and its estimated work, or an empty order and Inf.

Definition at line 196 of file solver_mam_censor.h.

References censor_fill(), censor_order(), cube_sum(), and level_gap().

Referenced by censor_order(), and mam_censor_solve().

◆ cube_sum()

double line::mam::censor_detail::cube_sum ( const std::vector< std::size_t > & p)
inline

Definition at line 118 of file solver_mam_censor.h.

References cube_sum().

Referenced by censor_order(), cube_sum(), and mam_censor_solve().

◆ level_gap()

bool line::mam::censor_detail::level_gap ( const std::vector< std::size_t > & setid,
const std::vector< std::size_t > & lvl,
std::size_t a,
std::size_t b )
inline

Definition at line 127 of file solver_mam_censor.h.

References level_gap().

Referenced by censor_order(), and level_gap().

◆ mam_censor_solve()

Variable Documentation

◆ kMaxSets

const std::size_t line::mam::censor_detail::kMaxSets = 64
static

The partition cap of mam_censor_solve (MAXSETS).

Definition at line 96 of file solver_mam_censor.h.

Referenced by mam_censor_solve().