| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2001 人关注过本帖
标题:quadprog函数问题
只看楼主 加入收藏
lucky_boy
Rank: 1
等 级:新手上路
帖 子:41
专家分:0
注 册:2008-4-3
收藏
 问题点数:0 回复次数:3 
quadprog函数问题
运行quadprog函数后,出现如下警告:

Warning: Large-scale method does not currently solve this problem formulation,
switching to medium-scale method.
> In quadprog at 242
  In fun at 70
The system of equality constraints is consistent. Removing
the following dependent constraints before continuing:
    30

The equality constraints are dependent.
The problem is badly conditioned; the solution may not be reliable.
The problem is badly conditioned; the solution may not be reliable.
The problem is badly conditioned; the solution may not be reliable.
The problem is badly conditioned; the solution may not be reliable.
The problem is badly conditioned; the solution may not be reliable.
The problem is badly conditioned; the solution may not be reliable.
The problem is badly conditioned; the solution may not be reliable.
The problem is badly conditioned; the solution may not be reliable.
The problem is badly conditioned; the solution may not be reliable.
The problem is badly conditioned; the solution may not be reliable.
The problem is badly conditioned; the solution may not be reliable.
The problem is badly conditioned; the solution may not be reliable.
The problem is badly conditioned; the solution may not be reliable.
The problem is badly conditioned; the solution may not be reliable.
The problem is badly conditioned; the solution may not be reliable.
The problem is badly conditioned; the solution may not be reliable.
The problem is badly conditioned; the solution may not be reliable.
The problem is badly conditioned; the solution may not be reliable.
Maximum number of iterations exceeded; increase options.MaxIter.
To continue solving the problem with the current solution as the
starting point, set x0 = x before calling quadprog.
但仍能得出结果,
问:结果有效吗?
补充:[x,Profit] = quadprog(H,f,A,b,Aeq,beq,lb,ub);
      其中,H:135*135
            A:14*135
            Aeq:30*135
      感觉不算大呀!
      而且几秒钟就运行完啦!
函数代码已放在附件中
请大家帮忙分析一下,哪出了问题,谢谢!

fun.rar (1000 Bytes)
搜索更多相关主题的帖子: quadprog函数 problem The equality constraints 
2008-07-08 08:50
lucky_boy
Rank: 1
等 级:新手上路
帖 子:41
专家分:0
注 册:2008-4-3
收藏
得分:0 
定一下
好心人指点一下
谢谢
2008-07-08 23:19
lucky_boy
Rank: 1
等 级:新手上路
帖 子:41
专家分:0
注 册:2008-4-3
收藏
得分:0 
这问题真的很难吗?
为啥没人回复呢?
2008-07-09 23:46
lucky_boy
Rank: 1
等 级:新手上路
帖 子:41
专家分:0
注 册:2008-4-3
收藏
得分:0 
拜托
版主帮忙指点一下吧!
谢谢!
2008-07-11 16:52
快速回复:quadprog函数问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017077 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved