![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
The NRM engine: the reaction network built from sn, and the sample path. More...
#include <line/solvers/ssa/solver_ssa_nrm.h>
Public Member Functions | |
| NrmEngine (const qn::NetworkStruct< T > &sn, const SsaOptions &opt) | |
| SsaSolution | run () |
| Run opt.samples firings and return the time-averaged metrics. | |
| std::size_t | nstates () const |
| The state-vector length, for the tests that assert the phase expansion. | |
| std::size_t | nreactions () const |
| The reaction count, likewise. | |
The NRM engine: the reaction network built from sn, and the sample path.
It is a class rather than a chain of free functions because the run loop threads eight pieces of mutable state (the population vector, the per-node buffers, the in-service phase multisets, the clocks, the propensities and the three metric accumulators) through every step, and the reference threads the same eight as arguments to a single 700-line function.
Definition at line 165 of file solver_ssa_nrm.h.
|
inline |
Definition at line 167 of file solver_ssa_nrm.h.
|
inline |
The reaction count, likewise.
Definition at line 182 of file solver_ssa_nrm.h.
|
inline |
The state-vector length, for the tests that assert the phase expansion.
Definition at line 180 of file solver_ssa_nrm.h.
| SsaSolution line::ssa::NrmEngine< T >::run | ( | ) |
Run opt.samples firings and return the time-averaged metrics.
next_reaction_method_direct: the Gibson and Bruck loop with metrics in line.
Definition at line 1359 of file solver_ssa_nrm.h.
References line::ssa::SsaSolution::CN, line::util::LineConsole::iter(), line::util::LineConsole::loop(), line::ssa::SsaSolution::method, line::NumericError::NumericError(), line::ssa::SsaSolution::PreemptN, line::ssa::SsaSolution::QN, line::ssa::SsaSolution::RN, line::ssa::SsaSolution::samples, line::ssa::SsaSolution::simulated_time, line::ssa::SsaSolution::StartN, line::ssa::SsaSolution::TN, line::ssa::SsaSolution::UN, and line::ssa::SsaSolution::XN.
Referenced by line::ssa::solver_ssa_nrm_analyzer().