Choosing the Right Solver

Ask the model

The guidelines below say what each solver is for. To find out what a particular model can actually be solved with, ask the model:

T = model.findSolver()                % every (solver, method) pair that runs
T = model.findSolver('cdf')           % ... that returns a passage-time law
T = model.findSolver('getCdfRespT')   % the same question, asked by accessor
T = model.findSolver('', true)        % also the pairs refused, and why

findMethod and help are aliases. The result is a table with one row per pair and the columns

Solver

the method family: mva, ctmc, ldes, …

Method

the method name to pass as a solver method, e.g. mva.exact, so a row can be acted on directly:

T = model.findSolver('cdf');
solver = LINE(model, T.Method{1});
Runnable

whether the model passes that method’s own support gate

Class

exact, approx, bound or simulation. Exactness is claimed of the model, not of the algorithm in the abstract: mva.exact reports exact on a product-form network and approx on one without a product-form solution.

Metrics

the measure groups the family can report: avg, tran, cdf, prob, tranprob, sample, cache, loss, orbit, moment, sens. This is what the first argument filters on.

Reason

empty on a runnable row, otherwise the features that caused the refusal, so a refusal says what to change.

The same report is available from the command line as line-cli -f model.json --find-solver (and --find-solver-all to keep the refused pairs).

Selection Guidelines

Use AUTO (or LINE) when:

  • You want LINE to automatically select the best solver for your model

  • You are not sure which solver is most appropriate

  • The model may change and you want adaptive solver selection

Use AG when:

  • You have a Markovian network with synchronization or G-network negative customers/signals

  • You want reversed-rate product-form (RCAT/INAP) approximations

Use BA when:

  • You want guaranteed upper/lower performance bounds rather than point approximations

  • You are running fast capacity-planning sweeps or optimization loops

Use CTMC when:

  • You need exact solutions for a Markovian model

  • The model is small to medium-sized (<6000 states)

  • You need detailed state probabilities, reward analysis, or transient analysis

  • Precision is more important than speed

Use FLD (alias SolverFluid) when:

  • You have a large-scale model where CTMC would have too many states

  • The model has many jobs or uses PS/INF/DPS scheduling

  • Approximate solutions with fast ODE/DAE computation are acceptable

  • You need transient analysis or passage-time distributions for large models

Use LDES when:

  • Your model uses non-Markovian distributions, heterogeneous servers, finite capacity regions, balking/retrials, or Petri-net transitions

  • You want fast native discrete-event simulation with automatic MSER-5 warmup filtering and batch-means/spectral confidence intervals

  • You want to warm-start simulation from an analytical solver via initFromSolver

Use JMT when:

  • You want external discrete-event simulation cross-validation against Java Modelling Tools

  • You need JSIM model export/import

Use MAM when:

  • You have open Markovian systems with MAP/BMAP/PH arrivals and service

  • You need exact or matrix-analytic solutions for infinite state-space QBD/M/G/1-type models

Use MVA when:

  • You have a closed, open, or mixed product-form queueing network

  • You need fast exact or approximate (AMVA) solutions for medium to large models

  • Mean performance metrics are sufficient

Use NC when:

  • You need state probabilities or normalizing constants for closed networks

  • The model is product-form and you prefer exact, asymptotic (RD/NRP), or sampling-based methods

Use SSA when:

  • You need sample paths with detailed Markovian phase information

  • You want tau-leaping or next-reaction stochastic simulation

Use UQ (or POST) when:

  • Model parameters are uncertain and specified as Prior distributions over discrete alternatives

Performance Considerations

Speed (fastest to slowest):

  1. BA (closed-form bounds), MVA (approximate methods)

  2. NC (sampling/asymptotic methods), AG, FLD

  3. MAM (for QBD models)

  4. CTMC (small models)

  5. LDES, SSA, JMT (simulation)

Accuracy (most accurate to approximate):

  1. CTMC (exact for Markovian models)

  2. MAM (exact for QBD models)

  3. NC with exact methods, MVA with exact methods

  4. NC with sampling, MVA approximations, AG

  5. FLD approximations

  6. BA (certified lower/upper bounds)

  7. LDES / JMT / SSA (simulation - statistical accuracy)

Scalability (supports largest models):

  1. BA, FLD, MVA (approximate)

  2. LDES, SSA, JMT (simulation)

  3. NC (with sampling/asymptotic expansions), AG

  4. MAM (for QBD structure)

  5. CTMC (limited by state space)

See Also