Main Content

Maximum number of bracketing iterations

Maximum number of iterations performed when locating zero crossing

Since R2022a

Model Configuration Pane: Solver

Description

The Maximum number of bracketing iterations parameter specifies the maximum number of bracketing iterations for the fixed-step zero-crossing detection algorithm. When a discontinuity, or zero crossing, is detected in a simulation that has zero-crossing detection enabled, the solver tries to determine the time at which the zero crossing occurred through an iterative process called bracketing.

To adjust the bounded computational cost of the fixed-step zero-crossing algorithm, use this parameter and the Maximum number of zero-crossings per step parameter.

Dependencies

To enable this parameter:

Settings

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.

Programmatic Use

Parameter: MaxZcBracketingIterations
Type: numeric
Value: positive scalar integer
Default: 10

Version History

Introduced in R2022a