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)