Main Content

Number of consecutive min steps


Specify the maximum number of consecutive minimum step size violations allowed during simulation.

Category: Solver


Default: 1

  • A minimum step size violation occurs when a variable-step continuous solver takes a smaller step than that specified by the Min step size property (see Min step size).

  • Simulink® software counts the number of consecutive violations that it detects. If the count exceeds the value of Number of consecutive min steps, Simulink software displays either a warning or error message as specified by the Min step size violation diagnostic (see Min step size violation).


This parameter is enabled only if you set:

  • Solver Type to Variable-step.

  • Solver to a continuous variable step solver.

Programmatic Use

Parameter: MaxConsecutiveMinStep
Type: character vector
Value: any valid value
Default: '1'

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics