24小时热门版块排行榜    

CyRhmU.jpeg
查看: 1913  |  回复: 4

chaiqing123

金虫 (小有名气)

[求助] 请教 matlab关于优化设置及应用到 isqnonlin的一些难点。

这是 我找的其他文献 请问 MaxFunEvals 帮助上说是最大计算次数,如何定义啊?还有 这后面20000 是什么意思
还有关于 Lsqnonlin(@csjs,a0,[],[],options)
我查了帮助 是关于 最后得到值的上下范围 但是 如何定义呢?比如(0,1)是定义lb=[0,0];ub=[1,1];还是直接在Lsqnonlin(@csjs,a0,[0,0],[1,1],options)呢?提到 超出了迭代的限制次数 如何修改 ?





[ Last edited by chaiqing123 on 2012-4-17 at 21:24 ]
回复此楼

» 收录本帖的淘帖专辑推荐

matlab

» 猜你喜欢

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

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

dbb627

荣誉版主 (著名写手)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
chaiqing123: 金币+5, 有帮助 2012-04-18 16:11:21
cenwanglai: 金币+2, ~~ 2012-04-20 09:25:38
MaxFunEvals应该是最大函数值,
MaxFunEvals - Maximum number of function evaluations allowed
                      [ positive integer ]
MaxIter - Maximum number of iterations allowed [ positive scalar ]
TolFun - Termination tolerance on the function value [ positive scalar ]
TolX - Termination tolerance on X [ positive scalar ]
迭代的限制次数,是改MaxIter
options = optimset('MaxIter',5000);
如果是单变量在(0,1)范围内是定义lb=[0];ub=[1]
Lsqnonlin(@csjs,a0,lb,ub,options)或者Lsqnonlin(@csjs,a0,[0],[1],options)
The more you learn, the more you know, the more you know, and the more you forget. The more you forget, the less you know. So why bother to learn.
2楼2012-04-18 14:41:48
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

chaiqing123

金虫 (小有名气)

引用回帖:
2楼: Originally posted by dbb627 at 2012-04-18 14:41:48:
MaxFunEvals应该是最大函数值,
MaxFunEvals - Maximum number of function evaluations allowed
                     
MaxIter - Maximum number of iterations allowed
TolFun - Termination toleranc ...

MaxFunEvals 起的什么作用呢?是不是改成options=optimset('Algorithm','Levenberg-Marquardt','MaxIter',5000)??
3楼2012-04-18 16:15:49
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dbb627

荣誉版主 (著名写手)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★
zhangguangping: 金币+2, 感谢应助! 2012-04-18 21:42:30
chaiqing123: 金币+5, ★★★很有帮助 2012-04-20 08:35:36
引用回帖:
3楼: Originally posted by chaiqing123 at 2012-04-18 16:15:49:
MaxFunEvals 起的什么作用呢?是不是改成options=optimset('Algorithm','Levenberg-Marquardt','MaxIter',5000)??

MaxFunEvals 起的的作用是限制你优化函数的函数值的最大值,
如果要改迭代次数
options=optimset('Algorithm','Levenberg-Marquardt','MaxIter',5000)这么写可以
The more you learn, the more you know, the more you know, and the more you forget. The more you forget, the less you know. So why bother to learn.
4楼2012-04-18 16:20:40
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

chaiqing123

金虫 (小有名气)

引用回帖:
4楼: Originally posted by dbb627 at 2012-04-18 16:20:40:
MaxFunEvals 起的的作用是限制你优化函数的函数值的最大值,
如果要改迭代次数
options=optimset('Algorithm','Levenberg-Marquardt','MaxIter',5000)这么写可以

这么说MaxFunEvals在我这个最小二乘的例子中就要设置为很小了。昨天我将下届 上届带入 发现好像意思是与L-M算法不能共存.....
真郁闷
5楼2012-04-20 08:34:54
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 chaiqing123 的主题更新
信息提示
请填处理意见