注册 登录
编程论坛 Matlab

quadprog函数问题

lucky_boy 发布于 2008-07-08 08:50, 2005 次点击
运行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
      感觉不算大呀!
      而且几秒钟就运行完啦!
函数代码已放在附件中
请大家帮忙分析一下,哪出了问题,谢谢!
3 回复
#2
lucky_boy2008-07-08 23:19
定一下
好心人指点一下
谢谢
#3
lucky_boy2008-07-09 23:46
这问题真的很难吗?
为啥没人回复呢?
#4
lucky_boy2008-07-11 16:52
拜托
版主帮忙指点一下吧!
谢谢!
1