| 查看: 486 | 回复: 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会影响我的优化结果吗?谁能把帮帮我。。。 |
» 猜你喜欢
实名举报:华南理工大学物理与光电学院副院长李志远婚内两次出轨女学生(博士)
已经有8人回复
现代”学阀”该如何界定
已经有7人回复
各位大神,目前国内有哪些比较好用的逆合成软件?
已经有12人回复
我的奶奶
已经有3人回复
申博发邮件
已经有10人回复
国社科系统bug了,是不是要放榜了?
已经有9人回复
上海工程技术大学激光智能制造课题组|2027级博士研究生招生公告
已经有8人回复
上海工程技术大学激光智能制造课题组招收博士研究生
已经有8人回复
» 本主题相关价值贴推荐,对您同样有帮助:
饭后咳嗽,有痰,咳不出来,持续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










回复此楼
