


























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
This lecture provides an introduction to evolutionary algorithms, a type of nature-inspired algorithm used in artificial intelligence. It covers the basic scheme of an evolutionary algorithm, its main components, and examples like the eight-queens problem. The lecture also discusses the evolutionary computing metaphor, the two pillars of evolution, and the different types of evolutionary algorithms.
Typology: Exercises
1 / 34
This page cannot be seen from the preview
Don't miss anything!
General Scheme of Evolutionary Algorithms Population Parents Parent Selection Survivor Selection Offspring Recombination (Crossover or Reproduction) Mutation Population Intialisation Termination Conditions
Scheme of an Evolutionary Algorithm EA Scheme in Pseudo-Code
Scheme of an Evolutionary Algorithm Two Pillars of Evolution There are two competing forces: Increasing population diversity by genetic operators: Recombination Mutation Push towards novelty .. Decreasing population diversity by selection: of Parents of Survivors Push towards quality ..
Main EA Components: Representation o Role: Provides code for candidate solutions that can be manipulated by variation operators. o Leads to two levels of existence:
Main EA Components: Evaluation [Fitness] Function Role: o Represents the task to solve and the requirements to adapt to (can be seen as “the environment”). o Enables selection (provides the basis for comparison). For example, some phenotypic traits are advantageous or desirable, e.g. big ears cool better; these traits are rewarded by more offspring that will expectedly carry the same trait. A.k.a. quality function or objective function. o Assigns a single real-valued fitness to each phenotype, which forms the basis for selection. o So, the more discrimination (different values) the better. o Typically, we talk about fitness being maximised. Some problems may be best posed as minimisation problems, but conversion is trivial
Main EA Components: Population Role: o Holds the candidate solutions of the problem as individuals (genotypes). Formally, a population is a multi-set of individuals, i.e. repetitions are possible. Population is the basic unit of evolution, i.e., the population is evolving, not the individuals. Selection operators act on the population level. Variation operators act on the individual level.
Main EA Components: Selection Mechanisms Role: o Identifies individuals:
Example: Roulette Wheel Selection fitness(A) = 3 fitness(B) = 1 fitness(C) = 2
1/6 = 17% 3/6 = 50%
2/6 = 33% Main EA Components: Selection Mechanisms In principle, any selection mechanism can be used for parent selection and survivor selection.
Main EA Components: Variation Operators Role: o To generate new candidate solutions o Usually divided into two types according to their arity (number of inputs):
Main EA Components: Mutation Role: o Causes small, random variance. o Acts on one genotype and delivers another. o The element of randomness is essential and differentiates it from other unary heuristic operators. The importance ascribed depends on representation and historical dialect: Binary GAs – background operators responsible for preserving and introducing diversity EP for FSMs / continuous variables – only search operator GP – hardly used It may guarantee the connectedness of search space and, hence, convergence proofs.
Main EA Components: Recombination Role: o Merges information from parents into offspring. o Choice of what information to merge is stochastic. o Most offspring may be worse, or the same as the parents. o Hope is that some are better by combining elements of genotypes that lead to good traits. o Principle has been used for millennia by breeders of plants and livestock.
1 1 1 1 1 1 1 0 0 0 0 0 0 0
cut cut
Main EA Components: Recombination 1 1 1 0 0 0 0 0 0 0 1 1 1 1