4
我正在尝试非线性灰盒模型识别,并且使用下面的代码。我对输入矢量,输出矢量和时间戳中的输入进行了测量。非线性灰盒利用Matlab进行系统识别
input = output_data(2:3,:)';
output = output_data(4:5,:)';
time = output_data(1,:)';
data = iddata(output, input, [], 'SamplingInstants', time);
data.TimeUnit = 's';
%create model
Order = [2 2 4]; % Model orders [ny nu nx].cha
Parameters = [1; 1; 1; 1; 1; 0.1]; % Initial parameter vector.
InitialStates = [0; 0; 0; 0]; % Initial initial states.
nlgr_m = idnlgrey('vehicle_m', Order, Parameters, InitialStates);
setpar(nlgr_m, 'Fixed', {true true false false false false});
%Estimate the coefficients
sys = pem(data,nlgr_m, 'Display','Full', 'MaxIter', 20);
%get the parameters and the standard variation
[pvec,pvec_sd] = getpvec(sys)
我试图使用模拟输入/输出与已知的系统参数和。但是,我从中得到的参数与它必须的参数非常不同。即使当我设置初始参数估计时,它也不会估计关闭参数。
我的时间戳是非均匀的,这意味着每两次采样之间的时间间隔不相同。
如果有人可以帮忙,我将不胜感激。