• 大小: 1.31MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-07
  • 语言: Matlab
  • 标签: MATLAB  fmincon  sqp  

资源简介

是对齿轮组以最小体积为目标的优化,包含matlab fmincon用法 sqp优化算法的使用。。保证能成功运行

资源截图

代码片段和文件信息

function   [cceq]=constraint(x)
%%y11=2.65;y12=2.226;y21=1.58;y22=1.764;
% c(1)=17-x(2);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c(1)=0.9-x(1)/(x(2)*x(3));
c(2)=x(1)/(x(2)*x(3))-1.4;
% c(4)=2-x(3);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c(3)=x(2)*x(3)-300;
% c(6)=100-x(5);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% c(7)=x(5)-150;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% c(8)=130-x(6);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% c(10)=x(1)-0.5*x(6)-x(4)-40;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c(4)=1486250/(x(2)*x(3)*sqrt(x(1)))-550;
c(5)=53366522/(x(1)*x(2)*x(3).^2)-400;
c(6)=25214684/(x(1)*x(2)*x(3).^2)-400;
c(7)=117.04*x(4).^4/(x(2)*x(3)*x(5).^4)-0.003*x(4);
c(8)=(sqrt(2.85*10.^6*x(4)/x(2)*x(3)+2.4*10.^12))/x(5).^3-5.5;
c(9)=(sqrt(2.85*10.^6*x(4)/x(2)*x(3)+6*10.^13))/x(6).^3-5.5;
ceq=[];
end

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        819  2018-06-22 10:48  wangbo\constraint.m

     文件        817  2018-06-22 11:20  wangbo\constraint1.m

     文件       2454  2018-06-20 13:03  wangbo\gear.txt

     文件        244  2018-06-22 12:05  wangbo\object.m

     文件       1871  2018-06-22 12:01  wangbo\solve.m

     文件        392  2018-06-22 11:28  wangbo\solve1.m

    ..A..H.       162  2018-06-22 08:49  wangbo\~$减速器优化.docx

     文件     804276  2018-06-20 13:06  wangbo\基于Matlab工具的遗传算法求解有约束最优化问题_刘鲭洁.pdf

     文件        178  2018-06-22 12:11  wangbo\说明.txt

     目录          0  2018-06-22 12:12  wangbo

     文件     630156  2018-06-22 08:49  wangbo\减速器优化.docx

----------- ---------  ---------- -----  ----

              1441369                    11


评论

共有 条评论