| 查看: 406 | 回复: 2 | ||
[求助]
matlab工具箱能正常运行,但是跳出warning怎么回事
|
|
function f =myfun(x) f =-x(1) * x(2) * x(3); function [c , ceq] = mycon(x) c=[]; ceq = x(2) *x(3) + x(3) *x(1) + x(1) * x(2)-75; x0=[4;5;6]; lb=zeros(3,1); [x,fval,exitflag,output,lambda]=fmincon(@myfun,x0,[],[],[],[],lb,[],@mycon) Warning: Trust-region-reflective algorithm does not solve this type of problem, using active-set algorithm. You could also try the interior-point algorithm: set the Algorithm option to 'interior-point' and rerun. > In fmincon at 460 Local minimum possible. Constraints satisfied. fmincon stopped because the size of the current search direction is less than twice the default value of the step size tolerance and constraints were satisfied to within the default value of the constraint tolerance. No active inequalities. x = 5.0000 5.0000 5.0000 fval = -125.0000 exitflag = 4 output = iterations: 7 funcCount: 30 lssteplength: 1 stepsize: 1.1815e-006 algorithm: 'medium-scale: SQP, Quasi-Newton, line-search' firstorderopt: 2.4478e-006 constrviolation: 8.4075e-007 message: [1x770 char] lambda = lower: [3x1 double] upper: [3x1 double] eqlin: [0x1 double] eqnonlin: 2.5000 ineqlin: [0x1 double] ineqnonlin: [0x1 double] 为什么结果都出来了,还有一个warning,这事怎么回事啊?这个warning会影响我的优化结果吗?谁能把帮帮我。。。 |
» 猜你喜欢
版面费该交吗
已经有14人回复
面上可以超过30页吧?
已经有10人回复
体制内长辈说体制内绝大部分一辈子在底层,如同你们一样大部分普通教师忙且收入低
已经有18人回复
网上报道青年教师午睡中猝死、熬夜猝死的越来越多,主要哪些原因引起的?
已经有5人回复
为什么中国大学工科教授们水了那么多所谓的顶会顶刊,但还是做不出宇树机器人?
已经有10人回复
什么是人一生最重要的?
已经有4人回复
» 本主题相关价值贴推荐,对您同样有帮助:
饭后咳嗽,有痰,咳不出来,持续2分钟左右,是怎么回事
已经有32人回复
两侧胸膜增厚 两肺纹理增多增粗 心影大小正常 两肋膈角稍变钝
已经有11人回复
Matlab人工神经网络工具箱的位置及使用
已经有5人回复
matlab工具箱中curve fitting中的图如何添加横纵坐标轴的名称
已经有5人回复
【求助】24个Mg原子,即hcp结构, 结果里面出现很大的warning,怎么回事
已经有19人回复
【求助】Matlab中的warning:external library missing是怎么回事
已经有8人回复
【求助】用matlab编程,需要将数据自检分类(高手进来指点下)
已经有5人回复
【求助】matlab程序运行出错,是怎么回事啊【已完结】
已经有6人回复
关于应用MATLAB工具箱BP网络编程问题
已经有1人回复
【求助】BSSE of O2运行出错
已经有17人回复
弱弱的问一句,直博、转博和硕博连读都是怎么回事啊?
已经有17人回复
【求助】matlab 遗传算法工具箱绘图命令是什么?
已经有6人回复
【求助】运行ds的笔记本的配置
已经有22人回复

2楼2012-07-30 09:57:45
3楼2012-08-04 10:55:22













回复此楼