24小时热门版块排行榜    

查看: 1586  |  回复: 3

Neji1989

新虫 (初入文坛)

[求助] matlab的lsqcurvefit拟合求助

在用lsqcurvefit拟合时,老是出现这样两种提示,请问这是什么缘故?
Optimization completed because the size of the gradient is less than the selected value of the function tolerance
lsqcurvefit stopped because the final change in the sum of squares relative to its initial value is less than the selected value of the function tolerance.
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   关注TA 给TA发消息 送TA红花 TA的回帖

feixiaolin

荣誉版主 (文坛精英)

优秀版主

Optimization completed because the size of the gradient is less than the selected value of the function tolerance
按照预定的参数,优化过程进行不下去了;需要改步长或判断条件,才能继续进行。

lsqcurvefit stopped because the final change in the sum of squares relative to its initial value is less than the selected value of the function tolerance.
重新设定初值,再尝试。多半是收敛到了局部极值。如果自己编程序的话,可以加入扰动解决。
2楼2014-09-03 16:30:46
已阅   关注TA 给TA发消息 送TA红花 TA的回帖

Neji1989

新虫 (初入文坛)

引用回帖:
2楼: Originally posted by feixiaolin at 2014-09-03 16:30:46
Optimization completed because the size of the gradient is less than the selected value of the function tolerance
按照预定的参数,优化过程进行不下去了;需要改步长或判断条件,才能继续进行。

lsqcur ...

你好,谢谢你的帮助。请问怎么加入扰动啊?我是工科的,数学知识不是很好,能推荐点相关文献或书籍吗?
3楼2014-09-04 08:44:06
已阅   关注TA 给TA发消息 送TA红花 TA的回帖

feixiaolin

荣誉版主 (文坛精英)

优秀版主

引用回帖:
3楼: Originally posted by Neji1989 at 2014-09-04 08:44:06
你好,谢谢你的帮助。请问怎么加入扰动啊?我是工科的,数学知识不是很好,能推荐点相关文献或书籍吗?...

用 x*(1+a*rand) 代替 x     //  rand为【-1,+1】间随机数;a=0.01~0.1
4楼2014-09-04 09:43:42
已阅   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 Neji1989 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 材料调剂 +6 匹克i 2026-03-23 6/300 2026-03-24 21:09 by greychen00
[考研] 07化学280分求调剂 +6 722865 2026-03-23 6/300 2026-03-24 20:58 by allen-yin
[考研] 求调剂 +6 研研,接电话 2026-03-24 7/350 2026-03-24 17:01 by barlinike
[考研] 一志愿211 初试270分 求调剂 +5 谷雨上岸 2026-03-23 6/300 2026-03-24 16:32 by laoshidan
[考研] 307求调剂 +3 余意卿 2026-03-21 6/300 2026-03-24 15:03 by 余意卿
[考研] 321求调剂 +4 Ymlll 2026-03-24 4/200 2026-03-24 14:44 by sprinining
[考研] 材料与化工328分调剂 +4 。,。,。,。i 2026-03-23 4/200 2026-03-24 11:03 by 544594351
[考研] 材料专业求调剂 +11 hanamiko 2026-03-18 11/550 2026-03-23 23:12 by peike
[考研] 327求调剂 +5 prayer13 2026-03-23 5/250 2026-03-23 22:11 by 星空星月
[考研] 306求调剂 +9 chuanzhu川烛 2026-03-18 9/450 2026-03-23 13:17 by luoyongfeng
[考研] 北科281学硕材料求调剂 +8 tcxiaoxx 2026-03-20 9/450 2026-03-23 12:16 by tcxiaoxx
[考研] 298求调剂 +8 上岸6666@ 2026-03-20 8/400 2026-03-23 11:02 by laoshidan
[考研] 311求调剂 +3 26研0 2026-03-20 3/150 2026-03-22 14:46 by ColorlessPI
[考研] 303求调剂 +5 安忆灵 2026-03-22 6/300 2026-03-22 12:46 by 素颜倾城1988
[考研] 313求调剂 +4 肆叁贰壹22 2026-03-19 4/200 2026-03-21 17:33 by ColorlessPI
[考研] 材料与化工(0856)304求 B区 调剂 +3 邱gl 2026-03-21 3/150 2026-03-21 13:47 by lature00
[考研] 求调剂 +3 白QF 2026-03-21 3/150 2026-03-21 13:12 by zhukairuo
[考研] 290求调剂 +7 ^O^乜 2026-03-19 7/350 2026-03-20 21:43 by JourneyLucky
[考研] 本科郑州大学物理学院,一志愿华科070200学硕,346求调剂 +4 我不是一根葱 2026-03-18 4/200 2026-03-19 09:11 by 浮云166
[考研] 【同济软件】软件(085405)考研求调剂 +3 2026eternal 2026-03-18 3/150 2026-03-18 19:09 by 搏击518
信息提示
请填处理意见