Main Content

Solver Jacobian Method

Method implicit solvers use to compute Jacobian matrix

Model Configuration Pane: Solver

Description

Selecting a sparse Jacobian method might improve simulation speed for models with many continuous states.

Dependencies

To enable this parameter, configure your model with one of these parameter combinations:

  • Set the solver Type to Variable-step and use the Solver parameter to select one of these implicit solvers:

    • ode15s (stiff/NDF)

    • ode23s (stiff/Mod. Rosenbrock)

    • ode23t (mod. stiff/Trapezoidal)

    • ode23tb (stiff/TR-BDF2)

    • daessc (DAE solver for Simscape™)

  • Set the solver Type to Variable-step. For the Solver parameter, select odeN (Nonadaptive). Then, for the Integration method parameter, select ode14x (extrapolation).

  • Set the solver Type to Fixed-step and set the Solver parameter to ode14x (extrapolation) or ode1be (Backward Euler).

Settings

auto (default) | Sparse perturbation | Full perturbation | Sparse analytical | Full analytical

By default, the software chooses the Jacobian method. For most models, the solver chooses a Jacobian method with sufficient accuracy.

When a referenced model configured to use a local solver has an implicit top solver or parent solver, this parameter value must be auto or Full perturbation.

For more information, see Choose a Jacobian Method for an Implicit Solver.

Recommended Settings

The table summarizes recommended values for this parameter based on considerations related to code generation.

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: SolverJacobianMethodControl
Type: string | character vector
Value: 'auto' | 'SparsePerturbation' |'FullPerturbation' | 'SparseAnalytical' | 'FullAnalytical'
Default: 'auto'

Version History

Introduced in R2010b