Solver reset method

Description

Select how the solver behaves during a reset, such as when it detects a zero crossing.

Category: Solver

Settings

Default: Fast

Fast

Specifies that the solver will not recompute the Jacobian matrix at a solver reset.

Robust

Specifies that the solver will recompute the Jacobian matrix needed by the integration step at every solver reset.

Tips

  • Selecting Fast speeds up the simulation. However, it can result in incorrect solutions in some cases.

  • If you suspect that the simulation is giving incorrect results, try the Robust setting. If there is no difference in simulation results between the fast and robust settings, revert to the fast setting.

Dependencies

This parameter is enabled only if you select one of the following solvers:

  • ode15s (Stiff/NDF)

  • ode23t (Mod. Stiff/Trapezoidal)

  • ode23tb (Stiff/TR-BDF2)

Command-Line Information

Parameter: SolverResetMethod
Value: 'Fast' | 'Robust'
Default: 'Fast'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics