数模论坛

 找回密码
 注-册-帐-号
搜索
热搜: 活动 交友 discuz
查看: 19252|回复: 3

求助:matlab二次规划问题(quadprog函数)

  [复制链接]
发表于 2008-7-15 13:49:53 | 显示全部楼层 |阅读模式
运行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
      感觉不算大呀!
      而且几秒钟就运行完啦!
请帮忙分析一下,哪出了问题,谢谢!
发表于 2008-7-16 11:20:57 | 显示全部楼层
函数用的不太正确,看提示
switching to medium-scale method.
 楼主| 发表于 2008-7-16 13:51:30 | 显示全部楼层
谢谢楼上
-----------------------------------------------
exitflag =

     0


output =

       iterations: 200
       algorithm: 'medium-scale: active-set'
    firstorderopt: []
     cgiterations: []
          message: [1x181 char]


lambda =

      lower: [135x1 double]
      upper: [135x1 double]
      eqlin: [30x1 double]
    ineqlin: [14x1 double]

---------------------------------------
系统似乎已经自动转换到了   medium-scale method

问题貌似出在这儿了:
exitflag =

     0         :Number of iterations exceeded options.MaxIter.
该怎么解决?
请赐教
谢谢
发表于 2008-7-16 15:43:32 | 显示全部楼层
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
约束条件中可能存在问题
您需要登录后才可以回帖 登录 | 注-册-帐-号

本版积分规则

小黑屋|手机版|Archiver|数学建模网 ( 湘ICP备11011602号 )

GMT+8, 2024-3-29 08:28 , Processed in 0.080336 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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