目录
已知Simulink模型,计算平衡点
系统的平衡点,或称系统的稳定运行点,此运行点满足 dx/dt=0, x(k+1)-x(k)=0, and y=ydes.
方法:
Functions:
findop 、findopOptions
Apps:
Linear Analysis Tool 、Steady State Manager
- Steady State Manager工具箱
Analysis > Control Design > Steady State Manager.
Linear Analysis Tool
功能:
计算平衡点
Linearize(在某运行点处 线性化)
step
Bode
奈圭斯特
特征根分布
根轨迹
矫正
After trimming your model, you can: (求得运行点(平衡点)后,你可以):
-
Linearize your model at the resulting operating point. For more information, see Linearize at Trimmed Operating Point.
-
Simulate your model at the resulting operating point. For more information, see Simulate Simulink Model at Specific Operating Point.
This example shows how to linearize a model at a trimmed steady-state operating point (equilibrium operating point) using the Linear Analysis Tool.
设置 Setting
输入输出
其中:
Model I/Os
Root level imports and outports
优缺点
-
When you compute an operating point using Linear Analysis Tool, the software does not highlight constraint violations. Instead, you must inspect the operating point report information for any violations.
-
If you trim the model from the preceding Steady State Manager example using the same specifications in the Linear Analysis Tool, the software creates an operating point in the Data Browser, in the Linear Analysis Workspace.
findop
sys = ‘scdairframeTRIM’;
open_system(sys)
alpha_ini = -0.21;
v_ini = 933;
%Create an operating point specification object, and specify which states are known and which are at steady state
opspec = operspec(sys);
opspec.States(1).Known = [1;1];
opspec.States(1).SteadyState = [0;1];
opspec.States(3).Known = [1;1];
opspec.States(3).SteadyState = [0;1];
opspec.States(2).Known = 1;
opspec.States(2).SteadyState = 0;
opspec.States(4).Known = 0;
opspec.States(4).SteadyState = 1;
%Trim the model.(计算指定条件下(spec)的平衡点)
op = findop(sys,opspec);
检查由以上方法计算得出的平衡点的有效性
To validate your operating point against the specifications,
相关文档
Compute Operating Points from Specifications at the Command Line(findop 、findopOptions)
Compute Operating Points from Specifications Using Steady State Manager
Compute Operating Points from Specifications Using Linear Analysis Tool