Main Content

Using Hammerstein-Wiener Models

After identifying a Hammerstein-Wiener model, you can use the model for the following tasks:

  • Simulation— At the command line, usesimto simulate the model output. To compare models to measured output and to each other, usecompare。请注意,对于Hammerstein-Wiener模型s, the simulated and predicted model output are equivalent because these models have a trivial noise component, that is disturbance in these models is white noise. For information about plotting simulated output in the app, seeSimulation and Prediction in the App

    You can also specify the initial conditions for simulation. The toolbox provides various options to facilitate how you specify initial states. For example, you can usefindstatesto automatically search for state values in simulation and prediction applications. You can also specify the states manually. See theidnlhwreference page for a definition of the Hammerstein-Wiener model states.

    To learn more about howsimcomputes the model output, seeHow the Software Computes Hammerstein-Wiener Model Output

  • Linearization— Compute linear approximation of Hammerstein-Wiener models using线性化orlinapp

    The线性化command provides a first-order Taylor series approximation of the system about an operating point.linappcomputes a linear approximation of a nonlinear model for a given input data. For more information, see theLinear Approximation of Nonlinear Black-Box Models。You can compute the operating point for linearization usingfindop

    After computing a linear approximation of a nonlinear model, you can perform linear analysis and control design on your model using Control System Toolbox™ commands. For more information, seeUsing Identified Models for Control Design ApplicationsandCreate and Plot Identified Models Using Control System Toolbox Software

  • Simulation and code generation using Simulink®— You can import the estimated Hammerstein-Wiener model into Simulink software using the Hammerstein-Wiener block (Hammerstein-Wiener Model) from the System Identification Toolbox block library. After you bring theidnlhwobject from the workspace into Simulink, you can simulate the model output.

    TheIDNLHW Modelblock supports code generation withSimulink Coder™software, using both generic and embedded targets. Code generation does not work when the model containsidCustomNetworkas the input or output nonlinearity. For more information, seeSimulate Identified Model in Simulink

Related Topics