LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::ldes::LdesResult Struct Reference

One ldes-result document, parsed. More...

#include <line/solvers/wrappers/ldes/ldes_options.h>

Collaboration diagram for line::ldes::LdesResult:

Classes

struct  BusyPeriodTarget
 One measured busy period target (–busyperiod): a station, a station-class pair, or a declared station set. More...

Public Attributes

std::size_t nstations = 0
Matrix< double > finalJobs
 The jobs present at the end of the run, in the init_jobs layout (track_jobs).
Matrix< double > jobDepartures
 [id, station, class, time] of every departure of a tagged init_jobs job (track_jobs).
std::size_t nclasses = 0
std::size_t nchains = 0
std::size_t nregions = 0
std::vector< std::string > station_names
std::vector< std::string > class_names
Matrix< double > QN
Matrix< double > UN
Matrix< double > RN
Matrix< double > TN
Matrix< double > AN
Matrix< double > WN
Matrix< double > CN
Matrix< double > XN
 (1 x nclasses), per-class visits and system tput
Matrix< double > DropRateJoin
 quorum-Join sibling drops, Join rows only
std::vector< std::string > fj_forks
 Fork and Join node NAMES of each pair, ordered by fork node then join node; empty without a pair.
std::vector< std::string > fj_joins
Matrix< double > FJQLen
Matrix< double > FJRespT
Matrix< double > FJTput
 getAvgFJ, FJQLen = FJTput * FJRespT
Matrix< double > QNCI
Matrix< double > UNCI
Matrix< double > RNCI
Matrix< double > TNCI
Matrix< double > ANCI
Matrix< double > WNCI
bool has_run_length_plan = false
 options.config.runLengthPlan: the run length the caller would need for the precision they asked for, from the half-widths above.
sim::RunLengthPlan< double > run_length_plan
Matrix< double > QNRelPrec
Matrix< double > UNRelPrec
Matrix< double > RNRelPrec
Matrix< double > TNRelPrec
Matrix< double > QNSamples
Matrix< double > UNSamples
Matrix< double > RNSamples
Matrix< double > TNSamples
Matrix< double > QNfcr
Matrix< double > UNfcr
Matrix< double > RNfcr
Matrix< double > TNfcr
Matrix< double > ANfcr
Matrix< double > WNfcr
Matrix< double > WeightNfcr
Matrix< double > MemOccNfcr
Matrix< double > DropRateNfcr
Matrix< double > renegedCustomers
Matrix< double > avgRenegingWaitTime
Matrix< double > renegingRate
Matrix< double > balkedCustomers
Matrix< double > balkingProbability
Matrix< double > retriedCustomers
Matrix< double > retrialDropped
Matrix< double > avgOrbitSize
std::map< std::string, LdesCacheMetrics > cache_metrics
 Per-cache metrics, keyed by the Cache NODE name.
Matrix< double > histogram_space
 The exact joint-state residence-time histogram (–export-histogram).
Matrix< double > histogram_time
Matrix< double > traj_space
Matrix< double > traj_time
std::vector< BusyPeriodTarget > busy_periods
std::vector< double > t
 the time vector, empty on a steady-state run
std::vector< std::vector< Matrix< double > > > QNt
 [STATION][class] -> (npoints x 2), columns [value, time].
std::vector< std::vector< Matrix< double > > > UNt
std::vector< std::vector< Matrix< double > > > TNt
std::vector< std::vector< std::vector< double > > > respTimeSamples
 [station][class] -> the per-job response times the engine recorded, in departure order.
std::vector< std::vector< std::vector< std::vector< double > > > > respTimeSamplesRep
 [rep][station][class][j] -> the same samples kept PER REPLICATION, each in departure order with the warmup included.
bool has_sample_path = false
 –sample-path: the recorded path; meaningful when has_sample_path.
LdesSamplePath sample_path
std::string method = "default"
double runtime = 0.0
bool converged = false
std::string stopping_reason
 convergence | max_events | max_sim_events | max_time.
