MPC cannot be designed in app

6 ビュー (過去 30 日間)
Dhruv Thakkar
Dhruv Thakkar 2020 年 3 月 17 日
コメント済み: JGP 2024 年 3 月 20 日
I have a Carsim S-functon as the plant model for a MPC. But I get an error saying "Plant model cannot be a pure direct feed-through system without additional dynamics". Why does it keep saying that?
  4 件のコメント
Kumar Prabhakar
Kumar Prabhakar 2021 年 5 月 29 日
SIR HAVE YOU SOLVED THE SAME PROBLEM
TELL ME HOW
zhanglong zhang
zhanglong zhang 2021 年 6 月 11 日
hello, i also have the problem,may you tell me how can i solve it? thank you.

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

回答 (3 件)

Junhao Jiang
Junhao Jiang 2020 年 4 月 22 日
The compatibility between CarSim and Simulink is not high,if you have the state space,you should use it,or you only choose the s-function to make it.
  3 件のコメント
Pacifique Turabimana
Pacifique Turabimana 2021 年 12 月 27 日
How can I add CarSim S-Function in Simulink Library?
I tried to link CarSim with Simulink but nothing to do after because I can't find CarSim in Simulink library, I tried even online MATLAB but I can't be ab;e to continue working on my research. Please guide me to solve it.
Walter Roberson
Walter Roberson 2021 年 12 月 27 日
Unfortunately carsim.com does not appear to post their installation documentation online :(

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


Walter Roberson
Walter Roberson 2021 年 6 月 11 日
According to https://www.mathworks.com/matlabcentral/answers/473358-mpc-controller-direct-feedthrough-from-manipulated-variables-to-any-output-in-plant-is-not-allowed#comment_961921 you currently have an output that is being calcuated from an input signal with no modeled delay, but MPC does not permit that. You need to configure your model to take some time between input and output for all signals.
You can use delay blocks, or you can use a transfer function.
  4 件のコメント
MUHAMMAD
MUHAMMAD 2023 年 12 月 8 日
Solution:
I had same problem and It is solve by adding time delay.
You can add time delay in between MV and plant. I did using matlab command like like
plant = tf([num],[den],'OutputDelay',1.5 )
I hope this answer helped you.
Example
%%Transfer Function By System identification
num = [-1.324 6.6e05 -6.914e09 5.128e13 -1.054e19]
den = [1 1.99e04 1.371e09 1.145e13 4.037e17]
plant = tf([num],[den],'OutputDelay',1.5 )
JGP
JGP 2024 年 3 月 20 日
can you help me? Even if I use the delay or LTI system, the error continues.
How do I insert the Matlab code you mentioned into Simulink?

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


MUHAMMAD
MUHAMMAD 2023 年 12 月 8 日
Solution:
I had same problem and It is solve by adding time delay.
You can add time delay in between MV and plant. I did using matlab command like like
plant = tf([num],[den],'OutputDelay',1.5 )
I hope this answer helped you.
Example
%%Transfer Function By System identification
num = [-1.324 6.6e05 -6.914e09 5.128e13 -1.054e19]
den = [1 1.99e04 1.371e09 1.145e13 4.037e17]
plant = tf([num],[den],'OutputDelay',1.5 )

カテゴリ

Help Center および File ExchangeController Creation についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by