![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Flat index of the joint variable p2(j,nj,k,i,ni,h). More...
#include <line/api/mapqn/mapqn_params.h>
Public Member Functions | |
| P2Index () | |
| P2Index (int m, int n, const std::vector< int > &k) | |
| std::size_t | half (int i, int ni, int h) const |
| Half-index of (queue, population, phase); identical for both halves. | |
| std::size_t | operator() (int j, int nj, int k, int i, int ni, int h) const |
| std::size_t | num_vars () const |
Public Attributes | |
| int | M = 0 |
| int | N = 0 |
| std::vector< int > | K |
| std::vector< int > | cumK |
| cumK[i] = sum_{i' < i} K(i') | |
| std::size_t | block = 0 |
| (N+1) * sum_i K(i) | |
Flat index of the joint variable p2(j,nj,k,i,ni,h).
The enumeration order is the one mapqn_bnd_qr_ld.m builds: for j, for nj = 0..N, for k = 1..K(j), for i, for ni = 0..N, for h = 1..K(i) which factorizes as outer(j,nj,k) * B + inner(i,ni,h) with the same map used for both halves and B = (N+1) * sum_i K(i). Keeping the two halves identical is what makes the SYMMETRY family a plain index swap.
Definition at line 113 of file mapqn_params.h.
|
inline |
Definition at line 119 of file mapqn_params.h.
|
inline |
|
inline |
Half-index of (queue, population, phase); identical for both halves.
Definition at line 127 of file mapqn_params.h.
Referenced by operator()().
|
inline |
Definition at line 137 of file mapqn_params.h.
References block.
Referenced by line::mapqn::mapqn_bnd_qr_delay(), line::mapqn::mapqn_bnd_qr_ld(), and line::mapqn::qr_zero_bounds().
|
inline |
Definition at line 133 of file mapqn_params.h.
| std::size_t line::mapqn::P2Index::block = 0 |
(N+1) * sum_i K(i)
Definition at line 117 of file mapqn_params.h.
Referenced by num_vars(), operator()(), and P2Index().
| std::vector<int> line::mapqn::P2Index::cumK |
cumK[i] = sum_{i' < i} K(i')
Definition at line 116 of file mapqn_params.h.
| std::vector<int> line::mapqn::P2Index::K |
Definition at line 115 of file mapqn_params.h.
| int line::mapqn::P2Index::M = 0 |
Definition at line 114 of file mapqn_params.h.
Referenced by P2Index().
| int line::mapqn::P2Index::N = 0 |
Definition at line 114 of file mapqn_params.h.