IV. Evolutionary Computing. Read Flake, ch. 20. Assumptions. Genetic Algorithms. Fitness-Biased Selection. Outline of Simplified GA

Similar documents
V. Evolutionary Computing. Read Flake, ch. 20. Assumptions. Genetic Algorithms. Fitness-Biased Selection. Outline of Simplified GA

V. Evolutionary Computing. Read Flake, ch. 20. Genetic Algorithms. Part 5A: Genetic Algorithms 4/10/17. A. Genetic Algorithms

Evolutionary Computation

Search. Search is a key component of intelligent problem solving. Get closer to the goal if time is not enough

Evolutionary Computation. DEIS-Cesena Alma Mater Studiorum Università di Bologna Cesena (Italia)

Lecture 22. Introduction to Genetic Algorithms

Evolutionary computation

Evolutionary computation

Chapter 8: Introduction to Evolutionary Computation

Evolutionary Algorithms: Introduction. Department of Cybernetics, CTU Prague.

[Read Chapter 9] [Exercises 9.1, 9.2, 9.3, 9.4]

The Role of Crossover in Genetic Algorithms to Solve Optimization of a Function Problem Falih Hassan

Development. biologically-inspired computing. lecture 16. Informatics luis rocha x x x. Syntactic Operations. biologically Inspired computing

Schema Theory. David White. Wesleyan University. November 30, 2009

Evolutionary Design I

Reproduction- passing genetic information to the next generation

UNIT V. Chapter 11 Evolution of Populations. Pre-AP Biology

Evolutionary Algorithms: Introduction. The Czech Institute of Informatics, Robotics and Cybernetics CTU Prague

Microevolution Changing Allele Frequencies

Computational intelligence methods

Fundamentals of Genetic Algorithms

List the five conditions that can disturb genetic equilibrium in a population.(10)

Genetic Algorithms and Genetic Programming Lecture 17

Population Genetics: a tutorial

1. The diagram below shows two processes (A and B) involved in sexual reproduction in plants and animals.

Evolution of Populations

Microevolution (Ch 16) Test Bank

1. Natural selection can only occur if there is variation among members of the same species. WHY?

An Analysis of Diploidy and Dominance in Genetic Algorithms

Evolution of Populations. Chapter 17

Individual learning and population evolution

Parallel Genetic Algorithms. Master s Thesis Laurens Jan Pit 30/08/95 Department of Computer Science Leiden University

COMP3411: Artificial Intelligence 7a. Evolutionary Computation

Darwin s Observations & Conclusions The Struggle for Existence

GENETICS - CLUTCH CH.22 EVOLUTIONARY GENETICS.

Theory a well supported testable explanation of phenomenon occurring in the natural world.

Parallel Genetic Algorithms

CSC 4510 Machine Learning

Genetic Algorithm. Outline

Lecture 9 Evolutionary Computation: Genetic algorithms

Crossover Techniques in GAs

NEUROEVOLUTION. Contents. Evolutionary Computation. Neuroevolution. Types of neuro-evolution algorithms

Lecture 15: Genetic Algorithms

Introduction to population genetics & evolution

Jeopardy. Evolution Q $100 Q $100 Q $100 Q $100 Q $100 Q $200 Q $200 Q $200 Q $200 Q $200 Q $300 Q $300 Q $300 Q $300 Q $300

Processes of Evolution

Probability (Phi) Proportion BBs (Pbb) 1. Proportion BBs (Pbb) Pop Size (n) Pop Size (n)

Scaling Up. So far, we have considered methods that systematically explore the full search space, possibly using principled pruning (A* etc.).

part of a chromosome allow piece of DNA allow parts of chromosomes 1

Introduction to Digital Evolution Handout Answers

Gene Pool Recombination in Genetic Algorithms

Introduction to Evolutionary Computation

Station 1. What is Evolution? What causes Evolution? A primary example of Evolution, is different bird beak sizes. What caused this to occur?

