| 查看: 1222 | 回复: 0 | ||
[求助]
使用fmincon求解老出错,非线性优化
|
|
各位高手,我最近使用Matlab中的fmincon求解时,始终运行出错,望高手给小弟帮忙解答,万分感谢。 例子是网络上的例子,我按照其步骤,系统始终出错。 例子网站:http://wenku.baidu.com/view/1f9a08c30c22590102029d9e.html 在第17页 目标函数: min z=-x1*x2*x3 约束条件:x3*x2+x3*x1+x1*x2-75=0 clear >> x0=[4;5;6]; >> lb=zeros(3,1); >> [x,fval,exitflag,output,lambda]=fmincon('-x(1)*x(2)*x(3)',x0,[],[],[],[],lb,[],@Ex1012c) Warning: Trust-region-reflective algorithm does not solve this type of problem, using active-set algorithm. You could also try the interior-point or sqp algorithms: set the Algorithm option to 'interior-point' or 'sqp' and rerun. For more help, see Choosing the Algorithm in the documentation. > In fmincon at 472 ??? Error using ==> Ex1012c Too many output arguments. Error in ==> fmincon at 670 [ctmp,ceqtmp] = feval(confcn{3},X,varargin{:}); Caused by: Failure in initial user-supplied nonlinear constraint function evaluation. FMINCON cannot continue.[ Last edited by 世纪乘风 on 2013-7-3 at 10:14 ] |
» 本帖附件资源列表
-
欢迎监督和反馈:小木虫仅提供交流平台,不对该内容负责。
本内容由用户自主发布,如果其内容涉及到知识产权问题,其责任在于用户本人,如对版权有异议,请联系邮箱:xiaomuchong@tal.com - 附件 1 : 1651164Ex1012c.m
2013-07-03 10:14:36, 160 bytes
» 猜你喜欢
26/27申博自荐
已经有10人回复
东北林业大学材料科学与工程学院“一流”A+学科国家级人才团队课题组招收2026级博士生
已经有3人回复
医学类期刊求推荐
已经有5人回复
生活琐事由它去
已经有4人回复
提交了我也来说说感想
已经有12人回复
青B发送上会通知了吗
已经有9人回复
西安交大新媒学院副院长用撤稿论文结题
已经有6人回复
论文撤稿了
已经有8人回复
化学专业申博
已经有4人回复
某211大学教师把个人教师官方主页改成:我跑了我跑了我跑了!官宣跑路!
已经有5人回复
找到一些相关的精华帖子,希望有用哦~
matlab fmincon优化函数 怎样知道每次得到的迭代点
已经有3人回复
fmincon优化问题
已经有5人回复
请教!大家用哪种软件求解 约束非线性最优化问题 比较好
已经有14人回复
科研从小木虫开始,人人为我,我为人人












回复此楼
点击这里搜索更多相关资源