std::vector< std::string > warnings
 ldes-result "warnings": what the engine warned on its own console, e.g.
long convergence_batches = 0
long long total_simulated_events = 0
bool timed_out = false
 True when the run stopped early on its wall-clock budget (timeout, or the options.timeout armed around it): the engine reported stoppingReason max_time, so the metrics are the interim solution.
std::string engine
 "native" or "jar": which runner produced these numbers.

Detailed Description

One ldes-result document, parsed.

A metric the engine did not report stays EMPTY rather than becoming a matrix of zeros: zero is a measurement and absence is not, and the tables below distinguish them.

Definition at line 253 of file ldes_options.h.

Member Data Documentation

◆ AN

Matrix<double> line::ldes::LdesResult::AN

Definition at line 268 of file ldes_options.h.

◆ ANCI

Matrix<double> line::ldes::LdesResult::ANCI

Definition at line 278 of file ldes_options.h.

◆ ANfcr

Matrix<double> line::ldes::LdesResult::ANfcr

Definition at line 290 of file ldes_options.h.

◆ avgOrbitSize

Matrix<double> line::ldes::LdesResult::avgOrbitSize

Definition at line 296 of file ldes_options.h.

◆ avgRenegingWaitTime

Matrix<double> line::ldes::LdesResult::avgRenegingWaitTime

Definition at line 294 of file ldes_options.h.

◆ balkedCustomers

Matrix<double> line::ldes::LdesResult::balkedCustomers

Definition at line 295 of file ldes_options.h.

◆ balkingProbability

Matrix<double> line::ldes::LdesResult::balkingProbability

Definition at line 295 of file ldes_options.h.

◆ busy_periods

std::vector<BusyPeriodTarget> line::ldes::LdesResult::busy_periods

Definition at line 328 of file ldes_options.h.

Referenced by line::SolverLDES::avg_busy_period().

◆ cache_metrics

std::map<std::string, LdesCacheMetrics> line::ldes::LdesResult::cache_metrics

Per-cache metrics, keyed by the Cache NODE name.

Definition at line 299 of file ldes_options.h.

◆ class_names

std::vector<std::string> line::ldes::LdesResult::class_names

◆ CN

Matrix<double> line::ldes::LdesResult::CN

Definition at line 269 of file ldes_options.h.

Referenced by line::ldes::ldes_engine_solve().

◆ converged

bool line::ldes::LdesResult::converged = false

Definition at line 371 of file ldes_options.h.

◆ convergence_batches

long line::ldes::LdesResult::convergence_batches = 0

Definition at line 377 of file ldes_options.h.

◆ DropRateJoin

Matrix<double> line::ldes::LdesResult::DropRateJoin

quorum-Join sibling drops, Join rows only

Definition at line 270 of file ldes_options.h.

◆ DropRateNfcr

Matrix<double> line::ldes::LdesResult::DropRateNfcr

Definition at line 291 of file ldes_options.h.

◆ engine

std::string line::ldes::LdesResult::engine

"native" or "jar": which runner produced these numbers.

Definition at line 389 of file ldes_options.h.

Referenced by line::ldes::sample_detail::run(), and line::ldes::solver_ldes_text().

◆ finalJobs

Matrix<double> line::ldes::LdesResult::finalJobs

The jobs present at the end of the run, in the init_jobs layout (track_jobs).

Definition at line 258 of file ldes_options.h.

Referenced by line::ldes::ldes_engine_solve().

◆ fj_forks

std::vector<std::string> line::ldes::LdesResult::fj_forks

Fork and Join node NAMES of each pair, ordered by fork node then join node; empty without a pair.

Definition at line 274 of file ldes_options.h.

Referenced by line::ldes::ldes_fj_metrics().

◆ fj_joins

std::vector<std::string> line::ldes::LdesResult::fj_joins

Definition at line 274 of file ldes_options.h.

Referenced by line::ldes::ldes_fj_metrics().

◆ FJQLen

