필터 지우기
필터 지우기

How can I apply the Genetic Algorithm to this function?

조회 수: 2 (최근 30일)
youn chan choi
youn chan choi 2022년 4월 28일
답변: Nipun 2023년 12월 29일
P1 = 25;
P2 = 37.5;
P3 = 20;
W1 = [5, 10];
W2 = [5, 10];
W3 = [5, 10];
L1 = [40, 60];
L2 = [25, 40];
L3 = [15, 25];
r1 = [6, 15];
r2 = [6, 15];
r3 = [6, 15];
T2 = [0.25*pi, 0.5*pi];
T3 = [0, 0.5*pi];
Fa = 300
% Each moment arms
M1 = (P1^2+W1^2)/P1;
M2 = (P2^2+W2^2)/P2;
M3 = (P3^2+(sqrt((2*W3)^2-(P3-(L3-2*W3))^2)-W3)^2)/P3;
% Each contact Forces
PA = P3 + L2*cos(T3) + L1*cos(T2 + T3);
PB = P2 + L1*cost(T2);
F1 = (Fa*r1-F2*PB-F3*PA)/M1;
F2 = (Fa*r2-F3(P3+L2*cos(T3)))/M2;
F3 = (Fa*r3)/M3;
Favg = (F1+F2+F3)/3;
% Objective functions for the dimension optimization
d1 = F1+F2+F3;
d2 = (Favg-F1)^2+(Favg-F2)^2+(Favg-F3)^2;
Those are things that need to considering. Then I have to optimize the function [W1 W2 W3 L1 L2 L3 r1 r2 r3 T2 T3]
Then how can I apply genetic algorithm or any other optimization tools to find it.
pleese, help me
fdim = (d1 + 1000/(1 + d2))
  댓글 수: 2
Walter Roberson
Walter Roberson 2022년 4월 28일
L2 = [25, 40];
is that intended to convey the range of values for L2?
Walter Roberson
Walter Roberson 2022년 4월 28일
What is the difference between this question and https://www.mathworks.com/matlabcentral/answers/1707190-how-can-i-find-maximum-value-of-this-function?s_tid=srchtitle

댓글을 달려면 로그인하십시오.

답변 (1개)

Nipun
Nipun 2023년 12월 29일
Hi Youn,
I understand that you are trying to optimize the variables based on the system of equations presented.
On surfing the MATLAB Answers portal for related queries, I found an answered question similar to your query.
Hope this helps.
Regards,
Nipun

카테고리

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