Main Content

Enable decoupled continuous integration

Option to improve simulation performance by decoupling continuous state integration from discrete sample times

Model Configuration Pane: Solver


The Enable decoupled continuous integration configuration parameter controls whether the fastest discrete sample time in the model controls continuous state integration.

In hybrid models, such as cyber-physical systems, that contain both continuous and discrete sample times, enabling this parameter can improve simulation performance when:

  • You simulate the model using a variable-step solver.

  • The fastest discrete sample time in the model is smaller than the value of the Max step size parameter. To check the maximum step size the solver determines when the value of the Max step size parameter is auto, get the value of the CompiledStepSize parameter using the get_param function.

    maxstep = get_param(mdl,"CompiledStepSize");


off (default) | on

Allow the solver to decouple integration of continuous states from discrete sample times in the model.


Preserve coupling between integration of continuous states and discrete sample times in the model.

Recommended Settings

The table summarizes recommended values for this parameter based on considerations related to code generation.

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precaution

No recommendation

Programmatic Use

Parameter: DecoupledContinuousIntegration
Type: string | character vector
Values: "on" | "off"
Default: "off"

Version History

Introduced in R2017b

See Also