필터 지우기
필터 지우기

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 CenterFile Exchange에서 Nonlinear ARX Models에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by