필터 지우기
필터 지우기

what is wrong with my genetic algorithm?

조회 수: 2 (최근 30일)
Maher
Maher 2018년 5월 8일
댓글: Matt J 2018년 5월 8일
Why am I am getting not enough input arguments for this simple genetic problem? please, see attachment for code and optimization app.

답변 (1개)

Matt J
Matt J 2018년 5월 8일
편집: Matt J 2018년 5월 8일
GA has no way of knowing that your fitness function expects 2 arguments, F and x, and no way of dealing with that if you just pass @fit alone. Presumably your fitness function should really be @(x) fit(F,x).
  댓글 수: 2
Maher
Maher 2018년 5월 8일
Thank you very much. It worked!
Matt J
Matt J 2018년 5월 8일
You're welcome, but please Accept-click the answer to certify that. I also urge you to do the same for other contributors who have successfully answered your previous questions.

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

카테고리

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