how to use genetic algorithm to solve these problems Using Genetic algorithm Toolbox ?

조회 수: 3 (최근 30일)
I'm all new to using genetic algorithm in MATLAB
i want to know how i could solve these problems using MATLAB
1.png
2.png
Thank You in advance

답변 (2개)

Matt J
Matt J 2018년 12월 28일
This page talks about how to set specific options programmatically in the ga command:
This page talks about all the available settings:
  댓글 수: 1
Maryam Mapar
Maryam Mapar 2018년 12월 29일
thank you for your time but i want to ask if you can solve one of this equation using genetic algorithm so i will be able to use it using options and toolbox.

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


Maryam Mapar
Maryam Mapar 2018년 12월 30일
No one could at least solve one of these problems to help me use GA ?
  댓글 수: 2
Stephan
Stephan 2018년 12월 30일
편집: Stephan 2018년 12월 30일
The best way to learn how to use ga, is by trying to solve problems with ga... Try it out, make some experience and come back to here, when you have trouble by trying on your own. Problably no one here will do your work for you. But everybody here is helping with specific problems, that you have if you make an effort.
Maryam Mapar
Maryam Mapar 2018년 12월 31일
Fair enough
i did write this code :
d = length(xx);
sum = 0;
for ii = 1:d
xi = xx(ii);
sum = sum + xi*sin(sqrt(abs(xi)));
end
y = sum;
end
Now how i could use Optimtool for using GA to solve my problem ?
i dont know how to determine the variables which is there , for example Nbit and Mutation rate
Thank you

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

카테고리

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