| 查看: 401 | 回复: 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会影响我的优化结果吗?谁能把帮帮我。。。 |
» 猜你喜欢
拟解决的关键科学问题还要不要写
已经有11人回复
救命帖
已经有5人回复
限项规定
已经有5人回复
为什么nbs上溴 没有产物点出现呢
已经有9人回复
招博士
已经有3人回复
存款400万可以在学校里躺平吗
已经有35人回复
最失望的一年
已经有18人回复
求推荐博导
已经有4人回复
求推荐英文EI期刊
已经有5人回复
疑惑?
已经有5人回复
» 本主题相关价值贴推荐,对您同样有帮助:
饭后咳嗽,有痰,咳不出来,持续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人回复
3楼2012-08-04 10:55:22

2楼2012-07-30 09:57:45













回复此楼
