MATLAB Answers


How can I resolve the Convergence failure in DECIC?

Asked by Dursman Mchabe on 7 Jan 2019
Hi everyone,
I am trying to use ode15i to solve a system DAEs on the attached code. There seems to be a problem with my decic line. I get the error message:
Error using decic (line 108)
Convergence failure in DECIC.
Error in DAEExersize>fitodes (line 35)
[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 DAEExersize (line 22)
cfit = lsqcurvefit(@fitodes,c0,t,y,lb,ub,options);
Caused by:
Failure in initial objective function evaluation. LSQCURVEFIT cannot continue.
I have tried to change the values of x0, but I did not win. What can I try?


Sign in to comment.


0 Answers