L ECTURE 3 Notes are modified from EvoNet Flying Circus slides. Found at: www2.cs.uh.edu/~ceick/ai/EC1.ppt.

Slides:



Advertisements
Similar presentations
Population-based metaheuristics Nature-inspired Initialize a population A new population of solutions is generated Integrate the new population into the.
Advertisements

Biologically Inspired Computing: Operators for Evolutionary Algorithms
CS6800 Advanced Theory of Computation
Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm
CSM6120 Introduction to Intelligent Systems Evolutionary and Genetic Algorithms.
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.
EvoNet Flying Circus Introduction to Evolutionary Computation Brought to you by (insert your name) The EvoNet Training Committee The EvoNet Flying Circus.
Evolutionary Computing A Practical Introduction Presented by Ben Paechter Napier University with thanks to the EvoNet Training Committee and its “Flying.
Non-Linear Problems General approach. Non-linear Optimization Many objective functions, tend to be non-linear. Design problems for which the objective.
1 Lecture 8: Genetic Algorithms Contents : Miming nature The steps of the algorithm –Coosing parents –Reproduction –Mutation Deeper in GA –Stochastic Universal.
EvoNet Flying Circus Introduction to Evolutionary Computation Brought to you by (insert your name) The EvoNet Training Committee The EvoNet Flying Circus.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
How to Build an Evolutionary Algorithm
Genetic Algorithms Nehaya Tayseer 1.Introduction What is a Genetic algorithm? A search technique used in computer science to find approximate solutions.
How to Build an Evolutionary Algorithm
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
Tutorial 4 (Lecture 12) Remainder from lecture 10: The implicit fitness sharing method Exercises – any solutions? Questions?
Genetic Algorithms Overview Genetic Algorithms: a gentle introduction –What are GAs –How do they work/ Why? –Critical issues Use in Data Mining –GAs.
Prepared by Barış GÖKÇE 1.  Search Methods  Evolutionary Algorithms (EA)  Characteristics of EAs  Genetic Programming (GP)  Evolutionary Programming.
Genetic Algorithm.
Genetic Algorithms and Ant Colony Optimisation
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
1 Local search and optimization Local search= use single current state and move to neighboring states. Advantages: –Use very little memory –Find often.
Genetic algorithms Prof Kang Li
Lecture 8: 24/5/1435 Genetic Algorithms Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Artificial Intelligence Lecture No. 31 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
What is Genetic Programming? Genetic programming is a model of programming which uses the ideas (and some of the terminology) of biological evolution to.
Genetic Algorithms Genetic algorithms imitate a natural optimization process: natural selection in evolution. Developed by John Holland at the University.
Introduction to GAs: Genetic Algorithms How to apply GAs to SNA? Thank you for all pictures and information referred.
Introduction to Evolutionary Algorithms Session 4 Jim Smith University of the West of England, UK May/June 2012.
Crossovers and Mutation Richard P. Simpson. Genotype vs. Phenotype The genotype of a chromosome is just the basic data structure (it bits in a binary.
2005MEE Software Engineering Lecture 11 – Optimisation Techniques.
1 Genetic Algorithms and Ant Colony Optimisation.
G ENETIC A LGORITHM. S IMULATED E VOLUTION We need the following Representation of an individual Fitness Function Reproduction Method Selection Criteria.
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.
Genetic Algorithms Przemyslaw Pawluk CSE 6111 Advanced Algorithm Design and Analysis
Introduction to Genetic Algorithms. Genetic Algorithms We’ve covered enough material that we can write programs that use genetic algorithms! –More advanced.
Genetic Algorithms CSCI-2300 Introduction to Algorithms
Edge Assembly Crossover
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
Genetic Algorithms. 2 Overview Introduction To Genetic Algorithms (GAs) GA Operators and Parameters Genetic Algorithms To Solve The Traveling Salesman.
Chapter 12 FUSION OF FUZZY SYSTEM AND GENETIC ALGORITHMS Chi-Yuan Yeh.
Genetic Algorithms. The Basic Genetic Algorithm 1.[Start] Generate random population of n chromosomes (suitable solutions for the problem) 2.[Fitness]
GENETIC ALGORITHM Basic Algorithm begin set time t = 0;
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
Genetic Algorithms MITM613 (Intelligent Systems).
1 Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations Genetic Algorithm (GA)
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
Reusable Design of Evolutionary Algorithms. Parallel Cooperative Optimization Research Group Laboratoire d’Informatique Fondamentale de Lille.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Overview Last two weeks we looked at evolutionary algorithms.
Genetic Algorithms. Solution Search in Problem Space.
EVOLUTIONARY SYSTEMS AND GENETIC ALGORITHMS NAME: AKSHITKUMAR PATEL STUDENT ID: GRAD POSITION PAPER.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
Genetic Algorithm(GA)
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
Introduction to Genetic Algorithms
USING MICROBIAL GENETIC ALGORITHM TO SOLVE CARD SPLITTING PROBLEM.
CSC 380: Design and Analysis of Algorithms
Introduction to Operators
Genetic Algorithms Chapter 3.
EE368 Soft Computing Genetic Algorithms.
Biologically Inspired Computing: Operators for Evolutionary Algorithms
Genetic Algorithm Soft Computing: use of inexact t solution to compute hard task problems. Soft computing tolerant of imprecision, uncertainty, partial.
Population Based Metaheuristics
CSC 380: Design and Analysis of Algorithms
Presentation transcript:

L ECTURE 3 Notes are modified from EvoNet Flying Circus slides. Found at: www2.cs.uh.edu/~ceick/ai/EC1.ppt

O UTCOMES At the end you should be able to discuss: Basics of evolutionary computation Representation At least two selection approaches What crossover is. What is the link between genetic programming and genetic algorithms.

T HE S TEPS In order to build an evolutionary algorithm there are a number of steps that we have to perform: 1. Design a representation 2. Decide how to initialize a population 3. Design a way of mapping a genotype to a phenotype 4. Design a way of evaluating an individual

F URTHER S TEPS 5. Design suitable mutation operator(s) 6. Design suitable recombination operator(s) 7. Decide how to manage our population 8. Decide how to select individuals to be parents 9. Decide how to select individuals to be replaced 10. Decide when to stop the algorithm

D ESIGNING A R EPRESENTATION Come up with a method of representing an individual solution. M ust be relevant to the problem that we are solving. Bear in mind how the solutions will be evaluated and what the genetic operators might be.

E XAMPLE : D ISCRETE R EPRESENTATION (B INARY ALPHABET ) CHROMOSOME GENE  Representation of an individual can be using discrete values (binary, integer, etc.).  Following is an example of binary representation.

E XAMPLE : D ISCRETE R EPRESENTATION (B INARY ALPHABET ) 8 bits Genotype Phenotype: Integer Real Number Schedule... Anything?

E XAMPLE : D ISCRETE R EPRESENTATION (B INARY ALPHABET ) Phenotype could be integer numbers Genotype: 1* * * * * * * *2 0 = = 163 = 163 Phenotype:

E XAMPLE : D ISCRETE R EPRESENTATION (B INARY ALPHABET ) Phenotype could be a Schedule e.g. 8 jobs, 2 time steps Genotype: = Job Time Step Phenotype

E XAMPLE : R EAL - VALUED REPRESENTATION A very natural encoding if the solution we are looking for is a list of real-valued numbers, then encode it as a list of real-valued numbers! Lots of applications, e.g. parameter optimisation Personal example: Work on evolutionary algorithms and evoked potentials.

E XAMPLE : O RDER BASED REPRESENTATION Individuals are represented as permutations Used for ordering/sequencing problems Famous example: Travelling Salesman Problem where every city gets a assigned a unique number from 1 to n. A solution could be (5, 4, 2, 1, 3). Needs special operators to make sure the individuals stay valid permutations.

Example: Tree-based representation Individuals in the population are trees. Approach leads to Genetic Programming These functions and terminals can be anything: Functions: sine, cosine, add, sub, and, If-Then-Else, Turn... Terminals: X, Y, 0.456, true, false, , Sensor0… Example: calculating the area of a circle: *  * rr

E VALUATING AN I NDIVIDUAL This is by far the most costly step for real applications do not re-evaluate unmodified individuals It might be a subroutine, a black-box simulator, or any external process ( e.g. robot experiment)

M UTATION O PERATORS We might have one or more mutation operators for our representation. Some important points are: At least one mutation operator should allow every part of the search space/pattern space to be reached The size of mutation is important and should be controllable. Mutation should produce valid chromosomes (i.e. valid possible solutions)

E XAMPLE : M UTATION FOR D ISCRETE R EPRESENTATION before after Mutation usually happens with a certain probability for each gene mutated gene

E XAMPLE : M UTATION FOR REAL VALUED REPRESENTATION Adding some random noise Often, a Gaussian/normal distribution N(0,  ) is used, where 0 is the mean value  is the standard deviation and x’ i = x i + N(0,  i ) for each parameter

E XAMPLE : M UTATION FOR ORDER BASED REPRESENTATION (S WAP ) Randomly select two different genes and swap them.

Example: Mutation for tree based representation * 2 * rr *  * rr Single point mutation selects one node and replaces it with a similar one.

R ECOMBINATION O PERATORS We might have one or more recombination operators for our representation. Some important points are: The child should inherit something from each parent. The recombination operator should be designed in conjunction with the representation. Recombination should produce valid chromosomes

E XAMPLE : R ECOMBINATION FOR D ISCRETE R EPRESENTATION Whole Population:... Each chromosome is cut into n pieces which are recombined. (Example for n=1) parents cut offspring

E XAMPLE : R ECOMBINATION FOR ORDER BASED REPRESENTATION (O RDER 1)  Choose an arbitrary part from the first parent and copy this to the first child  Copy the remaining genes that are not in the copied part to the first child: starting right from the cut point of the copied part using the order of genes from the second parent wrapping around at the end of the chromosome  Repeat this process with the parent roles reversed

E XAMPLE : R ECOMBINATION FOR ORDER BASED REPRESENTATION (O RDER 1) , 3, 4, 6, 5 4, 3, 6, 7, 5 order Parent 1Parent 2 Child 1

S ELECTION S TRATEGY We want to have some way to ensure that better individuals have a better chance of being parents than less good individuals. This will give us selection pressure which will drive the population forward. We have to be careful to give less good individuals at least some chance of being parents - they may include some useful genetic material.

E XAMPLE : R OULETTE WHEEL Best Worst Better (fitter) individuals have: more space more chances to be selected

E XAMPLE : T OURNAMENT SELECTION Select k random individuals, without replacement Take the best k is called the size of the tournament

R EPLACEMENT S TRATEGY The selection pressure is also affected by the way in which we decide which members of the population to kill in order to make way for our new individuals.

E LITISM Should fitness constantly improve? Re-introduce in the population previous best-so-far (elitism) or Keep best-so-far in a safe place (preservation)

R ECOMBINATION VS M UTATION Recombination modifications depend on the whole population decreasing effects with convergence exploitation operator Mutation mandatory to escape local optima strong causality principle exploration operator

S TOPPING CRITERION The optimum is reached! Limit on CPU resources: Maximum number of fitness evaluations Limit on the user’s patience: After some generations without improvement

P RACTICAL PERFORMANCE Never draw any conclusion from a single run use statistical measures (averages, medians) from a sufficient number of independent runs

A LGORITHM P ERFORMANCE (2) Remember the WYTIWYG principal: “What you test is what you get” - don´t tune algorithm performance on toy data and expect it to work with real data.

K EY I SSUES What you say are the six key points you should leave this session with? Please discuss it groups.