![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
The RATE accumulator behind the cache blend, SolverENV.accumCacheMetric. More...
#include <line/solvers/env/solver_env_limit.h>
Public Member Functions | |
| void | add (const qn::NetworkStruct< T > &sn, const EnvStageAvg< T > &stage, double w) |
| One stage's contribution, weighted by its arrival into each cache. | |
| solvers::CacheMetrics< double > | finish () const |
| Divide the accumulated rates by the accumulated arrivals, ONCE. | |
The RATE accumulator behind the cache blend, SolverENV.accumCacheMetric.
Public, since the mean-field coupling's substituteCacheBlend_ weights by the same rule.
Keyed by the Cache node's NAME, never by its position: the struct's node order is not the declaration order, and indexing by position is what once made a host write cache results onto a Sink (see cache_metrics.h).
Definition at line 204 of file solver_env_limit.h.
|
inline |
One stage's contribution, weighted by its arrival into each cache.
Definition at line 207 of file solver_env_limit.h.
References line::env::EnvStageAvg< T >::cache, line::solvers::CacheNodeMetrics< T >::delayedprob, line::solvers::CacheNodeMetrics< T >::hitprob, line::solvers::CacheNodeMetrics< T >::hitproblist, line::solvers::CacheNodeMetrics< T >::missprob, line::solvers::CacheNodeMetrics< T >::node, and line::env::EnvStageAvg< T >::TN.
|
inline |
Divide the accumulated rates by the accumulated arrivals, ONCE.
Definition at line 229 of file solver_env_limit.h.
References line::solvers::CacheMetrics< T >::caches, line::Matrix< T >::cols(), line::solvers::CacheNodeMetrics< T >::delayedprob, line::solvers::CacheNodeMetrics< T >::hitprob, line::solvers::CacheNodeMetrics< T >::hitproblist, line::solvers::CacheNodeMetrics< T >::itemcap, line::solvers::CacheNodeMetrics< T >::missprob, line::solvers::CacheNodeMetrics< T >::name, line::solvers::CacheNodeMetrics< T >::nitems, line::solvers::CacheNodeMetrics< T >::node, and line::Matrix< T >::rows().