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
Solverthe method family:
mva,ctmc,ldes, …Methodthe 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});
Runnablewhether the model passes that method’s own support gate
Classexact,approx,boundorsimulation. Exactness is claimed of the model, not of the algorithm in the abstract:mva.exactreportsexacton a product-form network andapproxon one without a product-form solution.Metricsthe 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.Reasonempty 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
Priordistributions over discrete alternatives
Performance Considerations
Speed (fastest to slowest):
BA (closed-form bounds), MVA (approximate methods)
NC (sampling/asymptotic methods), AG, FLD
MAM (for QBD models)
CTMC (small models)
LDES, SSA, JMT (simulation)
Accuracy (most accurate to approximate):
CTMC (exact for Markovian models)
MAM (exact for QBD models)
NC with exact methods, MVA with exact methods
NC with sampling, MVA approximations, AG
FLD approximations
BA (certified lower/upper bounds)
LDES / JMT / SSA (simulation - statistical accuracy)
Scalability (supports largest models):
BA, FLD, MVA (approximate)
LDES, SSA, JMT (simulation)
NC (with sampling/asymptotic expansions), AG
MAM (for QBD structure)
CTMC (limited by state space)
See Also
Solver Reference - Complete solver method reference
Quick Start - Getting started with LINE solvers
Examples - Example models using different solvers