CAD教程 行业资讯 3D模型下载 Pro/E教程 CAD书店 软件下载 联系我们
技术资料 CAD招聘 发布招聘 CAD问答 设计竞赛 CAD认证 北京CAD培训
视频教程 PS教程 CAD图纸 图书推荐 Solidworks教程 CAD培训 CAD软件商

 最新视频教程Pro/ENGINEER Wildfire2.0 工业设计实例视频教程 (全套免费在线学习)   AutoCAD视频教程每日更新
 
首页 > CAD在线问答 > matlab

matlab warning

2010-11-04 51自学网



请问一下,matlab中报错:Warning: Trust-region-reflective method does not currently solve this type of problem, using active-set (line search) instead.> In fmincon at 422Optimization terminated: no feasible solution found. Magnitude of search direction less than 2*options.TolX but constraints are not satisfied.这是什么原因导致的。附原程序:(function f=fun9(x)f=-(15 -10*x(4) -0.5*x(5) -30*x(6) -50*x(7))*x(1)-(20-15*x(4)-0.8*x(5)-24*x(6)-45*x(7)) *x(2)-(16-18*x(4)-1.0*x(5)-20*x(6)-46*x(7)) *x(3);>> A=[10 15 18 0 0 0 0;0.5 0.8 1 0 0 0 0;30 24 20 0 0 0 0;50 45 46 0 0 0 0];b=[1000;80;2000;4000];>> vlb=[50 40 40 0 0 0 0];vub=[];x0=[50;40;40;0;0;0;0];>> [x,fval]=fmincon('fun9',x0,A,b,[],[],vlb,vub)
我做出来也是这个答案,但是由于x(4),x(5),x(6),x(7)是成本,所以不可能为零。

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 460No feasible solution found.fmincon stopped because the size of the current search direction is less thantwice the default value of the step size tolerance but constraints were not satisfied to within the default value of the constraint tolerance.<stopping criteria details>x = 38.0249 28.0249 28.0249 0 0 0 0fval = -1.5793e+003警告时说明选择的算法不是太合理!



 

 

大家帮忙看看matlab语句,怎么都找不到解决办法啊。。。
matlab for程序编写
我来回答 共有条 回答
用户名: 密码:
验证码: 匿名发表
| AutoCAD | Pro/E | UG | 3Dmax | catia | solidworks | maya | photoshop | 模具设计 | 有限元 | matlab | 计算机图形学 | 室内设计 |