Evolutionary Computing
Evolutionary Computing
● Natural evolution demonstrates its power through the diverse species, each adapted to
survive in its niche.
● Computer scientists have adopted evolution as a model due to its effectiveness in adaptation
and optimization.
Natural Evolution:
Origins (1940s–1960s):
● USA:
○ Fogel, Owens, and Walsh introduced Evolutionary Programming.
○ Holland developed Genetic Algorithms.
● Germany:
○ Rechenberg and Schwefel pioneered Evolution Strategies.
Unification (1990s–Present):
○ Individuals compete for survival; the fittest (best adapted) have a higher chance of
reproducing.
○ Those best suited to the environment survive and pass on their traits.
● Role of Mutation:
● Limited time for manual problem analysis and custom algorithm design.
● Demand for robust, adaptable algorithms that work across various problems.
What Is an Evolutionary Algorithm?
● Core Idea: Inspired by natural selection (survival of the fittest).
● Process Overview:
● Why Randomness?
1. Chromosomes
2. Natural Selection
3. Crossover
4. Mutation
1. Chromosomes
🔹 What are Chromosomes?
● Composed of genes, which determine characteristics like eye color, lip shape, etc.
🔹 Example in Humans
● Adaptable traits increase survival chances and are passed to future generations.
● This principle forms the basis of Genetic Algorithms (GAs), where better solutions
evolve over time
3. Crossover
● A genetic operation that exchanges genetic material between two chromosomes.
● Occurs in nature during reproduction when parental cells combine to form a zygote.
🔹 How It Works?
● Similar to a string operation where two strings of the same length swap partial contents.
● Works with large search spaces that may have multiple local maxima.
TSP problem: To find a minimal cost tour i.e., a cycle containing each node of the
graph exactly once and total cost of the tour being minimal.
Chromosome ch = 101 011 001 110 001 will be interpreted as the tour
a→d→b→c→e
Fitness Function
● Fitness functions are objective functions that are used to evaluate a particular
solution.
● Higher fitness values may represent better solutions.
● The fitness of a → b → c → d → e is 43 + 39 + 42 + 23 + 46 = 193.
Population
● The GA starts with a group of chromosomes known as population.
● The complexity of the problem, which is reflected by the size of the search
space, is a factor to be considered while fixing the size of the population.
● The initial population is normally randomly generated.
GA Operators
● GA employ three operators, viz. selection, crossover and mutation.
● Crossover and mutation operators help to explore the entire search space by
providing reshuffle of individual traits and variations.
1. Selection.
● Chromosomes with higher fitness values have a greater chance of being selected for
the mating pool.
● Lower fit chromosomes should also have their chance of producing off spring
● Most widely used selection operators, viz.,
1. roulette wheel selection
2. tournament selection
Roulette Wheel
Ensures that the survival probability of a chromosome is proportional to its fitness
value.
Tournament
● A selection method where chromosomes compete in a mini-tournament.
🔹 How It Works?
🔹 How It Works?
🔹 Crossover Process:
● Once a gene becomes dominant, it may spread across generations and become fixed.
● Initialization:
● Purpose: Generate new candidate solutions that are close but not too similar to the
current solution.
● Example:
○ Function minimization: Modify (x, y) by adding a small random value (e.g., between -
0.1 and 0.1).
● Ensures exploration of the solution space while maintaining proximity to the current
solution.
Step 3 – Acceptance Criterion
● Implementation:
○ Generate a random value r in the range [0,1).
● Early stages:
● Later stages:
● Iteratively apply:
● Stopping conditions: