Error in Parameter Esitmation 'OutputTimes'

조회 수: 6 (최근 30일)
Kevin Chung
Kevin Chung 2021년 6월 1일
편집: Chidvi Modala 2021년 6월 9일
Dear all,
I am having issue performing 'Parameter Estimation' of my Simulink model.
The model is able to simulate output values of my model in Simulink but not when performing Parameter Estimation. When simulating through 'Parameter Estimation Toolbox' this error is given;
"Invalid OutputTimes specified in the Configuration Parameters dialog for block diagram 'ParameterEstimationSimulink'"
  • The input data is of continous state with variying timesteps
  • The model is using the same 'Simulation time' with attained input data that is loaded into the model
  • Simulink is able to simulate and compare model output and given input
  • The Solver used is ode45
  • All ports and blocks 'Sample time' configurations are given -1 (inherited)
  • In 'Parameter Estimation' the right Outport is chosen, with same array size as the input data
Can the error origin from the Input data? The input time is imported from an external meaasurment where ''Datetime" is converted into "Seconds" - double.
Thanks a lot for the help,
Kevin

채택된 답변

Chidvi Modala
Chidvi Modala 2021년 6월 9일
편집: Chidvi Modala 2021년 6월 9일
A possible root cause of the issue can be repeating time values in the experimental data which get indirectly fed to 'OutputTimes' within Configuration Parameters when called by Simulink.
  • To verify this :
You may check non unique time values in data by executing the following command:
length(unique(Your2dvector(:,1))
To cause the error, this value might be smaller than the length of your experimental data.
  • Approach to removing duplicate entries:
We can average the values of repeating column entries and get a unique array of elements. I would suggest backing up your experimental data before doing the matrix operations below.
array = [1 10; 2 20; 3 30; 4 40; 4 50; 4 60; 5 70; 6 80; 7 90; 7 100; 8 110];
[C,ia,idx] = unique(array(:,1),'stable');
val = accumarray(idx,array(:,2),[],@mean);
your_mat = [C val]

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Manual Performance Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by