Matrix<double> line::ldes::LdesResult::FJQLen

Definition at line 275 of file ldes_options.h.

Referenced by line::ldes::ldes_engine_solve(), and line::ldes::ldes_fj_metrics().

◆ FJRespT

Matrix<double> line::ldes::LdesResult::FJRespT

Definition at line 275 of file ldes_options.h.

Referenced by line::ldes::ldes_engine_solve(), and line::ldes::ldes_fj_metrics().

◆ FJTput

Matrix<double> line::ldes::LdesResult::FJTput

getAvgFJ, FJQLen = FJTput * FJRespT

Definition at line 275 of file ldes_options.h.

Referenced by line::ldes::ldes_engine_solve(), and line::ldes::ldes_fj_metrics().

◆ has_run_length_plan

bool line::ldes::LdesResult::has_run_length_plan = false

options.config.runLengthPlan: the run length the caller would need for the precision they asked for, from the half-widths above.

Empty unless LdesOptions::run_length_plan_precision is positive.

Definition at line 284 of file ldes_options.h.

Referenced by line::ldes::engine::batch_means_ci().

◆ has_sample_path

bool line::ldes::LdesResult::has_sample_path = false

–sample-path: the recorded path; meaningful when has_sample_path.

Definition at line 365 of file ldes_options.h.

Referenced by line::ldes::sample_detail::run().

◆ histogram_space

Matrix<double> line::ldes::LdesResult::histogram_space

The exact joint-state residence-time histogram (–export-histogram).

histogram_space is (nstates x nstations*nclasses) in the aggregate layout ctmc_state_space_aggr builds and histogram_time the residence time of each row, so E[r] = sum_s (t_s / sum t) r(state_s) is exact also for a NONLINEAR reward. traj_* is the same encoding along the sampled path, downsampled, and is what the transient reward reads.

Definition at line 310 of file ldes_options.h.

Referenced by line::SolverLDES::avg_reward(), and line::ldes::ldes_prob_from_histogram().

◆ histogram_time

Matrix<double> line::ldes::LdesResult::histogram_time

◆ jobDepartures

Matrix<double> line::ldes::LdesResult::jobDepartures

[id, station, class, time] of every departure of a tagged init_jobs job (track_jobs).

Definition at line 260 of file ldes_options.h.

Referenced by line::ldes::ldes_engine_solve().

◆ MemOccNfcr

Matrix<double> line::ldes::LdesResult::MemOccNfcr

Definition at line 291 of file ldes_options.h.

◆ method

std::string line::ldes::LdesResult::method = "default"

Definition at line 369 of file ldes_options.h.

Referenced by line::ldes::parse_ldes_result().

◆ nchains

std::size_t line::ldes::LdesResult::nchains = 0

Definition at line 262 of file ldes_options.h.

◆ nclasses

std::size_t line::ldes::LdesResult::nclasses = 0

Definition at line 261 of file ldes_options.h.

Referenced by line::ldes::ldes_engine_solve().

◆ nregions

std::size_t line::ldes::LdesResult::nregions = 0

Definition at line 263 of file ldes_options.h.

◆ nstations

std::size_t line::ldes::LdesResult::nstations = 0

Definition at line 255 of file ldes_options.h.

Referenced by line::ldes::ldes_engine_solve().

◆ QN

Matrix<double> line::ldes::LdesResult::QN

◆ QNCI

Matrix<double> line::ldes::LdesResult::QNCI

◆ QNfcr

Matrix<double> line::ldes::LdesResult::QNfcr

Definition at line 290 of file ldes_options.h.

◆ QNRelPrec

Matrix<double> line::ldes::LdesResult::QNRelPrec

Definition at line 286 of file ldes_options.h.

◆ QNSamples

Matrix<double> line::ldes::LdesResult::QNSamples

Definition at line 287 of file ldes_options.h.

◆ QNt

std::vector<std::vector<Matrix<double> > > line::ldes::LdesResult::QNt

