Main Content

Number of consecutive min steps

Number of steps less than or equal to minimum step size allowed before minimum step size violation occurs

Model Configuration Pane: Solver

Description

This parameter specifies how many steps the solver can take that are less than or equal to the minimum step size before a minimum step size violation occurs. When a minimum step size violation occurs, the software issues a diagnostic based on the value of the Min step size violation parameter.

To specify the minimum step size, use the Min step size parameter.

Dependencies

To enable this parameter:

  • Set the solver Type to Variable-step.

  • Set the Solver parameter to a value other than discrete (no continuous states).

Settings

1 (default) | positive scalar integer

By default, the software issues a diagnostic when the solver takes any consecutive steps that are less than or equal to the minimum step size. To allow more consecutive steps that are less than or equal to the minimum step size to occur, specify a larger number as a positive scalar integer value.

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: MaxConsecutiveMinStep
Type: string | character vector
Value: positive scalar integer
Default: '1'

Version History

Introduced before R2006a