| System Identification Toolbox™ | ![]() |
Grey-box models require that you specify the structure of the ODE model in a file. You use this file to create the idgrey or idnlgrey model object. You can use both the idgrey and the idnlgrey objects to model linear systems. However, you can only represent nonlinear dynamics using the idnlgrey model object.
The idgrey object requires that you write an M-file to describe the linear dynamics in the state-space form, such that this M-file returns the state-space matrices as a function of your parameters. For more information, see Specifying the Linear Grey-Box Model Structure.
The idnlgrey object requires that you write an M-file or MEX-file to describe the dynamics as a set of first-order differential equations, such that this file returns the output and state derivatives as a function of time, input, state, and parameter values. For more information, see Specifying the Nonlinear Grey-Box Model Structure.
The following table compares idgrey and idnlgrey model objects.
Comparison of idgrey and idnlgrey Objects
| Settings and Operations | Supported by idgrey? | Supported by idnlgrey? |
|---|---|---|
| Set bounds on parameter values. | No | Yes |
| Handle initial states individually. | No | Yes |
| Perform linear analysis (e.g., using bode). | Yes | No |
| Honor stability constraints specified by Algorithm.Advanced. Threshold.Zstability and Algorithm.Advanced. Threshold.Sstability model properties | Yes | No |
| Estimate a disturbance model | Yes The disturbance model is represented by K in state-space equations. | No |
| Optimize estimation results for simulation or prediction | Yes Set the Algorithm.Focus property to 'Simulation' or 'Prediction'. | No Because idnlgrey models are Output-Error models, there is no difference between simulation and prediction results. |
![]() | Data Supported by Grey-Box Models | Estimating Linear Grey-Box Models | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |