필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to write selection function in genetic algorithm(Global Optimization Toolbox: ga)

조회 수: 1 (최근 30일)
Jungeon Kim
Jungeon Kim 2019년 2월 19일
마감: Stephan 2019년 2월 19일
Hey guys, I have some problems to use customized genetic algorithm. Any help would be appreciated.
I want to use customized selection function. My code is below, but I receive error message: Index exceeds matrix dimensions.
Example function used is y=3*(1-x(1)).^2.*exp(-(x(1).^2)-(x(2)+1).^2)-10*(x(1)/5-x(1).^3-x(2).^5).*exp(-x(1).^2-x(2).^2)-1/3*exp(-(x(1)+1).^2-x(2).^2).
Please check my code and tell me what is the problem.
Thank you.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by