Cannot solve due to algebraic loop involving

18 次查看(过去 30 天)
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 ?

回答(1 个)

Selena Mastrodonato
Hi @FAIZ UL HASSAN, try to add a Unit delay block.
  8 个评论
FAIZ UL HASSAN
FAIZ UL HASSAN 2023-5-12
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Configure Simulation Conditions 的更多信息

标签

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by