马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
优化参数为:
myoptions=optimset('LevenbergMarquardt','off','MaxIter',10000,'TolFun',0.01);
x=fsolve(fun,x0,myoptions);
到也能够运行,算出结果,就是出现了如下警告:
Warning: Default trust-region dogleg method of FSOLVE cannot
handle non-square systems; switching to Gauss-Newton method.
> In <a href="error:D:\MATLAB7\toolbox\optim\fsolve.m,232,1">fsolve at 232</a>
In <a href="error:d:\MATLAB7\work\maduo070327.m,241,1">maduo070327>pushbutton3_Callback at 241</a>
In <a href="error:D:\MATLAB7\toolbox\matlab\uitools\gui_mainfcn.m,75,1">gui_mainfcn at 75</a>
In <a href="error:d:\MATLAB7\work\maduo070327.m,44,1">maduo070327 at 44</a>
Optimizer appears to be converging to a minimum that is not a root:
Sum of squares of the function values is > sqrt(options.TolFun).
Try again with a new starting point.
改了迭代初值也不行。另外如何在优化参数设置中选择“Gauss-Newton method”(省得switching to Gauss-Newton method)
谢谢!
|