Using lsqcurvefit to estimate parameters, while solving daes using ode15i

조회 수: 2 (최근 30일)
Dursman Mchabe
Dursman Mchabe 2019년 1월 12일
답변: Zhongfu Wang 2020년 1월 22일
Hi all,
I am trying to estimate 13 parameters using lsqcurvefit, while using ode15i to solve 4 daes. The attached script gives an error message:
Error using decic (line 108)
Convergence failure in DECIC.
Error in ODE15iMethod>fitodes (line 39)
[x0,xp0] = decic(@ReneeMchabeWaterDAE,0,x0,[1 1 0 0],xp0,[],options);
Error in lsqcurvefit (line 213)
initVals.F = feval(funfcn_x_xdata{3},xCurrent,XDATA,varargin{:});
Error in ODE15iMethod (line 23)
cfit = lsqcurvefit(@fitodes,c0,t,y,lb,ub,options);
Caused by:
Failure in initial objective function evaluation. LSQCURVEFIT cannot continue.
What can I try?

답변 (1개)

Zhongfu Wang
Zhongfu Wang 2020년 1월 22일
Hi,
I was wondering have you solved this problem? Now, I am facing the same problem. I am trying to use lsqnonlin to fit parameters, while using ODE15i.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by