在线参数估计
在命令行和 Simulink® 中使用递归算法估计模型参数
您可以使用实时数据和递归算法估计 AR、ARMA、ARX、ARMAX、OE 或 BJ 模型系数的参数。您还可以使用递归最小二乘 (RLS) 算法来估计模型。有关算法的详细信息,请参阅Recursive Algorithms for Online Parameter Estimation。
您可以使用 System Identification Toolbox™ 库的 Estimators 子库中的 Simulink 模块执行在线参数估计。然后,您可以使用 Simulink Coder™ 和 Simulink PLC Coder™ 为这些模块生成 C/C++ 代码和结构化文本,并将此代码部署到嵌入式目标。您还可以在命令行中执行在线估计,并使用 MATLAB® Compiler™ 或 MATLAB Coder 部署您的代码。
函数
recursiveAR | Online parameter estimation of AR model |
recursiveARMA | Online parameter estimation of ARMA model |
recursiveARX | Online parameter estimation of ARX model |
recursiveARMAX | Online parameter estimation of ARMAX model |
recursiveBJ | Online parameter estimation of Box-Jenkins model |
recursiveOE | Online parameter estimation of output-error polynomial model |
recursiveLS | Online parameter estimation of least-squares model |
rpem | Estimate general input-output models using recursive prediction-error minimization method |
rplr | Estimate general input-output models using recursive pseudolinear regression method |
segment | Segment data and estimate models for each segment |
模块
Recursive Least Squares Estimator | Estimate model coefficients using recursive least squares (RLS) algorithm |
Recursive Polynomial Model Estimator | Estimate input-output and time-series polynomial model coefficients |
Model Type Converter | Convert polynomial model coefficients to state-space model matrices |
主题
在线估计基础知识
- What Is Online Estimation?
Estimate states and parameters of a system in real-time. - How Online Parameter Estimation Differs from Offline Estimation
Difference in data, algorithms, and estimation implementations. - Recursive Algorithms for Online Parameter Estimation
Forgetting factor, Kalman filter, gradient and unnormalized gradient, and finite-history algorithms for online parameter estimation.
在 Simulink 中执行在线参数估计
- Preprocess Online Parameter Estimation Data in Simulink
Remove drift, offset, missing samples, seasonalities, equilibrium behavior, and outliers in your data. - 在线递归最小二乘估计
此示例显示如何实现在线递归最小二乘估计器。您估计内燃机的非线性模型并使用递归最小二乘法来检测发动机惯性的变化。 - Online ARMAX Polynomial Model Estimation
This example shows how to implement an online polynomial model estimator. - Validate Online Parameter Estimation Results in Simulink
Examine estimation errors, parameter covariance, and difference between simulated and measured outputs.
在命令行中执行在线参数估计
- Perform Online Parameter Estimation at the Command Line
Online parameter estimation using System Objects. - Online ARX Parameter Estimation for Tracking Time-Varying System Dynamics
Perform online parameter estimation for a time-varying ARX model at the MATLAB command line. - Line Fitting with Online Recursive Least Squares Estimation
This example shows how to perform online parameter estimation for line-fitting using recursive estimation algorithms at the MATLAB® command line. - Validate Online Parameter Estimation at the Command Line
Examine estimation errors, parameter covariance, and difference between simulated and measured outputs. - Data Segmentation
Use of data segmentation to model systems exhibiting abrupt changes.
代码生成
- Generate Online Parameter Estimation Code in Simulink
Generate C/C++ code and Structured Text using Simulink Coder and Simulink PLC Coder products. - Generate Code for Online Parameter Estimation in MATLAB
Generate C/C++ code using MATLAB Coder software; limitations for System objects.
疑难解答
Troubleshoot Online Parameter Estimation
Check your model, estimation data, estimation settings, and initial parameter values.