One Full Generation: Select, Cross, Mutate, Re-Score
This lesson is part of the course
In this lesson
You run one complete GA generation for four 5-bit chromosomes: roulette selection with MATCH, crossover with a partner slot, mutation with BITXOR masks, and the best and average fitness of the new generation.
Buy the course once for $9.99 to unlock every lesson and lab, the final exam and the certificate – lifetime access, no subscription.
Lessons in this course
- Encoding Solutions as Bit Strings: BIN2DEC & SUMPRODUCT Locked
- Fitness with a Penalty: Scoring Over-Weight Backpacks Locked
- Roulette-Wheel Selection: Cumulative Shares & MATCH Locked
- Tournament Selection: Random Entrants, Fitter One Wins Locked
- Single-Point Crossover: LEFT, RIGHT & a Gene-Wise IF Locked
- Bit-Flip Mutation: Flip a Gene When u < pm Locked
- One Full Generation: Select, Cross, Mutate, Re-Score Locked
- Convergence over Generations vs the Brute-Force Optimum Locked