Why does it show on genetic algorithm plotting 'gaplotgenealogy not supported for this algorithm'

조회 수: 3 (최근 30일)
I used @gaplotgenealogy to see if I could find where each new Children comes from (Elite, Crossover, Mutation). But it shows on plotting 'gaplotgenealogy not supported for this algorithm'? I simply coded as opts = optimoptions('ga','PlotFcn',{@gaplotscores,@gaplotgenealogy,@gaplotstopping} Anyone has an idea why it shows words like that?

채택된 답변

Alan Weiss
Alan Weiss 2017년 9월 18일
If you enter
help gaplotgenealogy
you see at the end of the help this statement:
NOTE: This plot is only available after the GA has stopped and can not
be used for nonlinear constrained problems.
So, do you have any nonlinear constraints?
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 1
Di Wu
Di Wu 2017년 9월 27일
Yea. I think the nonlinear constraints should be the problem. I guess what I can do is to just not use gaplotgenealogy in this case.

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

추가 답변 (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