[STATION][class] -> (npoints x 2), columns [value, time].

THE OUTER INDEX IS THE STATION, not the stateful node: the engine builds these as result.QNt = new Matrix[numStations][numClasses] and fills them at serviceStation (Solver_ssj.getTransientLDESResultBody). The two index spaces coincide only when every stateful node is a station, so on a model holding a Router, a Cache or a Place the stateful index selects another station's series or runs off the end. That is the defect recorded as BUG-95 and fixed in the MATLAB and Python clients.

THE VALUES ARE INTERVAL TIME-AVERAGES, not the integer states the path visits: each entry is (integral of the queue length over the sampling interval) / (interval length). They are a trajectory of MEANS, so they must not be compared against a state to estimate a probability – use histogram_space / histogram_time for that.

Definition at line 349 of file ldes_options.h.

Referenced by line::SolverLDES::tran_avg().

◆ renegedCustomers

Matrix<double> line::ldes::LdesResult::renegedCustomers

Definition at line 294 of file ldes_options.h.

◆ renegingRate

Matrix<double> line::ldes::LdesResult::renegingRate

Definition at line 294 of file ldes_options.h.

◆ respTimeSamples

std::vector<std::vector<std::vector<double> > > line::ldes::LdesResult::respTimeSamples

[station][class] -> the per-job response times the engine recorded, in departure order.

On a replicated steady-state run (replications >= 2) it is the CONCATENATION of the replications in order 0..R-1.

Definition at line 355 of file ldes_options.h.

Referenced by line::SolverLDES::cdf_respt(), line::ldes::ldes_cdf_respt(), line::ldes::ldes_engine_solve(), and line::ldes::ldes_perct_respt().

◆ respTimeSamplesRep

std::vector<std::vector<std::vector<std::vector<double> > > > line::ldes::LdesResult::respTimeSamplesRep

[rep][station][class][j] -> the same samples kept PER REPLICATION, each in departure order with the warmup included.

Filled only by a replicated steady-state run (replications >= 2) that recorded samples; empty otherwise. FIRQUEST (sim_firquest) needs the replications apart, which the pooled block above cannot give back.

Definition at line 363 of file ldes_options.h.

Referenced by line::ldes::ldes_engine_solve(), and line::ldes::ldes_perct_respt().

◆ retrialDropped

Matrix<double> line::ldes::LdesResult::retrialDropped

Definition at line 296 of file ldes_options.h.

◆ retriedCustomers

Matrix<double> line::ldes::LdesResult::retriedCustomers

Definition at line 296 of file ldes_options.h.

◆ RN

Matrix<double> line::ldes::LdesResult::RN

Definition at line 268 of file ldes_options.h.

Referenced by line::ldes::ldes_engine_solve().

◆ RNCI

Matrix<double> line::ldes::LdesResult::RNCI

◆ RNfcr

Matrix<double> line::ldes::LdesResult::RNfcr

Definition at line 290 of file ldes_options.h.

◆ RNRelPrec

Matrix<double> line::ldes::LdesResult::RNRelPrec

Definition at line 286 of file ldes_options.h.

◆ RNSamples

Matrix<double> line::ldes::LdesResult::RNSamples

Definition at line 287 of file ldes_options.h.

◆ run_length_plan

sim::RunLengthPlan<double> line::ldes::LdesResult::run_length_plan

Definition at line 285 of file ldes_options.h.

Referenced by line::ldes::engine::batch_means_ci().

◆ runtime

double line::ldes::LdesResult::runtime = 0.0

Definition at line 370 of file ldes_options.h.

◆ sample_path

LdesSamplePath line::ldes::LdesResult::sample_path

Definition at line 366 of file ldes_options.h.

Referenced by line::ldes::sample_detail::run().

◆ station_names

std::vector<std::string> line::ldes::LdesResult::station_names

Definition at line 264 of file ldes_options.h.

Referenced by line::ldes::ldes_perct_respt().

◆ stopping_reason

