10/12/20151 V. Evolutionary Computing A. Genetic Algorithms.

Slides:



Advertisements
Similar presentations
A First Course in Genetic Algorithms
Advertisements

Tuesday, May 14 Genetic Algorithms Handouts: Lecture Notes Question: when should there be an additional review session?
Genetic Algorithms Representation of Candidate Solutions GAs on primarily two types of representations: –Binary-Coded –Real-Coded Binary-Coded GAs must.
Introduction to AI (part two) Tim Watson G6.71
Genetic Algorithms1 COMP305. Part II. Genetic Algorithms.
1 Lecture 8: Genetic Algorithms Contents : Miming nature The steps of the algorithm –Coosing parents –Reproduction –Mutation Deeper in GA –Stochastic Universal.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Introduction to Genetic Algorithms Yonatan Shichel.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
Chapter 14 Genetic Algorithms.
Basic concepts of Data Mining, Clustering and Genetic Algorithms Tsai-Yang Jea Department of Computer Science and Engineering SUNY at Buffalo.
Tutorial 1 Temi avanzati di Intelligenza Artificiale - Lecture 3 Prof. Vincenzo Cutello Department of Mathematics and Computer Science University of Catania.
CS 447 Advanced Topics in Artificial Intelligence Fall 2002.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
Genetic Algorithms Overview Genetic Algorithms: a gentle introduction –What are GAs –How do they work/ Why? –Critical issues Use in Data Mining –GAs.
Genetic Algorithm.
Genetic algorithms. Genetic Algorithms in a slide  Premise Evolution worked once (it produced us!), it might work again  Basics Pool of solutions Mate.
Computing & Information Sciences Kansas State University Friday, 21 Nov 2008CIS 530 / 730: Artificial Intelligence Lecture 35 of 42 Friday, 21 November.
Introduction to Genetic Algorithms and Evolutionary Computation
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
A Brief Introduction to GA Theory. Principles of adaptation in complex systems John Holland proposed a general principle for adaptation in complex systems:
Intro. ANN & Fuzzy Systems Lecture 36 GENETIC ALGORITHM (1)
Genetic algorithms Prof Kang Li
Schemata Theory Chapter 11. A.E. Eiben and J.E. Smith, Introduction to Evolutionary Computing Theory Why Bother with Theory? Might provide performance.
CS 484 – Artificial Intelligence1 Announcements Lab 3 due Tuesday, November 6 Homework 6 due Tuesday, November 6 Lab 4 due Thursday, November 8 Current.
By Prafulla S. Kota Raghavan Vangipuram
Genetic Algorithms Michael J. Watts
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Evolving Virtual Creatures & Evolving 3D Morphology and Behavior by Competition Papers by Karl Sims Presented by Sarah Waziruddin.
Genetic Algorithms Introduction Advanced. Simple Genetic Algorithms: Introduction What is it? In a Nutshell References The Pseudo Code Illustrations Applications.
1 Machine Learning: Lecture 12 Genetic Algorithms (Based on Chapter 9 of Mitchell, T., Machine Learning, 1997)
Soft Computing A Gentle introduction Richard P. Simpson.
1 Chapter 14 Genetic Algorithms. 2 Chapter 14 Contents (1) l Representation l The Algorithm l Fitness l Crossover l Mutation l Termination Criteria l.
Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Friday, 16 February 2007 William.
Evolutionary Computation Dean F. Hougen w/ contributions from Pedro Diaz-Gomez & Brent Eskridge Robotics, Evolution, Adaptation, and Learning Laboratory.
Genetic Algorithms. Evolutionary Methods Methods inspired by the process of biological evolution. Main ideas: Population of solutions Assign a score or.
Why do GAs work? Symbol alphabet : {0, 1, * } * is a wild card symbol that matches both 0 and 1 A schema is a string with fixed and variable symbols 01*1*
1 Genetic Algorithms K.Ganesh Introduction GAs and Simulated Annealing The Biology of Genetics The Logic of Genetic Programmes Demo Summary.
Chapter 9 Genetic Algorithms.  Based upon biological evolution  Generate successor hypothesis based upon repeated mutations  Acts as a randomized parallel.
Edge Assembly Crossover
Genetic Algorithms Genetic algorithms provide an approach to learning that is based loosely on simulated evolution. Hypotheses are often described by bit.
Genetic Algorithms. 2 Overview Introduction To Genetic Algorithms (GAs) GA Operators and Parameters Genetic Algorithms To Solve The Traveling Salesman.
MAE 552 Heuristic Optimization Instructor: John Eddy Lecture #12 2/20/02 Evolutionary Algorithms.
Chapter 12 FUSION OF FUZZY SYSTEM AND GENETIC ALGORITHMS Chi-Yuan Yeh.
1. Genetic Algorithms: An Overview  Objectives - Studying basic principle of GA - Understanding applications in prisoner’s dilemma & sorting network.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
1. Genetic Algorithms: An Overview 4 학습목표 GA 의 기본원리를 파악하고, Prisoner’s dilemma 와 sorting network 에의 응용 및 이론적 배경을 이해한 다.
Genetic Algorithms MITM613 (Intelligent Systems).
1 Autonomic Computer Systems Evolutionary Computation Pascal Paysan.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Why do GAs work? Symbol alphabet : {0, 1, * } * is a wild card symbol that matches both 0 and 1 A schema is a string with fixed and variable symbols 01*1*
Genetic Algorithms. Underlying Concept  Charles Darwin outlined the principle of natural selection.  Natural Selection is the process by which evolution.
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
CAP6938 Neuroevolution and Artificial Embryogeny Evolutionary Comptation Dr. Kenneth Stanley January 23, 2006.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
Introduction to Genetic Algorithms
Chapter 14 Genetic Algorithms.
Genetic Algorithm in TDR System
Genetic Algorithms.
Basics of Genetic Algorithms (MidTerm – only in RED material)
Basics of Genetic Algorithms
Searching for solutions: Genetic Algorithms
1. Genetic Algorithms: An Overview
A Gentle introduction Richard P. Simpson
Presentation transcript:

