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???
No products are associated with this question.
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:
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.