フィルターのクリア

nlarx model?? how to simulate in simulink

4 ビュー (過去 30 日間)
Markus
Markus 2012 年 7 月 4 日
Hi! i have a MISO-system with 8 inputs and 1 output. First i created a dataset (.....x1x8 idata) In the ident toolbox i designed a nlarx model with a accuracy of 98%. Also the test with the validation data works fine (96%). Than i save the nlarx model into workspace idnlarx. If i simulate there the dataset with the nonlinear ARX-block in simulink the result is terrible. Also terrible is if i compare the model with a dataset. where is my mistake???
Markus

回答 (1 件)

Rajiv Singh
Rajiv Singh 2012 年 7 月 24 日
編集済み: Rajiv Singh 2012 年 7 月 24 日
This might be owing to initial conditions. In the GUI and in the COMPARE function, the fit is computed by estimating the initial conditions (by default) that maximize the fit to the data. In Simulink, you have to enter the appropriate initial conditions yourself based on your knowledge of the state of the system at the start of the simulation. To validate the estimation results in Simulink, you can do this:
  • Split the estimation data into two parts such that the first part has as many samples as there are states in the model. See http://www.mathworks.com/help/toolbox/ident/ref/idnlarx.html
  • Use the I/O variable values from the first part to specify initial conditions for simulation in the IDNLARX model block's dialog.
  • Use the input signal from the second data part to perform the simulation in Simulink.
Your estimation results might appear to be better than they actually are owing to the effect of suitably chosen initial conditions (shown by the Model output plot). To check the true quality of the model, use COMPARE command in the MATLAB command window. Call COMPARE with zero initial conditions and see the fit values.

カテゴリ

Help Center および File ExchangeNonlinear ARX Models についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by