10/12/20151 V. Evolutionary Computing A. Genetic Algorithms

10/12/20152 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”)

10/12/20153 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

10/12/20154 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)

10/12/20155 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:

10/12/20156 Crossover: Biological Inspiration Occurs during meiosis, when haploid gametes are formed Randomly mixes genes from two parents Creates genetic variation in gametes (fig. from B&N Thes. Biol.)

10/12/20157 GAs: One-point Crossover parents offspring

10/12/20158 GAs: Two-point Crossover parents offspring

10/12/20159 GAs: N-point Crossover parents offspring

10/12/ 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 (fig. from B&N Thes. Biol.)

10/12/ The Red Queen Hypothesis Observation: a species probability of extinc- tion is independent of time it has existed Hypothesis: species continually adapt to each other Extinction occurs with insufficient variability for further adaptation “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

10/12/ Demonstration of GA: Finding Maximum of Fitness Landscape Run Genetic Algorithms — An Intuitive Introduction by Pascal Glauser Run Genetic Algorithms — An Intuitive Introduction by Pascal Glauser

10/12/ Demonstration of GA: Evolving to Generate a Pre-specified Shape (Phenotype) Run Genetic Algorithm Viewer

10/12/ Demonstration of GA: Eaters Seeking Food

Morphology Project by Michael “Flux” Chang Senior Independent Study project at UCLA –users.design.ucla.edu/~mflux/morphologyusers.design.ucla.edu/~mflux/morphology Researched and programmed in 10 weeks Programmed in Processing language – 10/12/201515

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: 10/12/201516

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 10/12/201517

Effects of Mutation Neural nets for control (blue) Muscles (red) Sensors (green) Structural elements (grey) Creature embedded in a fluid Run 10/12/201518

Evolution Population: 150–200 Nonviable & nonre- sponsive creatures eliminated Fitness based on speed or light-following 30% of new pop. are mutated copies of best 70% are random No crossover 10/12/201519

Gallery of Evolved Creatures Selected for speed of movement Run 10/12/201520

10/12/ Why Does the GA Work? The Schema Theorem

10/12/ Schemata A schema is a description of certain patterns of bits in a genetic string 1 1 * 0 * * a schema describes many strings * * 0 * 1 * * * * * * * a string belongs to many schemata

10/12/ 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)

10/12/ Effect of Selection

10/12/ 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 above- average schemata

10/12/ 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: **1 … 0*** 

10/12/ Selection & Crossover Together

10/12/ 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

10/12/ Schema Theorem: “Fundamental Theorem of GAs”

10/12/ 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

10/12/ Goldberg’s Analysis of Competent & Efficient GAs

10/12/ Paradox of GAs 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

10/12/ 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

10/12/ 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 Probability of improvement = p i p c n Estimate: t i ≈ 1 / (p c p i n)

10/12/ 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:

10/12/ Feasible Region ln s pcpc selection pressure crossover probability mixing boundary schema theorem boundary drift boundary cross-competition boundary successful genetic algorithm

10/12/ 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…

10/12/ Additional Bibliography 1.Goldberg, D.E. The Design of Innovation: Lessons from and for Competent Genetic Algorithms. Kluwer, Milner, R. The Encyclopedia of Evolution. Facts on File, VB