How to play with the Simulink Solver Parameters to reduce the Sampling Frequency?
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm a newby in Simulink. I have a Simulink model running at a high sampling frequency. When I reduce it (doing all the necessary changes in the model), the simulation stops after few ms. The error is due to a algebraic loop that Simulinks can't resolve. But it was able to resolve it at higher Fs!! How can I play with the solver parameters?? I've already played with set_param('Model','AlgebraicLoopSolver','LineSearch') and TrustRegion and I've tried to reduce RelTol but without any succes...
댓글 수: 0
답변 (2개)
Aniruddha Katre
2017년 3월 23일
If you have algebraic loops in the model that are causing these issues, playing with the solver step size is not the best way to resolve it.
Algebraic loops are caused by non-deterministic loops in your model. For example, if you have a variable "y" on both sides of an equation: y = u - y, where you are solving for y. This can result in an algebraic loop.
The best way to resolve them is to take a look at your equations and rearrange them such that the algebraic loops don't occur. The previous equation could be re-written as y = u/2 instead.
Here's a useful documentation link on algebraic loops and how to resolve them: https://www.mathworks.com/help/simulink/ug/algebraic-loops.html
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!