NCEA Level 2 Biology (91157) 2017 page 1 of 5 Assessment Schedule 2017 Biology: Demonstrate understanding of genetic variation and change (91157)

Chapter 17: Population Genetics and Speciation

Genetic Engineering and Creative Design

Life Cycles, Meiosis and Genetic Variability24/02/2015 2:26 PM

DETECTING THE FAULT FROM SPECTROGRAMS BY USING GENETIC ALGORITHM TECHNIQUES

NOTES Ch 17: Genes and. Variation

COMP3411: Artificial Intelligence 10a. Evolutionary Computation

CELL BIOLOGY - CLUTCH CH MEIOSIS AND SEXUAL REPRODUCTION.

5/31/2012. Speciation and macroevolution - Chapter

Problems for 3505 (2011)

Haploid & diploid recombination and their evolutionary impact

Genetic Algorithms & Modeling

I. Multiple choice. Select the best answer from the choices given and circle the appropriate letter of that answer.

REVIEW 6: EVOLUTION. 1. Define evolution: Was not the first to think of evolution, but he did figure out how it works (mostly).

Mitosis and Meiosis. 2. The distribution of chromosomes in one type of cell division is shown in the diagram below.

Major questions of evolutionary genetics. Experimental tools of evolutionary genetics. Theoretical population genetics.

Population Genetics & Evolution

1. T/F: Genetic variation leads to evolution. 2. What is genetic equilibrium? 3. What is speciation? How does it occur?

overproduction variation adaptation Natural Selection speciation adaptation Natural Selection speciation

Genetic Algorithm for Solving the Economic Load Dispatch

HBio Evolution 2 Practice test

Q Expected Coverage Achievement Merit Excellence. Punnett square completed with correct gametes and F2.

chatper 17 Multiple Choice Identify the choice that best completes the statement or answers the question.

Competitive Co-evolution

how should the GA proceed?

Sexual and Asexual Reproduction. Cell Reproduction TEST Friday, 11/13

Local Search & Optimization

Enduring Understanding: Change in the genetic makeup of a population over time is evolution Pearson Education, Inc.

Sexual Reproduction. Page by: OpenStax

Evolution. Darwin s Voyage

biologically-inspired computing lecture 18

Speciation and Patterns of Evolution

Evolutionary Robotics

Population Genetics I. Bio

Natural Selection. Population Dynamics. The Origins of Genetic Variation. The Origins of Genetic Variation. Intergenerational Mutation Rate

STUDY GUIDE SECTION 16-1 Genetic Equilibrium

Havrda and Charvat Entropy Based Genetic Algorithm for Traveling Salesman Problem

Curriculum Links. AQA GCE Biology. AS level

FINAL VERSION_ Secondary Preservice Teacher Standards -- Life Science AFK12SE/NGSS Strand Disciplinary Core Idea

4. Identify one bird that would most likely compete for food with the large tree finch. Support your answer. [1]

AP Biology Essential Knowledge Cards BIG IDEA 1

Evolution & Natural Selection

Biology Final Review Ch pg Biology is the study of

Biology 1 Spring 2010 Summative Exam

Research Question How are gametes produced?

THE PROBLEM OF locating all the optima within a fitness

Evolutionary Computation Theory. Jun He School of Computer Science University of Birmingham Web: jxh

Transcription:

IV. Evolutionary Computing A. Genetic Algorithms Read Flake, ch. 20 2014/2/26 1 2014/2/26 2 Genetic Algorithms Developed by John Holland in 60s Did not become popular until late 80s A simplified model of genetics and evolution by natural selection Most widely applied to optimization problems (maximize fitness ) 2014/2/26 3 Assumptions Existence of fitness function to quantify merit of potential solutions this fitness is what the GA will maximize A mapping from bit-strings to potential solutions best if each possible string generates a legal potential solution choice of mapping is important can use strings over other finite alphabets 2014/2/26 4 Outline of Simplified GA 1. Random initial population P(0) 2. Repeat for t = 0,, t max or until converges: a) create empty population P(t + 1) b) repeat until P(t + 1) is full: 1) select two individuals from P(t) based on fitness 2) optionally mate & replace with offspring 3) optionally mutate offspring 4) add two individuals to P(t + 1) 2014/2/26 5 Fitness-Biased Selection Want the more fit to be more likely to reproduce always selecting the best premature convergence probabilistic selection better exploration Roulette-wheel selection: probability relative fitness: f Pr{ i mates} = i n f j=1 j 2014/2/26 6 1

