24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 1589  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 化学308分调剂 +7 你好明天你好 2026-03-30 8/400 2026-03-30 13:02 by 你好明天你好
[考研] 一志愿中南大学化学0703总分337求调剂 +6 niko- 2026-03-27 6/300 2026-03-30 10:25 by herarysara
[考研] 一志愿南航 335分 | 0856 | GPA 4.07 | 有科研经历 +8 cccchenso 2026-03-29 8/400 2026-03-29 23:53 by 我是小康
[考研] 275求调剂 +15 Micky11223 2026-03-25 20/1000 2026-03-29 20:44 by 唐沐儿
[考研] 【求调剂】085601材料工程专硕 | 总分272 | +7 脚滑的守法公民 2026-03-27 7/350 2026-03-29 20:21 by dophin1985
[考研] 289求调剂 +5 BrightLL 2026-03-29 5/250 2026-03-29 17:24 by zhyzzh
[考研] 0856材料化工调剂 总分330 +14 zhubinhao 2026-03-27 14/700 2026-03-29 10:01 by Sjndkwm
[考研] 321求调剂 +7 璞玉~~ 2026-03-25 8/400 2026-03-29 06:41 by 544594351
[考研] 316求调剂 +7 江辞666 2026-03-26 7/350 2026-03-28 21:28 by sanrepian
[考研] 压国家一区线,求导师收留,有恩必谢! +7 迷人的哈哈 2026-03-28 7/350 2026-03-28 16:47 by 催化大白
[考研] 317求调剂 +6 十闲wx 2026-03-24 6/300 2026-03-28 13:27 by Iveryant
[考研] 295求调剂 +5 1428151015 2026-03-27 6/300 2026-03-28 04:04 by fmesaito
[考研] 085600,材料与化工321分调剂 +4 大馋小子 2026-03-27 6/300 2026-03-27 14:11 by 松花缸1201
[考研] 求调剂 一志愿 本科 北科大 化学 343 +6 13831862839 2026-03-24 7/350 2026-03-26 22:57 by 不吃魚的貓
[考研] 309求调剂 +4 gajsj 2026-03-25 5/250 2026-03-26 00:27 by Dyhoer
[考研] 290分调剂求助 +3 吉祥止止陈 2026-03-25 3/150 2026-03-25 19:58 by barlinike
[考研] 347求调剂 +4 L when 2026-03-25 4/200 2026-03-25 13:37 by cocolv
[考研] 0854人工智能方向招收调剂 +4 章小鱼567 2026-03-24 4/200 2026-03-25 13:29 by 2177681040
[考研] 一志愿南航材料专317分求调剂 +5 炸呀炸呀炸薯条 2026-03-23 5/250 2026-03-24 16:52 by 星空星月
[考研] 材料/农业专业,07/08开头均可,过线就行 +3 呵唔哦豁 2026-03-23 4/200 2026-03-23 22:30 by 汪!?!
信息提示
请填处理意见