フィルターのクリア

How to solve Algebraic Loops in half car model with PID controller

2 ビュー (過去 30 日間)
Mücahit
Mücahit 2023 年 12 月 23 日
回答済み: Sulaymon Eshkabilov 2023 年 12 月 24 日
  6 件のコメント
Sam Chak
Sam Chak 2023 年 12 月 24 日
There is no algebraic loop error message when I run the Simulink file. I added a Scope to check the signals, and they are stable. Perhaps @Sulaymon Eshkabilov can also take a look.
Mücahit
Mücahit 2023 年 12 月 24 日
thank you so much for your efforts. I don't use Scope, I'm using the plot code from the matlab command page. as you can see , there is a very big peak at first.when I run the code, it gives an algebraic loop error but I can get these graphs, and when I change the coefficients, it asks me to reduce the number of steps or fix the algebraic loop set parameter trust region command. i thought that if I solved the algebraic loop error, I would improve the graph more.

サインインしてコメントする。

回答 (2 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023 年 12 月 23 日
By glancing at your Simulink model, that looks ok without seeing f(u)'s. I can see the problem is in f(u) function definitions. I would check f(u) for acceleration calcs.

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023 年 12 月 24 日
There are a couple of derivative blocks in your model that creates all instability (spikes are occuring due to derivatives at t=0, i.e., Any/0 = inf) related issue at the start of your simulation. A possible solution can be:
(1) Switch the derivative block with a some sort of transfer function, e.g., TFD(s) = s/(tau_D*s+1)
(2) Include the derivative term into the PID's transfer fucntion

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by