Simple Genetic Algorithm Test

Channel:
Subscribers:
39
Published on ● Video Link: https://www.youtube.com/watch?v=sQpK7dS94U8



Duration: 1:11
29 views
1


A very basic genetic algorithm that converges on a specified target through artificial selection.

The changing bars each represent 100 fitness points, and the distance of the dots from the top represent the current generation.

Every generation, each subject's error is measured by calculating the difference of its fitness from the target. Subjects with the least amount of error are allowed to 'breed' and form the next generation, with every child being formed through the crossover of their parents' genes and mutation.

Those with the best genes survive and dominate the population, resulting in a gradual decrease in error.

Made in Python using the pygame library.







Tags:
genetic algorithm
simple
python
pygame
program
test