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