| 查看: 417 | 回复: 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会影响我的优化结果吗?谁能把帮帮我。。。 |
» 猜你喜欢
本9一志愿2 0854低分专硕286求调剂
已经有8人回复
070300化学求调剂
已经有15人回复
329求调剂
已经有12人回复
085701求调剂
已经有6人回复
26考研调剂0710 0860
已经有7人回复
材料专业383求调剂
已经有8人回复
一志愿北京科技大学材料工程085601,求调剂
已经有17人回复
一志愿郑州大学材料与化工085600,求调剂
已经有19人回复
085600,专业课化工原理,321分求调剂
已经有8人回复
求生物学调剂
已经有11人回复
» 本主题相关价值贴推荐,对您同样有帮助:
饭后咳嗽,有痰,咳不出来,持续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














回复此楼