MATLAB Result Figure for genetic algorithm
古いコメントを表示
Hi all,
I have a question about the plot that MATLAB creates runnig genetic algorithm. The vertical axis shows the "number of individuals" and the horizontal axis shows "score". In Mathwork website, I found the definition for these as below:
- number of individuals: number of population in each generation
- score: fitness function or objective function value
My questions are:
- Is the the diagram shows the values correspond to all of the iterations from start to end, or it just shows the values for the last iteration?
- Based on my understanding the "population size" should remain the same for all the generations, if this is correct why it keeps changing in this diagram?
Thank you so much for your time and consideration.
16 件のコメント
Walter Roberson
2019 年 10 月 17 日
Which of the plot options are you using? https://www.mathworks.com/help/gads/genetic-algorithm-options.html#f14474
Maryam
2019 年 10 月 17 日
Walter Roberson
2019 年 10 月 17 日
The lower one is a histogram with scores on the x and number of entries in the population with that score vertically. It refers to the current generation.
Maryam
2019 年 10 月 17 日
Walter Roberson
2019 年 10 月 17 日
The number of individuals in the population whose score falls within a range is on the y axes.
At the moment I do not know if score is objective function value or that value modified to penalize constraint violations.
Maryam
2019 年 10 月 17 日
Maryam
2019 年 10 月 17 日
Walter Roberson
2019 年 10 月 17 日
ga() stops processing under a number of different circumstances. It would not be typical that the entire population has converged to the same solution. It would be more typical that the best score had not decreased for a number of iterations.
Maryam
2019 年 10 月 17 日
Walter Roberson
2019 年 10 月 17 日
Yes, I agree, about 35 of the population is in the first score range, and 3 or 4 are in the second score range.
Maryam
2019 年 10 月 17 日
Maryam
2019 年 10 月 19 日
Walter Roberson
2019 年 10 月 19 日
I am not sure at the moment. If the first bin is 37 then it looks like the total is 50.
Maryam
2019 年 10 月 19 日
Walter Roberson
2019 年 10 月 19 日
I think that one does but I cannot be sure at the moment that one outlier did not get dropped. I would need to dig into the code.
Maryam
2019 年 10 月 19 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Genetic Algorithm についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
