Evolution Genetic Algorithms Lamarckian Evolution l Lamarckian Theory

  • Slides: 22
Download presentation
Evolution & Genetic Algorithms

Evolution & Genetic Algorithms

Lamarckian Evolution l Lamarckian Theory l l l Based on the concept of use

Lamarckian Evolution l Lamarckian Theory l l l Based on the concept of use and disuse Over a few generations, a given structure or organ will increase in size if the creature and its parents use that structure often. On the other hand, if a structure and organ is in disuse it will get smaller and even disappear in subsequent generations.

An Example of Lamarckian Evolution l l A Giraffe has a long neck because

An Example of Lamarckian Evolution l l A Giraffe has a long neck because its ancestors used its neck to reach food. Based on Lamarck’s theory, the Giraffe of the future will have an even longer neck than its contemporary relatives.

Darwinian Evolution… l l All animals are constantly changing and evolving The primary goal

Darwinian Evolution… l l All animals are constantly changing and evolving The primary goal of an animal is to mate and have as many offspring as possible Concept of natural/sexual selection Natural selection, development, and evolution requires time

Darwin’s Evolution… l A creatures survivability is not the result of divine intervention or

Darwin’s Evolution… l A creatures survivability is not the result of divine intervention or due to a desire to seek perfection. l It is through the process of natural selection that creatures evolve into what they are now.

Biological Evolution… l l l Evolution refers to the cumulative changes that occur in

Biological Evolution… l l l Evolution refers to the cumulative changes that occur in a population Biological evolution is not a random process. It is a constantly occurring phenomenon Genes are the key components in the process of evolution. Any physical characteristics acquired during the organisms life are not transferred to their

Biological Evolution And Genetic Algorithms l l Biological Evolution is the inspiration for genetic

Biological Evolution And Genetic Algorithms l l Biological Evolution is the inspiration for genetic algorithms Most of the principles associated with biological evolution also apply to genetic algorithms l Unlike evolution, genetic algorithms will stop after a finite number of gnerations

What Are Genetic Algorithms l l l They are essentially search algorithms Given a

What Are Genetic Algorithms l l l They are essentially search algorithms Given a large search space, GA’s will evolve to the correct solution to a problem over a series of generations. GA’s do not guarantee an optimal solution to a problem ie. Traveling salesman problem

What are Genetic Algorithms continued… l Genetic Algorithms are useful at finding “acceptably good

What are Genetic Algorithms continued… l Genetic Algorithms are useful at finding “acceptably good solutions… acceptably quickly” l Nevertheless, if an optimized strategy already exists for a given problem, it is best to use it rather than a GA.

Components of a Genetic Algorithm l The population of potential solutions l A fitness

Components of a Genetic Algorithm l The population of potential solutions l A fitness function l A process for selecting mating pairs and introducing their offspring into the original population

Coding a Genetic Aglorithm l l First consider the parameters of the problem Use

Coding a Genetic Aglorithm l l First consider the parameters of the problem Use binary numbers to represent each parameter l l Other’s have suggested using a user defined language to encode the problem Once the parameters are established, generate a random initial population

Fitness Fuction l l It is analogous to the environment an animal lives in

Fitness Fuction l l It is analogous to the environment an animal lives in Gives a numerical description of how fit the solution encoded in a particular chromosome is. Penalty Functions Approximate Function evaluation

Issues With Fitness Functions l Premature convergence l l When a super fit (although

Issues With Fitness Functions l Premature convergence l l When a super fit (although not optimal) chromosome dominates the population This chromosome usually represents a local maximum Makes it impossible to use fitness alone as an indicator of reproductive potential Slow finishing l When the populations have a high average fitness and don’t have the extra oomph to push further and find a maximum

Selecting a Mate: l Parents Selection Techniques: l Explicit fitness remapping l l Fitness

Selecting a Mate: l Parents Selection Techniques: l Explicit fitness remapping l l Fitness scaling Fitness windowing Fitness ranking Implicit fitness remapping l Use tournaments to choose parents

Crossover Reproduction l 1 -point crossover: l Two mating chromosomes are cut at one

Crossover Reproduction l 1 -point crossover: l Two mating chromosomes are cut at one point and the cuts are exchanged between the two parents.

Cross Over Reproduction… l 2 -point crossover: l l l Instead of a linear

Cross Over Reproduction… l 2 -point crossover: l l l Instead of a linear string, think of the chromosome as a loop formed by joining both ends. To mate, just cut a section in both parent loops and exchange missing sections Is preferred over 1 -point crossover because it allows one to search the problem space more thoroughly

Crossover Reproduction… l Uniform crossover: l l A randomly generated cross over mask is

Crossover Reproduction… l Uniform crossover: l l A randomly generated cross over mask is created for each pair of parents. Based on the mask, the parents copy their genes to create new offspring. l l Where there is a 1, parent 1 copies its gene Where there is a 0, parent 2 copies its gene

Introducing Offspring Into the Population l In most genetic algorithm examples, the whole population

Introducing Offspring Into the Population l In most genetic algorithm examples, the whole population is replaced with the offspring l l The generation gap is 1 In the insect world, parents die soon after the eggs are laid

Introducing Offspring Into the Population l Steady-state l l l Inspired by mammals and

Introducing Offspring Into the Population l Steady-state l l l Inspired by mammals and other long lived creatures. The offspring must compete with themselves and with their parents The steady-state technique require that an unlucky group of parents must die off to make room for the offspring

Steady-State case… l Possible methods for choosing which parents will meet their demise: l

Steady-State case… l Possible methods for choosing which parents will meet their demise: l l l Select parents according to fitness, and select random offspring to replace them. Select parents at random, and use fitness to choose offspring. Select both according to their fitness

Applications for Genetic Algorithms l Various medical applications, such as image segmentation and modeling.

Applications for Genetic Algorithms l Various medical applications, such as image segmentation and modeling.

Robotic Applications… l l Genetic Algorithms can be used to teach robots how to

Robotic Applications… l l Genetic Algorithms can be used to teach robots how to move. Brandeis University made a robot mother who created offspring using genetic algorithms l One of her offspring is shown in the picture