用1stOpt 解有约束非线性最优化问题,函数编好了,可是系统提示有错误,请大家帮忙。
Title "1";Parametersx1,x2,x3,x4,x5,x6;
MinFunction (x1*x2*1.04*pi*(x4^2-x3^2)*((pi*x4*x5)/60) ^3)/(4.16*0.606*(1-((x4+x6)^2-x4^2)/(x4^2-x3^2)));
function 0.28-x3/x4<=0;
function x3/x4-0.36<=0;
function x2*(pi/4)*(x4^2-x3^2)*(pi*x4*x6/60)=1.8278;
回复 楼主 cqhuanghe1 的帖子
Title "Type your title here";//Parameters ;
x1,x2,x3,x4,x5,x6;
//Variable ;
//Function ;
MinFunction (x1*x2*1.04*pi*(x4^2-x3^2)*((pi*x4*x5)/60)^3)/(4.16*0.606*(1-((x4+x6)^2-x4^2)/(x4^2-x3^2)));
0.28-x3/x4<=0;
x3/x4-0.36<=0;
x2*(pi/4)*(x4^2-x3^2)*(pi*x4*x6/60)=1.8278;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
结果:
"Type your title here"
====== 结果 ======
迭代数: 29
计算用时(时:分:秒:毫秒): 00:00:00:297
计算中止原因: 达到收敛判定标准
优化算法: 麦夸特法(Levenberg-Marquardt) + 通用全局优化法
函数表达式: (x1*x2*1.04*pi*(x4^2-x3^2)*((pi*x4*x5)/60)^3)/(4.16*0.606*(1-((x4+x6)^2-x4^2)/(x4^2-x3^2)))
目标函数值(最小): -1.79752137767215E308
x1: -2.47548600539409E28
x2: 3.09185902375204E31
x4: -1.99995399404827E30
x3: -2.35719583557578E30
x5: 1.8610412774104E33
x6: 4.05518775144533E29
约束函数
1: 0.28-x3/x4-(0) = -0.8986250297
2: x3/x4-0.36-(0) = 0.8186250297
3: x2*(pi/4)*(x4^2-x3^2)*(pi*x4*x6/60)-(1.8278) = 1.605106942E150
====== 计算结束 ====== 原帖由 friendchj 于 2009-5-22 18:00 发表 http://www.chinavib.com/forum/images/common/back.gif
... 0.28-x3/x4<=0;
x3/x4-0.36<=0;
x2*(pi/4)*(x4^2-x3^2)*(pi*x4*x6/60)=1.8278;
...约束函数
1: 0.28-x3/x4-(0) = -0.8986250297
2: x3/x4-0.36-(0) = 0.8186250297
3: x2*(pi/4)*(x4^2-x3^2)*(pi*x4*x6/60)-(1.8278) = 1.605106942E150 ...
1stOpt没玩过, 不懂!
但这些是否与约束条件违背!? 还是我误解意义了!
回复 板凳 ChaChing 的帖子
我也没怎么玩过,只是照着说明做的。只是感觉它在最优化方面功能强大
页:
[1]