std::string line::ldes::LdesResult::stopping_reason

convergence | max_events | max_sim_events | max_time.

Definition at line 373 of file ldes_options.h.

Referenced by line::ldes::ldes_engine_solve().

◆ t

std::vector<double> line::ldes::LdesResult::t

the time vector, empty on a steady-state run

Definition at line 331 of file ldes_options.h.

Referenced by line::SolverLDES::tran_avg().

◆ timed_out

bool line::ldes::LdesResult::timed_out = false

True when the run stopped early on its wall-clock budget (timeout, or the options.timeout armed around it): the engine reported stoppingReason max_time, so the metrics are the interim solution.

Read from the budget's tripped latch (line/util/line_timeout.h). A run KILLED on the hard bound wrote no result and raises LINE:numerical:Timeout instead.

Definition at line 387 of file ldes_options.h.

Referenced by line::ldes::solver_ldes(), and line::ldes::solver_ldes_text().

◆ TN

Matrix<double> line::ldes::LdesResult::TN

◆ TNCI

Matrix<double> line::ldes::LdesResult::TNCI

◆ TNfcr

Matrix<double> line::ldes::LdesResult::TNfcr

Definition at line 290 of file ldes_options.h.

◆ TNRelPrec

Matrix<double> line::ldes::LdesResult::TNRelPrec

Definition at line 286 of file ldes_options.h.

◆ TNSamples

Matrix<double> line::ldes::LdesResult::TNSamples

Definition at line 287 of file ldes_options.h.

◆ TNt

std::vector<std::vector<Matrix<double> > > line::ldes::LdesResult::TNt

Definition at line 349 of file ldes_options.h.

◆ total_simulated_events

long long line::ldes::LdesResult::total_simulated_events = 0

◆ traj_space

Matrix<double> line::ldes::LdesResult::traj_space

Definition at line 312 of file ldes_options.h.

Referenced by line::SolverLDES::tran_reward().

◆ traj_time

Matrix<double> line::ldes::LdesResult::traj_time

Definition at line 313 of file ldes_options.h.

Referenced by line::SolverLDES::tran_reward().

◆ UN

Matrix<double> line::ldes::LdesResult::UN

Definition at line 268 of file ldes_options.h.

Referenced by line::ldes::ldes_engine_solve().

◆ UNCI

Matrix<double> line::ldes::LdesResult::UNCI

◆ UNfcr

Matrix<double> line::ldes::LdesResult::UNfcr

Definition at line 290 of file ldes_options.h.

◆ UNRelPrec

Matrix<double> line::ldes::LdesResult::UNRelPrec

Definition at line 286 of file ldes_options.h.

◆ UNSamples

Matrix<double> line::ldes::LdesResult::UNSamples

Definition at line 287 of file ldes_options.h.

◆ UNt

std::vector<std::vector<Matrix<double> > > line::ldes::LdesResult::UNt

Definition at line 349 of file ldes_options.h.

◆ warnings

std::vector<std::string> line::ldes::LdesResult::warnings

ldes-result "warnings": what the engine warned on its own console, e.g.

a parallel pool that timed out and averaged fewer replications than requested

Definition at line 376 of file ldes_options.h.

◆ WeightNfcr

Matrix<double> line::ldes::LdesResult::WeightNfcr

Definition at line 291 of file ldes_options.h.

◆ WN

Matrix<double> line::ldes::LdesResult::WN

Definition at line 268 of file ldes_options.h.

◆ WNCI

Matrix<double> line::ldes::LdesResult::WNCI

Definition at line 278 of file ldes_options.h.

◆ WNfcr

Matrix<double> line::ldes::LdesResult::WNfcr

Definition at line 290 of file ldes_options.h.

◆ XN

Matrix<double> line::ldes::LdesResult::XN

(1 x nclasses), per-class visits and system tput

Definition at line 269 of file ldes_options.h.

Referenced by line::ldes::ldes_engine_solve().


The documentation for this struct was generated from the following file: