Maximum number of bracketing iterations
Maximum number of iterations performed when locating zero crossing
Model Configuration Pane: Solver
When a discontinuity, or zero crossing, is detected in a simulation where you have zero-crossing detection enabled, the solver tries to determine the time at which the zero crossing occurred through an iterative process. This parameter specifies the maximum number of iterations the solver performs to locate the time of the zero-crossing.
You can adjust the bounded computational cost of the fixed-step zero-crossing algorithm using this parameter and the Maximum number of zero-crossings per step parameter.
To enable this parameter:
Set solver Type to
10 (default) | positive scalar integer
Allowing the solver to perform more iterations to locate each zero crossing can produce a more accurate result but is more computationally intensive.
The table summarizes recommended values for this parameter based on considerations related to code generation.
|Value: positive scalar integer
Introduced in R2022a