Crossover: Biological Inspiration GAs: One-point Crossover Occurs during meiosis, when haploid gametes are formed Randomly mixes genes from two Creates genetic variation in gametes offspring 2014/2/26 (fig. from B&N Thes. Biol.) 7 2014/2/26 8 GAs: Two-point Crossover GAs: N-point Crossover offspring offspring 2014/2/26 9 2014/2/26 10 Mutation: Biological Inspiration Chromosome mutation Gene mutation: alteration of the DNA in a gene inspiration for mutation in GAs In typical GA each bit has a low probability of changing Some GAs models rearrange bits The Red Queen Hypothesis Now, here, you see, it takes all the running you can do, to keep in the same place. Through the Looking-Glass and What Alice Found There Observation: a species probability of extinction is independent of time it has existed Hypothesis: species continually adapt to each other Extinction occurs with insufficient variability for further adaptation 2014/2/26 (fig. from B&N Thes. Biol.) 11 2014/2/26 12 2

Demonstration of GA: Finding Maximum of Fitness Landscape Run Genetic Algorithms An Intuitive Introduction by Pascal Glauser <www.glauserweb.ch/gentore.htm> Demonstration of GA: Evolving to Generate a Pre-specified Shape (Phenotype) Run Genetic Algorithm Viewer <www.rennard.org/alife/english/gavgb.html> 2014/2/26 13 2014/2/26 14 Morphology Project by Michael Flux Chang Demonstration of GA: Eaters Seeking Food http://math.hws.edu/xjava/ga/ Senior Independent Study project at UCLA users.design.ucla.edu/~mflux/morphology Researched and programmed in 10 weeks Programmed in Processing language www.processing.org 2014/2/26 15 2014/2/26 16 Genotype Phenotype Cells are grown, not specified individually Each gene specifies information such as: angle distance type of cell how many times to replicate following gene Cells connected by springs Run phenome: <users.design.ucla.edu/~mflux/morphology/gallery/sketches/phenome> 2014/2/26 17 Complete Creature Neural nets for control (blue) integrate-and-fire neurons Muscles (red) decrease spring length when fire Sensors (green) fire when exposed to light Structural elements (grey) anchor other cells together Creature embedded in a fluid Run <users.design.ucla.edu/~mflux/morphology/gallery/sketches/creature> 2014/2/26 18 3

Effects of Mutation Neural nets for control (blue) Muscles (red) Sensors (green) Structural elements (grey) Creature embedded in a fluid Run <users.design.ucla.edu/~mflux/morphology/gallery/sketches/creaturepack> Population: 150 200 Nonviable & nonresponsive creatures eliminated Fitness based on speed or light-following 30% of new pop. are mutated copies of best 70% are random No crossover Evolution 2014/2/26 19 2014/2/26 20 Gallery of Evolved Creatures Karl Sims Evolved Creatures Selected for speed of movement Run <users.design.ucla.edu/~mflux/morphology/gallery/sketches/creaturegallery> 2014/2/26 21 2014/2/26 22 Why Does the GA Work? Schemata A schema is a description of certain patterns of bits in a genetic string 1 1 0 0 0 0 * * * * * 0 The Schema Theorem... 1 1 1 0 1 0 * * 0 * 1 * 1 1 * 0 * * 1 1 0 0 1 0 2014/2/26 23... 1 1 0 0 0 1 a schema describes many strings 1 1 0 * 1 0 1 1 0 0 1 0 a string belongs to many schemata 2014/2/26 24 4

