Genetic Algorithms (implementation and Theoretical) Flashcards
What are the methods of selection?
Tournament
Fitness proportionate
Roulette-wheel
Elitist selection
How does Fitness proportionate method of selection work?
Calculate Total fitness
Assign Selection Probability (divide fitness score of each individual by the total fitness, represents the proportion of the roulette wheel each individual occupies
High level code for GA
create initial population
calculate fitness of all individuals
while (end condition not met){
select fitter individuals for reproduction (ones with higher fitness)
recombine individuals
mutate individuals
evaluate fitness of all individuals
generate new population
}
return best individual
How does tournament selection work?
select 4 random individuals. The fittest = Parent 1, repeat for parent 2
How do you recombine the individuals?
Select crossover point randomly between 0-size-1
How do they mutate?
To each individual apply mutation operator
What are the GA Parameters
Populations Size
Selection Type
Crossover type/rate
Mutation type/rate
Stopping criteria (Number of generations, Number of runs, Convergence)
Which part of the GA are low level heuristics?
Informed search