I have a simple Simulink model, looking like the following:
I want the sum (at the right) to be equal to zero, so I have the following equation:
Input*ss1 + Input*K*ss2 = 0
Input * (ss1 + K*ss2) = 0
ss1 + K*ss2 = 0
K = -inv(ss2)*ss1
Both ss1 and ss2 are linear state space with one input, and one input. However, when calculating K, I get a descriptor state space (a,b,c,d AND e), which I cannot (or do not know how to) enter in Simulink. When running the simulink model without the 'K.e', it does not add up to zero.
Can someone tell me how to calculate K, so I don't get the descriptor SS? Or how to use the descriptor SS in Simulink?
Regards,
Thijs

4 件のコメント

Thijs
Thijs 2014 年 4 月 10 日
編集済み: Thijs 2014 年 4 月 10 日
In my real system, ss2 is my plant model, and ss1 is a disturbance acting on the system.
K would be the feedforward 'gain'.
So by taking 'K = -inv(ss2)*ss1', K would be the optimal feedforward gain, and the resulting output (after the sum) should be equal to zero.
The state-spaces are too big (100+ states) to use the function ss2tf. When I use this function, the coefficients in the tf become too large for MATLAB. That is the reason why I am using state spaces instead of transfer functions.
P.S. Just checked with simple TF's, and it does work then (sum is equal to 10^-15 = 0).
Thijs
Thijs 2014 年 4 月 10 日
Anyone?
Thijs
Thijs 2014 年 4 月 11 日
Anyone?
Thijs
Thijs 2014 年 4 月 15 日
Is there noone that can help me on this one?

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

 採用された回答

Arkadiy Turevskiy
Arkadiy Turevskiy 2014 年 4 月 28 日

0 投票

You can implement descriptor state space systems in Simulink using LTI System block from Control System Toolbox.

1 件のコメント

Thijs
Thijs 2014 年 4 月 29 日
That works! Thank you very much.

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

その他の回答 (1 件)

Fu Zhang
Fu Zhang 2019 年 3 月 27 日

0 投票

In 2018b, Simulink introduced descriptor state space block, which is a built-in block that support sparse parameter. Details can be found here : https://www.mathworks.com/help/simulink/slref/descriptorstatespace.html

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

質問済み:

2014 年 4 月 9 日

回答済み:

2019 年 3 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by