![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
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). | |
|
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().
| 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().
|
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().
|
inline |
Definition at line 118 of file solver_mam_censor.h.
References cube_sum().
Referenced by censor_order(), cube_sum(), and mam_censor_solve().
|
inline |
Definition at line 127 of file solver_mam_censor.h.
References level_gap().
Referenced by censor_order(), and level_gap().
| std::vector< T > line::mam::censor_detail::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.
Definition at line 283 of file solver_mam_censor.h.
References line::mam::censor_detail::Pattern::add(), censor_level_station(), censor_order(), line::mam::MamCensorInfo::cost, cube_sum(), line::mam::MamCensorInfo::key_nodes, kMaxSets, line::mam::ldqbd_censor(), line::mam::MamCensorInfo::level_station, mam_censor_solve(), line::mam::MamCensorInfo::ncandidates, line::mam::MamCensorInfo::nsets, line::mam::MamCensorInfo::nstates, line::mam::MamCensorInfo::order, line::mam::MamCensorInfo::phases, line::mam::LdqbdCensorResult< T >::pi, line::mc::SccResult::recurrent, line::Matrix< T >::rows(), line::mc::SccResult::scc, line::mc::stronglyconncomp(), and line::UnsupportedError::UnsupportedError().
Referenced by mam_censor_solve(), and line::mam::solver_mam_censor().
|
static |
The partition cap of mam_censor_solve (MAXSETS).
Definition at line 96 of file solver_mam_censor.h.
Referenced by mam_censor_solve().