gianlucatruda / evocomp

Assignments for VU Masters course in Evolutionary Computing
GNU General Public License v3.0
0 stars 0 forks source link

One Self Adaptive Mutation Implemented #11

Closed alfjesus3 closed 4 years ago

alfjesus3 commented 4 years ago

NOTE: This branch is also merged into the branch for PR #15 .

Different mutation strategies may provide a substantial boost towards the population evolution. Here we explore their effects by implementing on of the two methods proposed by A.E. Eiben et.al. - http://www.few.vu.nl/~gks290/papers/SigmaAdaptationComparison.pdf

alfjesus3 commented 4 years ago

Something is not right with the global variable, because the mutation step doesn't seem to change with generations. It registers as 1 at the first step of evolution and keeps that value through all generations: image

I fixed this issue by using the recommended approach here - https://stackoverflow.com/questions/58990269/deap-make-mutation-probability-depend-on-generation-number Plus, it might look confusing but the mutation function is called per individual that's why there are several prints per generation.

gianlucatruda commented 4 years ago

@Serafim179 and @alfjesus3 I've modified the code to make it fit with how I've implemented the statistics and other convenience functions in PR #12.

The 2 major changes:

gianlucatruda commented 4 years ago

NOTE: This branch is also merged into the branch for PR #15 .