声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1527|回复: 6

fmincon的使用有没有什么限制的

[复制链接]
发表于 2006-5-15 20:13 | 显示全部楼层 |阅读模式

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

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

x
我在用fmincon算一个21元的非线性规划结果有错<BR>Warning: Large-scale (trust region) method does not currently solve this type of problem,<BR>switching to medium-scale (line search).<BR>&gt; In fmincon at 260<BR>  In feixianxinyouhua at 26<BR>Optimization terminated: magnitude of directional derivative in search<BR>direction less than 2*options.TolFun and maximum constraint violation<BR>  is less than options.TolCon.<BR>No active inequalities<BR>改成了5元的还是那个错误。<BR>这是什么原因啊
回复
分享到:

使用道具 举报

发表于 2006-5-16 08:43 | 显示全部楼层

回复:(xied)fmincon的使用有没有什么限制的

说你你这个问题不适合用Large-scale求解<BR>在调用前加<BR>options=optimset('largescale','off')<BR>用单纯形法求解试试<BR>
 楼主| 发表于 2006-5-16 22:01 | 显示全部楼层
<P>单纯形法不是只能用来线性规划吗。二次型呢,可不可以</P>
发表于 2006-5-16 22:02 | 显示全部楼层

回复:(xied)fmincon的使用有没有什么限制的

自带的函数中只有这两种
[此贴子已经被作者于2006-5-16 22:02:37编辑过]

 楼主| 发表于 2006-5-16 22:04 | 显示全部楼层
二次型的规划函数没有自带的吗就是那个quadprog.
发表于 2006-5-16 22:05 | 显示全部楼层

回复:(xied)fmincon的使用有没有什么限制的

我是说对于fmincon这个函数而言
 楼主| 发表于 2006-5-17 10:24 | 显示全部楼层
o 谢谢
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

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

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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