24小时热门版块排行榜    

查看: 1587  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 上海电力大学材料防护与新材料重点实验室招收调剂研究生(材料、化学、电化学,环境) +4 我爱学电池 2026-03-23 4/200 2026-03-25 00:59 by 1027_324
[考研] 086003食品工程求调剂 +5 淼淼111 2026-03-24 5/250 2026-03-24 20:53 by lailaisimei
[考研] 289求调剂 +8 硕星赴 2026-03-23 8/400 2026-03-24 20:17 by peike
[考研] 300求调剂,材料科学英一数二 +5 leaflight 2026-03-24 5/250 2026-03-24 16:25 by laoshidan
[考研] 307求调剂 +3 余意卿 2026-03-21 6/300 2026-03-24 15:03 by 余意卿
[考研] 一志愿北京化工大学材料与化工 264分各科过A区国家线 +3 哈哈157349 2026-03-21 3/150 2026-03-24 14:11 by zhyzzh
[考研] 工科0856求调剂 +5 沐析汀汀 2026-03-21 5/250 2026-03-23 17:56 by 海瑟薇-
[考研] 350求调剂 +6 weudhdk 2026-03-19 6/300 2026-03-23 15:47 by tangyuan0840221
[考研] 一志愿中南化学(0703)总分337求调剂 +9 niko- 2026-03-19 10/500 2026-03-22 16:08 by ColorlessPI
[考研] 311求调剂 +3 26研0 2026-03-20 3/150 2026-03-22 14:46 by ColorlessPI
[考研] 269专硕求调剂 +6 金恩贝 2026-03-21 6/300 2026-03-22 14:31 by ColorlessPI
[考研] 求调剂 +3 13341 2026-03-20 3/150 2026-03-21 18:28 by 学员8dgXkO
[考研] 311求调剂 +3 勇敢的小吴 2026-03-20 3/150 2026-03-21 17:40 by ColorlessPI
[考研] 一志愿重庆大学085700资源与环境总分308求调剂 +7 墨墨漠 2026-03-20 7/350 2026-03-21 16:36 by barlinike
[考研] 085601调剂 358分 +3 zzzzggh 2026-03-20 4/200 2026-03-21 10:21 by luoyongfeng
[考研] 324分 085600材料化工求调剂 +4 llllkkkhh 2026-03-18 4/200 2026-03-21 01:24 by JourneyLucky
[考研] 294求调剂材料与化工专硕 +15 陌の森林 2026-03-18 15/750 2026-03-20 23:28 by JourneyLucky
[考研] 一志愿 南京航空航天大学大学 ,080500材料科学与工程学硕 +5 @taotao 2026-03-20 5/250 2026-03-20 20:16 by JourneyLucky
[考研] 一志愿吉林大学材料学硕321求调剂 +11 Ymlll 2026-03-18 15/750 2026-03-20 19:40 by 丁丁*
[考研] 材料考研调剂 +3 xwt。 2026-03-19 3/150 2026-03-19 11:22 by w沐阳w
信息提示
请填处理意见