Genetic algorithm pressurized cylindrical tube

조회 수: 5 (최근 30일)
vincent stevenson
vincent stevenson 2018년 11월 5일
I need to make a 60x6 matrix with these variables, Force, Torque, radius, thickness, Pressure and my cost function. I can't get my cost function to work. ? = (?−2??^2)/(2??^2 )^2. The variables are as follows
?=[(?? − ??)^2+ (?? − ??)^2+ (?? − ??)^2 + 6(???^2 + ???^2 + ???^2)]
??=[((?? − ??)^2+ (?? − ??)^2+ (?? − ??)^2 + 6(???^2 + ???^2 + ???^2))/2]^.5
??=F/A
??=(P*r)/t
???=(T*r)/J
J=(pi*t*r^3)/2
A=2*pi*r*t
So far I redefined it into variables I can use and now have this,
J=(pi*t*r^3)/t;
A=pi*2*r*t;
a=((b-c)^2 +(c-d)^2+6(e^2 +f^2 +g^2))/2)^.5
b=F/A;
c=(P*r)/t;
d=(p*r)/J;
e=(t*r)/J;
f=(t*r)/J;
g=(t*r)/J;
y=((b-c)^2 +(c-d)^2+6(e^2 +f^2 +g^2));
z=((y-2a^2)/(2a^2))^2;
I get an error with this.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by