Parameter estimation when using ODE15i

Hi everyone,
I have an ODE15i code that runs successful. I have compared its results to the experimental results, the fitting is not poor if anything at all. I am trying to use fminsearch to estimate the parameters that can give a satisfactory fitting. However, I am unable to make the code to assign an output argument.I get the error message:
Output argument "B" (and maybe others) not assigned during call to "ParametersFittingODE15iMethod>ODE15iMethod".
Error in fminsearch (line 200)
fv(:,1) = funfcn(x,varargin{:});
Error in ParametersFittingODE15iMethod (line 148)
[b, B] = fminsearch(@ODE15iMethod,b);
I have attached both the working file and the file that gives an error.
Please help.

댓글 수: 2

madhan ravi
madhan ravi 2018년 12월 23일
what's b? upload the data.
Dursman Mchabe
Dursman Mchabe 2018년 12월 23일
Hi Madhan, Thanks a lot for the comment. b is a set of parameters that I expect fminserach to evaluate. b(1) ... b(31) is approximately equal to R ... kLa_CO2 in the working code. I expect fminsearch to evaluate the values that will make model to fit the experiments.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Linear Model Identification에 대해 자세히 알아보기

질문:

2018년 12월 23일

댓글:

2018년 12월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by