How to remove unwanted states from a linearized Simulink dynamic model?

조회 수: 28 (최근 30일)
I have a non-linear Simulink model of a dynamic system. When I linearize the model using the function "linearize" at an operating point (trim), I get a state space system with 30 states. That is expected because my model indeed has 30 states. But not all these states have significant dynamic effects on the linearized model, my use case, and the input/output (I/O) of the system. What is the best way to remove the unwanted states from my state space model and reduce it to the necessary 12 states that are significant for my system dynamics?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2024년 3월 29일 0:00
편집: MathWorks Support Team 2024년 3월 29일 10:18
For the following use case, the "linearize" function generates a 30 dimensional state space model stored in an object, for example, called 'linsys'. 'linsys' stores a 30x1 vector of states. If you do not know the exact rows that correspond to the unwanted states in the state vector, you can execute the function "balreal" to perform a Gramian-based input/output balancing of state-space realizations in order to identify which states have negligible effect on the input and output. It returns the corresponding vector row index for the negligible states. Then, you can use the function "modred" to eliminate the states that do not affect the system I/O.
An example of how to achieve the above workflow can be found in the link below:
The documentation for the functions "linearize", "balreal", and "modred" can be found below respectively:
  댓글 수: 1
Paul
Paul 2020년 11월 25일
편집: Paul 2021년 10월 8일
In addition to removing states that have a small entries in g, another consdieration may be to remove states in certain frequency bands, typically at high frequency above a certain threshold. For example,
>> h=tf([1 2],conv([1 1],[1/2000 1]));
>> [sysb,g]=balreal(h);
>> g
g =
5.223509018229017e-01
4.776490981770978e-01
Both elements of g are about the same value, yet it still may be appropriate in some use cases to eliminate the pole at s = -2000.
doc freqsep
A follow up question: Is there any difference between minreal and the combination of balreal followed by modred? For example, suppose I have a realization, sys, that is internally stable but with, for example, three modes that are uncontrollabe, unobservable, or both. Then I can compute its balanced realization and three additional realizations as:
[sysb,g] = balreal(sys);
sys1 = minreal(sys);
% for discussion, assume that g(8:10) correspond to those three modes
sys2 = modred(sysb,8:10,'MatchDC');
sys3 = modred(sysb,8:10,'Truncate');
Presumably sys2 and sys3 are different from each other in the sense that they would have different frequency responses. But is either of sys2 or sys3 equivalent to sys1 (same frequency response)? If not, then the answer to the original question may be a bit different for non-minimal realizatons.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dynamic System Models에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by