Evolutionary Computation

Slides:



Advertisements
Similar presentations
Biologically Inspired AI (mostly GAs). Some Examples of Biologically Inspired Computation Neural networks Evolutionary computation (e.g., genetic algorithms)
Advertisements

1 Lecture 8: Genetic Algorithms Contents : Miming nature The steps of the algorithm –Coosing parents –Reproduction –Mutation Deeper in GA –Stochastic Universal.
Introduction to Genetic Algorithms Yonatan Shichel.
Evolutionary Algorithms Simon M. Lucas. The basic idea Initialise a random population of individuals repeat { evaluate select vary (e.g. mutate or crossover)
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
7/2/2015Intelligent Systems and Soft Computing1 Lecture 9 Evolutionary Computation: Genetic algorithms Introduction, or can evolution be intelligent? Introduction,
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Genetic Programming.
Genetic Algorithm.
Evolutionary Intelligence
Slides are based on Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems.
Introduction to Genetic Algorithms and Evolutionary Computation
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Lecture 8: 24/5/1435 Genetic Algorithms Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
What is Genetic Programming? Genetic programming is a model of programming which uses the ideas (and some of the terminology) of biological evolution to.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Genetic Algorithms Siddhartha K. Shakya School of Computing. The Robert Gordon University Aberdeen, UK
GENETIC ALGORITHM A biologically inspired model of intelligence and the principles of biological evolution are applied to find solutions to difficult problems.
© Negnevitsky, Pearson Education, Lecture 9 Evolutionary Computation: Genetic algorithms Introduction, or can evolution be intelligent? Introduction,
Genetic Algorithms. Evolutionary Methods Methods inspired by the process of biological evolution. Main ideas: Population of solutions Assign a score or.
2005MEE Software Engineering Lecture 11 – Optimisation Techniques.
 Negnevitsky, Pearson Education, Lecture 9 Evolutionary Computation: Genetic algorithms n Introduction, or can evolution be intelligent? n Simulation.
Introduction to Genetic Algorithms. Genetic Algorithms We’ve covered enough material that we can write programs that use genetic algorithms! –More advanced.
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
Genetic Algorithms MITM613 (Intelligent Systems).
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
An application of the genetic programming technique to strategy development Presented By PREMKUMAR.B M.Tech(CSE) PONDICHERRY UNIVERSITY.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
 Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems n Introduction.
Genetic Algorithm (Knapsack Problem)
Genetic Algorithms.
Introduction to Genetic Algorithms
Chapter 14 Genetic Algorithms.
Genetic Algorithm in TDR System
Genetic Algorithms.
Evolutionary Algorithms Jim Whitehead
Evolution.
USING MICROBIAL GENETIC ALGORITHM TO SOLVE CARD SPLITTING PROBLEM.
What is Evolution??? Learning Target: I can explain Natural Selection and the 4 conditions that are required for Natural Selection to take place.
Artificial Intelligence Methods (AIM)
Evolution strategies and genetic programming
Introduction to Genetic Algorithm (GA)
Artificial Intelligence 16. Genetic Algorithms
Multy- Objective Differential Evolution (MODE)
Intelligent Systems and Soft Computing
Advanced Artificial Intelligence Evolutionary Search Algorithm
CS621: Artificial Intelligence
Case Study: Genetic Algorithms
Basics of Genetic Algorithms (MidTerm – only in RED material)
Artificial Intelligence Chapter 4. Machine Evolution
GENETIC ALGORITHM A biologically inspired model of intelligence and the principles of biological evolution are applied to find solutions to difficult.
GENETIC ALGORITHMS & MACHINE LEARNING
Introduction to Artificial Intelligence Lecture 11: Machine Evolution
Basics of Genetic Algorithms
Artificial Intelligence Chapter 4. Machine Evolution
EE368 Soft Computing Genetic Algorithms.
Boltzmann Machine (BM) (§6.4)
Searching for solutions: Genetic Algorithms
Zebra Mussels (An Invasive Species)
Genetic Algorithm Soft Computing: use of inexact t solution to compute hard task problems. Soft computing tolerant of imprecision, uncertainty, partial.
Zebra Mussels (An Invasive Species)
Beyond Classical Search
Population Based Metaheuristics
Presentation transcript:

Evolutionary Computation Genetic Algorithms

Outline Evolution Genetic Algorithms Selection, inheritance, variation (mutation) Natural Selection Artificial Selection Some examples – successes and problems. Genetic Algorithms Selection Mutation Crossover Fitness evaluation

Evolution – Darwin and Mendel

Survival of the fittest “white” moths are difficult to see against some trees. Which moth survives? Then there was the industrial revolution – and tree turned black with “soot”. Which moth survives now?

Generate and Test Approach A “solution” is generated. It is tested on a problem instance Each solution is assigned a score (real value). This process is repeated until time expires or a solution is found. Includes much of machine learning. We try to improve the quality of solutions generated by using feedback in this loop. Alternative but equivalent view is we are sampling a space. test Generate test Test 9/22/2018 Automatically Designing Selection Heuristics

Generate and Test Examples GECCO 1st workshop on Evolving Generic Algorithms. Generate and Test Examples Manufacture e.g. cars Evolution “survival of the fittest” “The best way to have a good idea is to have lots of ideas” (Linus Pauling). Computer code is also generate and tested. http://neurophilosophy.wordpress.com/2006/08/09/the-role-of-hox-genes-in-development/ 9/22/2018 Automatically Designing Selection Heuristics

Automatically Designing Selection Heuristics Fit For Purpose Evolution “designs/generates” organisms for a particular environment. Similarly we should design metaheuristics for particular problem class. “we propose a new crossover operator…” “what is it for…” 9/22/2018 Automatically Designing Selection Heuristics

Evolution Evolution has 3 components. Selection “survival of the fittest”. Inheritance (i.e. your genes are inherited from your parents, and you look similar to your parents). Variation or mutation, random changes to your DNA

Examples of Evolution 1 E. coli reproduce copy DNA in 40 minutes but can give birth every 20 minutes – how ???. Hearing in 3D – human ears – how ??? The eye – design around 40 different ways. Mankind – does not mean “man”-kind but “manipulator” kind

Humans What makes humans unique compared to other animals? What make us so much more intelligent? Hands – compare with the apes Brains – large & expensive We walk “upright” – is this important Our diet – more complex than other animals Language (spoken) – instant communication Language (written) – communication over a period of time. Mirror Test and self awareness. What other animals can pass the mirror test???

Mirror Test The mirror test is a measure of self-awareness, as animals either possess or lack the ability to recognize themselves in a mirror. Animals that have passed the mirror test include: all of the great apes (bonobos, chimpanzees, orangutans, humans, and gorillas), rhesus macaques, bottlenose dolphins, orcas, elephants, and European Magpies. Robots??? Young babies. Mirror neurons. http://www.ted.com/talks/vs_ramachandran_the_neurons_that_shaped_civilization.html

Examples of Evolution 2 Giraffe laryngeal nerve No wheels in nature? Bulldogs – big head – one problem ??? Whales taste like beef have bones from back legs Wave tail vertically.

Artificial Selection – Selective Breeding Instead of nature deciding which individuals in a species lives or dies, we (humans) can decide. Roses selected for beauty (appearance not smell) Cows selected for milk production Horses (race horses, carthorses) Sheep selected for wool production Dogs selected for ???.

Evolutionary Computation How can we use the ideas of evolution to solve problems on a computer? Genetic Algorithms evolve a population of bit strings (bits can represent on/off choices or numbers) Genetic Programming evolves a population of programs used for e.g. controlling an agent in a game, a robot in a maze….

Example Problem The knapsack problem or rucksack problem is a problem in combinatorial optimization Given a set of items, each with a weight and a value, determine the number of each item to include in a collection so that the total weight is less than or equal to a given limit and the total value is as large as possible. It derives its name from the problem faced by someone who is constrained by a fixed-size knapsack and must fill it with the most useful items. maximize Subject to the constraint

Bit String Representation Items 1, 2, …i,…,n Item i has weight wi and value vi What is the time complexity to try all combinations? We can use a binary representation e.g. (01…) mean do not include item1, do include item 2 0=do not include, 1= include. A genetic algorithm will sample a subset of solutions and hopefully find a good enough solution. There is no guarantee that the optimal solution will be found.

Fitness function 10110 has a value 4+0+1+10+0=15$ 2 3 4 5 VALUE $ 10 WEIGHT KG 12 10110 has a value 4+0+1+10+0=15$ And has weight 12+0+1+4+0= 17kg But the bag has capacity 15kg – so this solution is not feasible/is invalid (give value -1) Fitness(10110) = -1 10100 has a value 4+0+1+0+0=5$ This is okay (<15kg) so we can give it a fitness of 5$ Fitness(10100)=5$

How to solve it? Enumeration – list all possibilities (how many are there?), and try each one. What is the problem with this approach? A second way is to randomly generate bit-strings and find the value of each one. What are the problems with this approach. Neither of these methods are very good.

Basic Outline/Algorithm Repeat n times Select pair of bit-strings from population Perform crossover to produce 2 children. Mutate them Calculate their fitness (also called utility) and return them to population.

Selection Two examples Rank selection Fitness Proportional selection 1 2 3 4 Bit string 0011 1010 1110 0001 fitness 5 10 20 Two examples Rank selection Individuals are selected in proportion to their rank in the sorted population Fitness Proportional selection Individuals are selected in proportion to their fitness in the sorted population. If we monotonically scale the fitness, there is not difference to rank, but there is a change to fitness.

Crossover Two crossover One point crossover 1111 and 0000 gives ??? Two point crossover

Mutation Two examples One point mutation Uniform mutation only flip one bit e.g. 0010 -> 1010 What else is possible ??? Uniform mutation Flip all bits with e.g. 0.25 probability e.g. 0000 -> 1110.

Fitness We could give a bit string the fitness of the direct value it has E.g. value = 9 therefore fitness = 9 Or we could scale it (most books do not mention this) Ax+B where x is the fitness Or any monotonic function Or possibly a non-monotonic function.

No Right or Wrong way There is not right way to do this. For selection/ crossover/ mutation / fitness I have told you a choice of two for each – that is 8 possible ways. You can try to find your own ways. This is a very large area of research. Goldberg: 8th most referenced book in computer science last century. Russell and Norvig is 2nd most referenced computer science book this century. Youku.com

Evolutionary Video A video about walking robots (animation) http://v.youku.com/v_show/id_XMTcyNjE2MzMy.html (time = 50:00)