24小时热门版块排行榜    

查看: 1555  |  回复: 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的回帖

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的回帖
查看全部 4 个回答

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的回帖

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的回帖
信息提示
请填处理意见