线性化基础知识
定义要线性化的系统,绘制线性响应,验证线性化结果
您可以在模型中定义的默认工作点处线性化 Simulink® 模型。有关详细信息,请参阅在模型工作点处线性化 Simulink 模型。您也可以指定使用基于优化的搜索找到的工作点或在仿真时找到的工作点。
要提取部分模型的线性化响应,您可以定义特定线性化输入和输出点。有关详细信息,请参阅指定要线性化的模型部分。在线性化后,您可以同时在时域和频域中分析和验证您的结果。
App
模型线性化器 | 线性化 Simulink 模型 |
工具
Simulink 控制设计入门之旅 | 免费、自定进度的交互式 Simulink Control Design 课程 (自 R2020b 起) |
函数
linearize | Linear approximation of Simulink model or subsystem |
linearizeOptions | Set linearization options |
getlinio | Obtain linear analysis points from Simulink model, Linear Analysis Plots block, or Model Verification block |
linio | 为 Simulink 模型、Linear Analysis Plots 模块或 Model Verification 模块创建线性分析点 |
setlinio | Save linear analysis points to Simulink model, Linear Analysis Plots block, or Model Verification block |
linlft | Linearize model while removing contribution of specified blocks |
linlftfold | Combine linearization results from specified blocks and model |
fastRestartForLinearAnalysis | Fast restart for linear analysis |
主题
快速入门
- 线性化非线性模型
获取非线性系统的线性逼近,该逼近在工作点周围的小区域内有效。 - 选择线性化工具
借助 Simulink Control Design™ 软件,您可以使用用户界面、函数或模块对非线性模型执行线性分析。 - Exact Linearization Algorithm
Simulink Control Design software linearizes models using a block-by-block approach. The software individually linearizes each block in a Simulink model and produces the linearization of the overall system by combining the individual block linearizations. - 在模型工作点处线性化 Simulink 模型
在由初始状态值和输入信号组成的工作点处线性化模型。 - Linearize Plant
You can linearize a block or subsystem in your Simulink model without defining separate analysis points for the block inputs and outputs. The specified block or subsystem is isolated from the rest of the model before linearization. - Compute Open-Loop Response
You can analyze and compute the combined response of the plant and controller, excluding the effects of the feedback loop. - Order States in Linearized Model
You can control the order of the states in a linearized model. This state order appears in linearization results.
工作点设定
- 在配平工作点处进行线性化
您可以在满足指定输入、输出或状态约束的工作点处线性化 Simulink 模型。 - Linearize at Simulation Snapshot
Simulate a Simulink model and extract the state and input levels of the system at specified simulation times. - Linearize at Triggered Simulation Events
You can linearize a Simulink model at specific events in time. Linearization events can be trigger-based events or function-call events.
指定模型部分
- 指定要线性化的模型部分
使用线性分析点指定要线性化的子系统、环路或模块。
- How the Software Treats Loop Openings
Loop openings affect only how the software recombines linearized blocks, not how the software linearizes each block. The software ignores openings when computing operating points.
具有特殊特性的模型
- Linearize Models with Delays
When linearizing a Simulink model with continuous-time delay blocks, you can either approximate the delays or represent the delays exactly. - Linearize Multirate Models
You can linearize a Simulink model that contains blocks with different sample times.
- Linearize Models with Model References
To achieve an accurate block-by-block linearization of a model reference subsystem, first set it to run its simulation in normal mode. - Linearize Simscape Networks
You can linearize models with Simscape™ components using Simulink Control Design software. - Linearize Sparse Models
Obtain sparse linear systems from Simulink models that contain Sparse Second Order or Descriptor State-Space blocks.
分析和验证
- Analyze Results Using Model Linearizer Response Plots
Analyze the time-domain and frequency-domain responses of linearized models. You can compare the responses of multiple models and view system characteristics such as stability margins and settling time. - View Linearized Model Equations Using Model Linearizer
You can view the state-space equations of your linearized model in the Model Linearizer. - Validate Linearization In Frequency Domain Using Model Linearizer
You can assess the accuracy of your linearization results by estimating the frequency response of the nonlinear model and comparing the result with the response of the linearized model. - Validate Linearization in Time Domain
You can assess the accuracy of your linearization results by comparing the simulated output of the nonlinear model and the linearized model.
代码生成
- Generate MATLAB Code for Linearization from Model Linearizer
To reproduce your interactive linearization results at the command line, you can generate MATLAB® scripts or functions using the Model Linearizer.