找回密码
 注册
Simdroid-非首页
查看: 63|回复: 2

(求助)lsqnonlin中extifalg 的意义

[复制链接]
发表于 2010-7-9 11:35:55 | 显示全部楼层 |阅读模式 来自 重庆沙坪坝区
1  LSQNONLIN converged to a solution X.
      2  Change in X smaller than the specified tolerance.
      3  Change in the residual smaller than the specified tolerance.
      4  Magnitude search direction smaller than the specified tolerance.
      0  Maximum number of function evaluations or of iterations reached.    %达到了最大的迭代次数
     -1  Algorithm terminated by the output function.
     -2  Bounds are inconsistent.
     -4  Line search cannot sufficiently decrease the residual along the
          current search direction.

其余的都是什么意义啊?
发表于 2010-7-9 15:34:00 | 显示全部楼层 来自 四川成都
Simdroid开发平台
1# bluestone

1、LSQNONLIN收敛于定解X
2、迭代中X的变化小于指定的误差限
3、迭代中残差的变化小于指定的误差限
4、搜索方向大小小于指定误差限
0、达到了最大的迭代次数或达到函数计算的最大值
-1、计算过程被输出函数所中断
-2、边界不一致(一般lb及ub有矛盾)
-4、沿着当前指定的搜索方向,线性搜索无法有效的减小残差。

一般来说,如果exitflag值返回1的话,该解直接可用;返回2~4的话,你可以通过optimset重新设置一些量,并可进行重新计算,重新计算的值应该更精确些;返回0的话应该代表你的模型是什么样就是什么样了,就是解虽然有,但不准,可你又没办法通过optimset来进行修改来重新计算精确值的意思;而-1、-2、-4则代表你的输入参数出错,导致无法计算

评分

1

查看全部评分

回复 不支持

使用道具 举报

 楼主| 发表于 2010-7-19 14:48:50 | 显示全部楼层 来自 重庆沙坪坝区
2# lengyunfeng
谢谢~~~
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-10-6 21:36 , Processed in 0.046267 second(s), 18 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表