关于优化问题中最优解的警告问题
>> fun='(x(3)-4.18)^2+(x(4)-12.62)^2';a=[-1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1];
b=;
aeq=[-1 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0];
beq=;
x0=;
=fmincon(fun,x0,a,b,aeq,beq)
Warning: Large-scale (trust region) method does not currently solve this type of problem,
switching to medium-scale (line search).
> In fmincon at 274
Optimization terminated: first-order optimality measure less
than options.TolFun and maximum constraint violation is less
than options.TolCon.
Active inequalities (to within options.TolCon = 1e-006):
lower upper ineqlin ineqnonlin
2
x =
11.2300
6.0000
1.3950
9.8350
fval =
15.5124
我是新手,请问用matlab计算出的这个结果是最优解吗?
warning是啥意思啊!
[ 本帖最后由 eight 于 2008-1-9 11:19 编辑 ] fun='(x(3)-4.18)^2+(x(4)-12.62)^2';
这个方程不太明白 原帖由 youngtao82 于 2008-1-9 10:56 发表 http://www.chinavib.com/forum/images/common/back.gif
>> fun='(x(3)-4.18)^2+(x(4)-12.62)^2';
a=[-1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1];
b=;
aeq=[-1 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0];
beq=;
x0=;
=fmincon(f ...
warning 的意思请搜索版面,讨论得太多了 你粘贴的代码可能忘了分号。
运算应该没有问题。
页:
[1]