Inf computed by model function, fitting cannot continue. Try using or tightening upper and lower bounds on coefficients.
8 ビュー (過去 30 日間)
古いコメントを表示
I have following problem:
I want to estimate battery parameters of 2RC network. I have data from discharge test. To estimate those parameters I want to use curve fitting toolbox, as many did in the literature. I am using following function:
y(x)= a + b*exp(-c*x) + d*exp(-f*x) ; y - terminal voltage ; x - time.
For some reason I have the error like in the topic:
"Inf computed by model function, fitting cannot continue. Try using or tightening upper and lower bounds on coefficients."
I have very large number of data (10k array for 1 parameter) so I decided to pay attention just to one iteration (relaxation zone, just after the pulse current). The error disappeared, but the fit created by the function y(x) is very, very poor. Basically, it is straight line, where it is supposed to be exponential I believe. R-square: -1.776e-15...
Using the function proposed by the toolbox, that is: y2(x) = a*exp(b*x) + c*exp(d*x) looks more promising and R-square value is 0.998 the actual fit shown on the plot is not so accurate, I'd say.
Below, I attached the screen of the interface. Any help would be extremely appreaciated
0 件のコメント
採用された回答
Matt J
2021 年 2 月 16 日
編集済み: Matt J
2021 年 2 月 16 日
the fit created by the function y(x) is very, very poor. Basically, it is straight line
The fit looks very good considering your data. Your data looks piece-wise exponential, whereas your model function is not.
4 件のコメント
Adi Shafir
2021 年 6 月 24 日
Hello,
I have the exect same issue. were you able to find a solution?
Thanks.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with Curve Fitting Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!