| Contents | Index |
In this portion of the tutorial, you estimate nonlinear Hammerstein-Wiener models using default model structure and estimation options.
You must have already prepared the data, as described in Preparing Data. For more information about nonlinear ARX models, see What Is a Hammerstein-Wiener Model?
In the System Identification Tool GUI, select Estimate > Nonlinear models to open the Nonlinear Models dialog box.
In the Configure tab, select Hammerstein-Wiener in the Model type list.

The I/O Nonlinearity tab is open. The default nonlinearity estimator is Piecewise Linear with 10 units for Input Channels and Output Channels, which corresponds to 10 breakpoints for the piecewise linear function.
Select the Linear Block tab to view the model orders and input delay.

By default, the model orders and delay of the linear output-error (OE) model are nb=2, nf=3, and nk=1.
Click Estimate.
This action adds the model nlhw1 to the System Identification Tool GUI.
In the System Identification Tool GUI, select the Model output check box.
This action simulates the model using the input validation data as input to the model and plots the simulated output on top of the output validation data.
The Best Fits area of the Model Output window shows the agreement between the model output and the validation-data output.
You can plot the input/output nonlinearities and the linear transfer function of the model on a Hammerstein-Wiener plot.
In the System Identification Tool GUI, select the Hamm-Wiener check box to view the Hammerstein-Wiener model plot.
The plot displays the input nonlinearity, as shown in the following figure.

Click the yNL rectangle in the top portion of the Hammerstein-Wiener Model Plot window.
The plot updates to display the output nonlinearity.

Click the Linear Block rectangle in the top portion of the Hammerstein-Wiener Model Plot window.
The plot updates to display the step response of the linear transfer function.

In the Choose plot type list, select Bode. This action displays a Bode plot of the linear transfer function.

In this portion of the tutorial, you estimate a Hammerstein-Wiener model with a specific model order and nonlinearity settings. Typically, you select model orders and delays by trial and error until you get a model that produces a satisfactory fit to the data.
You must have already estimated the Hammerstein-Wiener model with default settings, as described in Estimating Hammerstein-Wiener Models with Default Settings.
In the Nonlinear Models dialog box, click the Configure tab, and select the Linear Block tab.
For the Voltage input channel, double-click the corresponding Input Delay (nk) cell, change the value to 3, and press Enter.
Click Estimate.
This action adds the model nlhw2 to the System Identification Tool GUI and the Model Output window is updated to include this model, as shown in the following figure.

The Best Fits area of the Model Output window shows the quality of the nlhw2 fit.
In this portion of the example, you modify the default Hammerstein-Wiener model structure by changing its nonlinearity estimator.
Tip If you know that your system includes saturation or dead-zone nonlinearities, you can specify these specialized nonlinearity estimators in your model. Piecewise Linear and Sigmoid Network are nonlinearity estimators for general nonlinearity approximation. |
In the Nonlinear Models dialog box, click the Configure tab, and click the Linear Block tab.
In the I/O Nonlinearity tab, for the Voltage input, click the Nonlinearity cell, and select Sigmoid Network from the list. Click the corresponding No. of Units cell and set the value to 20.

Click Estimate.
This action adds the model nlhw3 to the System Identification Tool GUI. It also updates the Model Output window, as shown in the following figure.

In the Nonlinear Models dialog box, click the Configure tab.
In the I/O Nonlinearity tab, set the Voltage input Nonlinearity to Wavelet Network. This action sets the No. of Units to be determined automatically, by default.
Set the Height output Nonlinearity to One-dimensional Polynomial.

Click Estimate.
This action adds the model nlhw4 to the System Identification Tool GUI. It also updates the Model Output window, as shown in the following figure.

The best model is the simplest model that accurately describes the dynamics.
In this example, the best model fit was produced in Changing the Nonlinearity Estimator in a Hammerstein-Wiener Model.
![]() | Estimating Nonlinear ARX Models |

Learn more about resources for designing, testing, and implementing control systems.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |