![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
One exact sample path as sample, sampleAggr, sampleSys and sampleSysAggr return it, read off the engine's samplePath block. More...
#include <line/solvers/wrappers/ldes/solver_ldes.h>
Public Attributes | |
| std::vector< double > | t |
| the step times, one per row | |
| Matrix< double > | event |
| One row per event, [time, node, type, class, jobId, phase]: node and class 0-based as on the wire, type an EventType value (ARV 1, DEP 2, PHASE 3, START 15, PREEMPT 16, DROP 17), jobId -1 when untracked, phase 1-based with 0 = none. | |
| std::vector< std::size_t > | nodes |
| 1-based node index of each block of state | |
| std::vector< Matrix< double > > | block |
| per node, rows aligned with t | |
| Matrix< double > | state |
| The blocks side by side, the single matrix ssa::SsaSamplePath::state is. | |
| bool | aggregate = false |
| per-class counts rather than LINE State rows | |
| double | sim_time = 0.0 |
| the simulated clock at the stop | |
| long long | unbound_scripts = 0 |
| drawn intervals recorded as a single phase | |
One exact sample path as sample, sampleAggr, sampleSys and sampleSysAggr return it, read off the engine's samplePath block.
THE ROW CONVENTION IS SolverSSA's (ssa::SsaSamplePath): row k is the state OCCUPIED UNTIL t[k], and the events that end it happen at t[k]. Unlike the SSA path, several events can share a row (a departure that starts the next service is DEP plus START at one epoch), so the events are a matrix keyed by time and not one synchronization index per row.
Definition at line 1466 of file solver_ldes.h.
| bool line::ldes::LdesSample::aggregate = false |
per-class counts rather than LINE State rows
Definition at line 1479 of file solver_ldes.h.
Referenced by line::ldes::ldes_sample_aggr(), and line::ldes::ldes_sample_sys_aggr().
| std::vector<Matrix<double> > line::ldes::LdesSample::block |
per node, rows aligned with t
Definition at line 1476 of file solver_ldes.h.
Referenced by line::ldes::sample_detail::finish(), line::ldes::ldes_sample(), line::ldes::ldes_sample_aggr(), line::ldes::ldes_sample_sys(), and line::ldes::ldes_sample_sys_aggr().
| Matrix<double> line::ldes::LdesSample::event |
One row per event, [time, node, type, class, jobId, phase]: node and class 0-based as on the wire, type an EventType value (ARV 1, DEP 2, PHASE 3, START 15, PREEMPT 16, DROP 17), jobId -1 when untracked, phase 1-based with 0 = none.
Definition at line 1474 of file solver_ldes.h.
Referenced by line::ldes::ldes_sample(), line::ldes::ldes_sample_aggr(), line::ldes::ldes_sample_sys(), and line::ldes::ldes_sample_sys_aggr().
| std::vector<std::size_t> line::ldes::LdesSample::nodes |
1-based node index of each block of state
Definition at line 1475 of file solver_ldes.h.
Referenced by line::ldes::ldes_sample(), line::ldes::ldes_sample_aggr(), line::ldes::ldes_sample_sys(), and line::ldes::ldes_sample_sys_aggr().
| double line::ldes::LdesSample::sim_time = 0.0 |
the simulated clock at the stop
Definition at line 1480 of file solver_ldes.h.
Referenced by line::ldes::sample_detail::finish().
| Matrix<double> line::ldes::LdesSample::state |
The blocks side by side, the single matrix ssa::SsaSamplePath::state is.
Definition at line 1478 of file solver_ldes.h.
Referenced by line::ldes::sample_detail::finish().
| std::vector<double> line::ldes::LdesSample::t |
the step times, one per row
Definition at line 1467 of file solver_ldes.h.
Referenced by line::ldes::sample_detail::finish().
| long long line::ldes::LdesSample::unbound_scripts = 0 |
drawn intervals recorded as a single phase
Definition at line 1481 of file solver_ldes.h.
Referenced by line::ldes::sample_detail::finish().