n-step prediction in simulink

1 次查看(过去 30 天)
LEI CAO
LEI CAO 2012-4-10
I have a idss model whose focus is prediction. It is not a good-enough model to be used for simulation. It is easy to get the n-step prediction output in ident GUI. Is it possible to do that in simulink?

回答(1 个)

Rajiv Singh
Rajiv Singh 2012-10-12
编辑:Rajiv Singh 2012-10-12
You will need to implement a predictor model in Simulink. You can "convert" an estimated idss model into a predictor model. Suppose sys is the estimated idss model. Then you can create a one-step ahead predictor model as follows:
[a,b,c,d] = ssdata(sys);
sysp = idss([a-k*c],[k b-k*d],c,[zeros(ny), d],'ts',sys.Ts, 'NoiseVariance', sys.NoiseVariance);
where ny = number of outputs and nu = number of inputs of original model sys. sysp is a model with nu+ny inputs and ny outputs. The input to be used for simulation of sysp must be [y, u], where y is the measured output data (ny columns) and u is the measured input data (nu columns) that you want to use for prediction.
For an arbitrary horizon, construction of "sysp" would not be so straight-forward. Look up the PREDICT command which returns sysp as its 3rd output argument. See:

类别

Help CenterFile Exchange 中查找有关 Compare Output with Measured Data 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by