Wk 2-3 Evolutionary Algorithms Flashcards
What operations would be required to run a ready state, ranked roulette wheel selection, single gene mutation, single point cross over evolutionary algorithm?
- Replacement
- sorting population by fitness
- generarion of a population of random solutions
Given permutation ADEJAVBFIH would it make sense to perform swap mutation?(TSP)
Yes, because it would mantain permutation validity but will change the order mutating the solution successfully
Given permutation ADEJAVBFIH would it make sense to perform single gene mutation?
No, it would change one letter into another in the range meaning one letter would be missing ( you’d have a duplicate )
What degree of selection pressure do you have with t = 0 and popsize = 10000?
Selection pressure is low 1/1000
Tournament selection what happens if we increase t?
Increase pressure, the chances of including a top performing solution. T=1 random selection, T = popsize would be hill climbing
Initialization of EA
Initial random population is generated.
Each individual (program) represents a potential solution.
Evaluation
Each program is executed and it’s performance/fitness is evaluated through a fitness function quantifying how good a solution is.
Selection
Programs with higher fitness score are more likely to be selected:
- tournament -> (potentially - elitist)
- roulette wheel
- rank based
Variations
- crossover
- mutation
Crossover
Combines genetic material from 2 parents to create an offspring.
Mutations
Creates random changes to genetic material of individual programs.
- single gene mutations
- M gene ( multiple instance of single gene replacements 0
- swap mutation ( swap 2 random genes)
- vector mutation ( add a perturbation to the candidate solution ( vector ))
Replacement
Offspring generated through variations along with some of the parents, replace the worst fitting individuals in the population.
Replacement strategies (choose)
- worst individuals
- random individuals
- combination strategy ( a certain percentage of the worst ones are replaced )
Replacement mechanisms (replace):
- full replacement: all selected individuals replaced at the same time. Complete change of the population.
- overlapping: offspring gradually replace the initial population over multiple iterations.
Termination:
- maximum number of iterations or generations
- no improvements
- certain level of fitness