Cannot solve due to algebraic loop involving

18 views (last 30 days)
Cannot solve algebraic loop involving 'Model_Test/Controller' because it consists of blocks that cannot be assigned algebraic variables, such as blocks with discrete-valued outputs, blocks with non-double or complex outputs, Stateflow blocks, or nonvirtual subsystems. Consider breaking the algebraic loop.
Component:Simulink | Category:Model error
Algebraic loop error with 'Model_Test/ Model '
Component:Simulink | Category:Model error
Algebraic loop error with 'Model_Test/Controller'
How to fix this error ?

Answers (1)

Selena Mastrodonato
Selena Mastrodonato on 11 May 2023
Hi @FAIZ UL HASSAN, try to add a Unit delay block.
  8 Comments
FAIZ UL HASSAN
FAIZ UL HASSAN on 12 May 2023
Initial condition for output graph to start from (non zero value) and yes I tried ode15s (stiff/NDF) with different values of relative and absolute tolerance. I already added unit delay for algebraic loop.

Sign in to comment.

Categories

Find more on Configure Simulation Conditions in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!