The Algebraic loop warning
43 次查看(过去 30 天)
显示 更早的评论
Block diagram 'FVModeli' contains 1 algebraic loop(s). To see more details about the loops use the command Simulink.BlockDiagram.getAlgebraicLoops('FVModeli') or the command line Simulink debugger by typing sldebug('FVModeli') in the MATLAB command window. To eliminate this message, set Algebraic loop to "none".
Component:Simulink | Category:Block diagram warning
Found algebraic loop containing:
FVModeli/PV /Ipv/Fcn1
FVModeli/PV /Ipv/Fcn
FVModeli/PV /Ipv/RS (algebraic variable)
Component:Simulink | Category:Model
An error occurred while running the simulation and the simulation was terminated
Caused by:
Simulink cannot solve the algebraic loop containing 'FVModeli/PV /Ipv/Fcn1' at time 0.1 using the TrustRegion-based algorithm due to one of the following reasons: the model is ill-defined i.e., the system equations do not have a solution; or the nonlinear equation solver failed to converge due to numerical issues.
To rule out solver convergence as the cause of this error, follow either of the suggested actions. If the error persists in spite of the above changes, then the model is likely ill-defined and requires modification.
Suggested Actions
Switch to LineSearch-based algorithm using
set_param('FVModeli','AlgebraicLoopSolver','LineSearch') FİX
Reduce the RelTol parameter so that the solver takes smaller time steps. OPEN![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/431278/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/431278/image.png)
回答(1 个)
Kiran Felix Robert
2020-12-16
Hello Elif,
In your block diagram, there are two instances of algebraic loops
- Output of ‘Fcn’ block through the ‘Gain Block – RS’ to the ‘Input-6 of top Bus’
- Output of ‘Fcn’ block through the ‘Gain Block – RS’ to the ‘input-1 of bottom bus’ through the ‘Bottom Fcn’ block and to the ‘Input-7 of top Bus’
Kiran Felix Robert
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Array and Matrix Mathematics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!