声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 961|回复: 0

求助:fmincon工具箱问题

[复制链接]
发表于 2006-4-10 21:39 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
<P><FONT size=5><STRONG>各位大侠:<BR>我用fmincon工具箱时,总是只优化初值一次,不知哪里有问题,运行程序如下:</STRONG></FONT><BR>y0=[-30000;-40000];<BR>lb=[-120000;-150000];<BR>ub=[-30000;-30000];<BR>options=optimset('GradObj','off');<BR>[y,fval,exitflag,output,lambda]=fmincon('ff1',y0,[],[],[],[],lb,ub,'mycon',options)<BR><FONT size=4><STRONG>计算后的结果显示如下:<BR></STRONG></FONT>In D:\MATLAB6p5\toolbox\optim\fmincon.m at line 213<BR>Optimization terminated successfully:<BR> Magnitude of directional derivative in search direction <BR>  less than 2*options.TolFun and maximum constraint violation <BR>  is less than options.TolCon<BR> No Active Constraints</P>
<P>y =</P>
<P>  1.0e+004 *</P>
<P>   -3.0000<BR>   -4.0000</P>
<P><BR>fval =</P>
<P>    0.1440</P>
<P><BR>exitflag =</P>
<P>     1</P>
<P><BR>output = </P>
<P>       iterations: 1<BR>        funcCount: 7<BR>         stepsize: 1<BR>        algorithm: 'medium-scale: SQP, Quasi-Newton, line-search'<BR>    firstorderopt: 3.3798e-005<BR>     cgiterations: []</P>
<P><BR>lambda = </P>
<P>         lower: [2x1 double]<BR>         upper: [2x1 double]<BR>         eqlin: [0x1 double]<BR>      eqnonlin: [0x1 double]<BR>       ineqlin: [0x1 double]<BR>    ineqnonlin: 0<BR>约束函数居然用不上去<BR>求:各位高手帮我看一下,提出建议,不胜感谢!急~~~</P>
回复
分享到:

使用道具 举报

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-25 23:16 , Processed in 0.050174 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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