主要内容

Check for Algebraic loops in models

mathworks.earlydetection.algebraicLoop

Since R2026a

Dependencies: Simulink® Check™

Usage: General Modeling

Description

Use this to check identify and flags algebraic loops in Simulink models that involve direct feedthrough blocks, which create circular dependencies between block outputs and inputs within the same time step. It also detects artificial algebraic loops that occur when subsystems are configured as direct feedthrough, even if the internal path is not.

Recommended Actions and Results

Review the violations that are flagged by the check and the recommended action for fixing the issue. After applying the changes, save the model and rerun the check analysis.

You can use the Fix button to allow the Model Advisor to fix all flagged violations.

Modeling ConditionRecommended Action
An algebraic loop is present in the model.

Use a Unit Delay block to break the algebraic loop.

Capabilities and Limitations

  • Does not analyze the content of library-linked blocks

  • Does not analyze the content in masked subsystems

  • Does not require model compilation

  • Does not flag when the algebraic loop is formed using From or Goto blocks

  • Supports edit-time checking

Version History

Introduced in R2026a