![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Convergence-based stopping: batch the four metrics and stop once EVERY active (station, class) pair has reached the requested relative precision. More...
#include <line/solvers/ldes/ldes_stats.h>
Public Member Functions | |
| void | init (std::size_t M, std::size_t K, const LdesOptions &o, std::uint64_t max_events) |
| bool | enabled () const |
| std::uint64_t | interval () const |
| void | finalize_batch (const Accum &acc, const std::vector< std::size_t > &nservers, double now) |
| Close the current batch at now and record one batch mean per metric. | |
| bool | converged (const std::vector< std::vector< bool > > &off) const |
| True once every active pair has reached the tolerance on all four metrics. | |
| int | batches () const |
Convergence-based stopping: batch the four metrics and stop once EVERY active (station, class) pair has reached the requested relative precision.
THE CONJUNCTION IS THE POINT. A run stops when the WORST metric at the WORST pair is precise enough, not when the aggregate is: stopping on an average relative precision leaves the lightly loaded stations, whose estimates converge slowest, arbitrarily wrong while the report looks converged.
A pair whose mean is effectively zero counts as converged: a relative precision against zero is not a bound, it is a division. Transcribes checkConvergence and isMetricConverged.
Definition at line 516 of file ldes_stats.h.
|
inline |
Definition at line 587 of file ldes_stats.h.
|
inline |
True once every active pair has reached the tolerance on all four metrics.
Definition at line 566 of file ldes_stats.h.
|
inline |
Definition at line 539 of file ldes_stats.h.
|
inline |
Close the current batch at now and record one batch mean per metric.
Definition at line 543 of file ldes_stats.h.
References line::ldes::engine::Accum::completed, line::ldes::engine::Accum::resp_cnt, line::ldes::engine::Accum::resp_sum, line::ldes::engine::Accum::tot_busy, line::ldes::engine::Accum::tot_qlen, and line::ldes::engine::Accum::util_peak.
|
inline |
Definition at line 518 of file ldes_stats.h.
References line::ldes::LdesOptions::cnvgbatch, line::ldes::LdesOptions::cnvgchk, line::ldes::LdesOptions::cnvgon, line::ldes::LdesOptions::cnvgtol, and line::ldes::LdesOptions::confint.
|
inline |
Definition at line 540 of file ldes_stats.h.