中国汽车工程师之家--聚集了汽车行业80%专业人士 

论坛口号:知无不言,言无不尽!QQ:542334618 

本站手机访问:直接在浏览器中输入本站域名即可 

  • 1325查看
  • 0回复

汽车鼓式制动器用MATLAB优化设计的问题

[复制链接]


该用户从未签到

发表于 5-6-2011 01:32:05 | 显示全部楼层 |阅读模式

汽车零部件采购、销售通信录       填写你的培训需求,我们帮你找      招募汽车专业培训老师


目标函数
function f=myfun(x)
f =(x(4)/(8*0.3))*((x(2)-sin(x(2))*cos(x(3)))/(sin(x(2)/2)*sin(x(3)/2)))-((2*x(1)^2*0.3)/(x(4)*x(5))*((sin(x(2)/2)*sin(x(3)/2))/(x(2)-sin(x(2))*cos(x(3))))*(1-(x(4)/x(1))*cos(x(2)/2)*cos(x(3)/2))^2);
约束条件
function[c,ceq]=myconfun(x)
c(1) =0.3-(2*x(2)*(x(4)^2)-(x(4)*(2*(x(4))^2-(x(5))^2)*sin(x(2))))/((4*x(1)*x(5)*sin(x(2)/2))-(x(5)*sqrt(4*(x(4)^2)-(x(5)^2)*sin(x(2)))));
c(2) =(x(4)*x(2))/(x(5)*sin(x(2)/2))-2;
c(3) =(1500*(27.8^2))/(8*4.73*x(1)*50*x(2))-1.8;
c(4) =((2*x(5)^2*311*sin(x(2)/2))/(50*x(2)*(2*x(4)^2*x(2)-(2*x(4)^2-x(5)^2+0.3*x(5)*sqrt(4*x(4)^2-x(5)^2))*sin(x(2))-4*x(1)*0.3*x(5)*sin(x(2)/2))))-1.6;
c(5) =(1134*4)/(1500*x(1))-0.9;
ceq=[];
运行
x0=[121,1.6,3.7,102,195];
lb=[120;1.59;3.5;100;192];
ub=[130;2.09;4.37;108;208];
[x,fval,exitflag,output]=fmincon('myfun',x0,[],[],[],[],lb,ub,'myconfun');

为什么运行之后显示的是
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
  In Untitled5 at 4

我是MATLAB的新手,有点搞不懂了,请各位高手帮帮忙,分析分析

快速发帖

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|Archiver|汽车工程师之家 ( 渝ICP备18012993号-1 )

GMT+8, 23-11-2024 02:33 , Processed in 0.358157 second(s), 27 queries .

Powered by Discuz! X3.5

© 2001-2013 Comsenz Inc.