The Fitness of Schemata The schemata are the building blocks of solutions We would like to know the average fitness of all possible strings belonging to a schema We cannot, but the strings in a population that belong to a schema give an estimate of the fitness of that schema Each string in a population is giving information about all the schemata to which it belongs (implicit parallelism) 2014/2/26 25 Effect of Selection Let n = size of population Let m( S,t) = number of instances of schema S at time t String i gets picked with probability j f i f j Let f ( S) = avg fitness of instances of S at time t So expected m( S,t +1) = m( S,t) n Since f av = j n f j f ( S) f j j, m( S,t +1) = m( S,t) f ( S) 2014/2/26 26 f av Exponential Growth We have discovered: m(s, t+1) = m(s, t) f(s) / f av Suppose f(s) = f av (1 + c) Then m(s, t) = m(s, 0) (1 + c) t That is, exponential growth in aboveaverage schemata 2014/2/26 27 Effect of Crossover Let λ = length of genetic strings Let δ(s) = defining length of schema S Probability {crossover destroys S}: p d δ(s) / (λ 1) Let p c = probability of crossover Probability schema survives: δ( S) p s 1 p c λ 1 **1 0*** δ 2014/2/26 28 Selection & Crossover Together m( S,t +1) m( S,t) f ( S) f av ( ) & δ S ) ( 1 p c + ' λ 1* Effect of Mutation Let p m = probability of mutation So 1 p m = probability an allele survives Let o(s) = number of fixed positions in S The probability they all survive is (1 p m ) o(s) If p m << 1, (1 p m ) o(s) 1 o(s) p m 2014/2/26 29 2014/2/26 30 5

Schema Theorem: Fundamental Theorem of GAs m( S,t +1) m( S,t) f ( S) f av ( ) & δ S ( 1 p c ' λ 1 o S ( ) p m ) + * The Bandit Problem Two-armed bandit: random payoffs with (unknown) means m 1, m 2 and variances σ 1, σ 2 optimal strategy: allocate exponentially greater number of trials to apparently better lever k-armed bandit: similar analysis applies Analogous to allocation of population to schemata Suggests GA may allocate trials optimally 2014/2/26 31 2014/2/26 32 Paradox of GAs Goldberg s Analysis of Competent & Efficient GAs 2014/2/26 33 Individually uninteresting operators: selection, recombination, mutation Selection + mutation continual improvement Selection + recombination innovation fundamental to invention: generation vs. evaluation Fundamental intuition of GAs: the three work well together 2014/2/26 34 Race Between Selection & Innovation: Takeover Time Takeover time t * = average time for most fit to take over population Transaction selection: population replaced by s copies of top 1/s s quantifies selective pressure Estimate t * ln n / ln s Innovation Time Innovation time t i = average time to get a better individual through crossover & mutation Let p i = probability a single crossover produces a better individual Number of individuals undergoing crossover = p c n Number of probable improvements = p i p c n Estimate: t i 1 / (p c p i n) 2014/2/26 35 2014/2/26 36 6

Steady State Innovation Bad: t * < t i because once you have takeover, crossover does no good Good: t i < t * because each time a better individual is produced, the t * clock resets steady state innovation Innovation number: Iv = t* n ln n = p c p i t i 2014/2/26 37 crossover probability p c Feasible Region ln s >1 selection pressure 2014/2/26 38 drift boundary schema theorem boundary successful genetic algorithm mixing boundary cross-competition boundary ln s Other Algorithms Inspired by Genetics and Evolution Evolutionary Programming natural representation, no crossover, time-varying continuous mutation Evolutionary Strategies similar, but with a kind of recombination Genetic Programming like GA, but program trees instead of strings Classifier Systems GA + rules + bids/payments and many variants & combinations Next: Agents and Self-Organization (Re)read ch. 16 2014/2/26 39 2014/2/26 40 Additional Bibliography 1. Goldberg, D.E. The Design of Innovation: Lessons from and for Competent Genetic Algorithms. Kluwer, 2002. 2. Milner, R. The Encyclopedia of Evolution. Facts on File, 1990. IVB 2014/2/26 41 7