Unexpected Change in Population Diversity of Genetic Algorithm
조회 수: 2 (최근 30일)
이전 댓글 표시
We have been having unexpected results in our optimization processes, using the genetic algorithm. We have found that the diversity of the population seems to increase back to the original population diversity at the beginning of the optimization process.
This appears to happen in mostly periodic steps in the generation every n generations. What seems odd is that the population immediately then collapses back to the diversity it had before the diversification.
We have had more than one script, by different users, produce the same result. We understand that the GA should change the diversity overtime, but it does not seem that the diversity should ‘explode’ for a single iteration, followed by an ‘implosion’ the next iteration.
This is demonstrated in the figure below showing the generation at a specific generation.
We are trying to optimize three integer variables with only upper and lower bounds on the variables, there is no constraints. The optimization is finding the a near optimal solution, but we want to understand why this population is diversifying periodically as a function of generation.
The same behavior is seen for different max generation counts also. Yet the period seems to change given the max generation count.
We observe the same behavior regardless of our fitness function, as can be seen below.
We have tried to change the crossover, scale and other settings, we can minimize this, but it still appears to happen. Again, it’s not so much that the population is becoming diverse, it’s the change of the magnitude of diversity over time that is our concern.
Thank you!
댓글 수: 0
답변 (1개)
Rakesh Kumar
2020년 7월 29일
Hi David,
The behavior is strange. It would be great to have a reproduction script if you can share since this behavior is on any function.
Please note that if you are specifying integer constraints to GA many options including crossover, mutation, etc. cannot be changed. See this note:
Can you reproduce this behavior with different bounds and dimension?
Thanks,
Rakesh
댓글 수: 4
Paul Kerr-Delworth
2020년 8월 3일
Hi David,
I agree with Rakesh - this behavior is strange.
If you could attach a reproduction script, I can run it here and take a look for you.
Cheers,
Paul
참고 항목
카테고리
Help Center 및 File Exchange에서 Genetic Algorithm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!