![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Serial Gillespie (serial, ssa, default) and next-reaction (nrm) simulation of a composition. More...
#include <line/lang/lal/solvers.h>
Public Member Functions | |
| SolverSSA (const Composition &model, SSAOptions options=SSAOptions()) | |
| References model, which must outlive the solver (see SolverCTMC). | |
| SolverSSA (const Composition &&, SSAOptions=SSAOptions())=delete | |
| std::pair< bool, std::optional< std::string > > | supportsModelMethod (const std::string &method) const |
| SolverSSA & | runAnalyzer () |
| void | reset () |
| StateTable | getAvgTable () |
| ActionTable | getActTable () |
| ActionTable | getActT () |
| ActionTable | getActionTable () |
| const SSAResult & | getResult () |
| std::vector< Matrix< double > > | getAvgTard () |
| getAvgTard(), inherited by the reference from NetworkSolver: mean class tardiness against the JobClass deadlines, as {Tard, SysTard}. | |
| std::vector< Matrix< double > > | get_avg_tard () |
| double | getAvgAct (const ActionSpec &action) |
| Throughput estimate of one LAL action (named as in SolverCTMC::getAvgAct). | |
| double | getAvgAct (const std::string &node, lang::EventType event, const std::optional< std::string > &jobclass=std::nullopt, const std::optional< std::string > &mode=std::nullopt) |
| double | getAvgAct (std::size_t node, lang::EventType event, std::size_t jobclass=0) |
| std::vector< double > | getActAvg (const std::vector< ActionSpec > &actions) |
| Throughput estimates of several actions, each named as in getAvgAct. | |
| std::pair< std::vector< double >, std::vector< std::string > > | getAvgReward () |
| Estimates of the rewards declared with Composition::setReward: (R, names). | |
| double | getTotalSimulatedTime () |
| getTotalSimulatedTime: the measured horizon of the LAL SSA run, the time its state and action estimates are averaged over (after warm-up); +inf when the run was absorbed, as the tables' duration attribute reads. | |
| long | getSampleCount () |
| getSampleCount: the measured events of the LAL SSA run (after warm-up), the tables' events attribute. | |
| void | getAvg () const |
| void | sample () const |
Static Public Member Functions | |
| static bool | supports (const Composition &) |
| static std::vector< std::string > | listValidMethods () |
| listValidMethods: SolverSSA.m answers this solver's row of the method registry (doc/line-methods.json) whatever the model, a Composition included; supportsModelMethod then says which of them a composition takes (serial, ssa, default and nrm). | |
| static std::vector< std::string > | list_valid_methods () |
Public Attributes | |
| SSAOptions | options |
Serial Gillespie (serial, ssa, default) and next-reaction (nrm) simulation of a composition.
|
inlineexplicit |
References model, which must outlive the solver (see SolverCTMC).
Definition at line 395 of file solvers.h.
References options.
Referenced by runAnalyzer().
|
delete |
|
inline |
Definition at line 477 of file solvers.h.
References getAvgTard().
|
inline |
Throughput estimates of several actions, each named as in getAvgAct.
Definition at line 490 of file solvers.h.
References getAvgAct().
|
inline |
Definition at line 463 of file solvers.h.
References getActTable().
|
inline |
Definition at line 462 of file solvers.h.
References getActTable().
|
inline |
Definition at line 461 of file solvers.h.
Referenced by getActionTable(), getActT(), and getAvgAct().
|
inline |
Definition at line 521 of file solvers.h.
References line::ErrorKind::ErrorKind(), and line::UnsupportedError::UnsupportedError().
|
inline |
Throughput estimate of one LAL action (named as in SolverCTMC::getAvgAct).
Definition at line 480 of file solvers.h.
References getActTable().
Referenced by getActAvg(), getAvgAct(), and getAvgAct().
|
inline |
Definition at line 481 of file solvers.h.
References getAvgAct().
|
inline |
Definition at line 486 of file solvers.h.
References getAvgAct().
|
inline |
Estimates of the rewards declared with Composition::setReward: (R, names).
Definition at line 497 of file solvers.h.
References line::lal::SSAResult::rewards.
|
inline |
|
inline |
getAvgTard(), inherited by the reference from NetworkSolver: mean class tardiness against the JobClass deadlines, as {Tard, SysTard}.
It solves first when no result is held (getAvgTard.m calls getAvg) and returns what the result carries. A composition declares no JobClass and no deadline, so no LAL result carries a tardiness and both matrices are empty, as the reference returns [] for them.
Definition at line 473 of file solvers.h.
Referenced by get_avg_tard().
|
inline |
|
inline |
getSampleCount: the measured events of the LAL SSA run (after warm-up), the tables' events attribute.
The network counterpart is SsaSolution::samples.
|
inline |
getTotalSimulatedTime: the measured horizon of the LAL SSA run, the time its state and action estimates are averaged over (after warm-up); +inf when the run was absorbed, as the tables' duration attribute reads.
The network counterpart is SsaSolution::simulated_time.
|
inlinestatic |
Definition at line 410 of file solvers.h.
References listValidMethods().
|
inlinestatic |
listValidMethods: SolverSSA.m answers this solver's row of the method registry (doc/line-methods.json) whatever the model, a Composition included; supportsModelMethod then says which of them a composition takes (serial, ssa, default and nrm).
Definition at line 409 of file solvers.h.
Referenced by list_valid_methods().
|
inline |
Definition at line 428 of file solvers.h.
References line::lal::SSAResult::absorbed, line::lal::SSAResult::action_table, line::lal::ActionTable::attrs, line::lal::StateTable::attrs, line::lal::SSAOptions::config, line::lal::SSAOptions::cutoff, line::lal::SSAResult::duration, line::ErrorKind::ErrorKind(), line::lal::SSAOptions::events, line::lal::SSAResult::events, line::lal::SSAOptions::method, line::lal::SSAResult::method, options, line::lal::SSAOptions::record_events, line::lal::SSAOptions::record_syspath, line::lal::SSAOptions::samples, line::lal::SSAOptions::seed, line::lal::simulate(), SolverSSA(), line::lal::SSAResult::state_table, supportsModelMethod(), line::lal::SSAOptions::timeout, line::lal::SSAOptions::timespan, line::lal::SSAOptions::timestep, line::UnsupportedError::UnsupportedError(), and line::lal::SSAOptions::warmupfrac.
|
inline |
Definition at line 525 of file solvers.h.
References line::ErrorKind::ErrorKind(), and line::UnsupportedError::UnsupportedError().
|
inlinestatic |
|
inline |
Definition at line 412 of file solvers.h.
References line::lal::has_discrete(), and line::lal::model_features().
Referenced by runAnalyzer().
| SSAOptions line::lal::SolverSSA::options |
Definition at line 399 of file solvers.h.
Referenced by runAnalyzer(), and SolverSSA().