A First Course in Genetic Algorithms

Slides:



Advertisements
Similar presentations
Logical and Artificial Intelligence in Games Lecture 14
Advertisements

Genetic Algorithms Chapter 3. A.E. Eiben and J.E. Smith, Introduction to Evolutionary Computing Genetic Algorithms GA Quick Overview Developed: USA in.
Population-based metaheuristics Nature-inspired Initialize a population A new population of solutions is generated Integrate the new population into the.
Biologically Inspired AI (mostly GAs). Some Examples of Biologically Inspired Computation Neural networks Evolutionary computation (e.g., genetic algorithms)
Genetic Algorithms Representation of Candidate Solutions GAs on primarily two types of representations: –Binary-Coded –Real-Coded Binary-Coded GAs must.
Evolutionary Computing A Practical Introduction Presented by Ben Paechter Napier University with thanks to the EvoNet Training Committee and its “Flying.
Introduction to AI (part two) Tim Watson G6.71
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Evolutionary Computational Intelligence
Genetic algorithms for neural networks An introduction.
Introduction to Genetic Algorithms Yonatan Shichel.
Genetic Algorithms GAs are one of the most powerful and applicable search methods available GA originally developed by John Holland (1975) Inspired by.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Genetic Algorithms Learning Machines for knowledge discovery.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Chapter 14 Genetic Algorithms.
CS 447 Advanced Topics in Artificial Intelligence Fall 2002.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
The Standard Genetic Algorithm Dr. Chrisantha Fernando Systems Biology Centre University of Birmingham Dr. Chrisantha Fernando Systems Biology Centre University.
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 GENETIC PROGRAMMING Ehsan Khoddam Mohammadi.
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Intro. ANN & Fuzzy Systems Lecture 36 GENETIC ALGORITHM (1)
Genetic algorithms Prof Kang Li
10/12/20151 V. Evolutionary Computing A. Genetic Algorithms.
CS 484 – Artificial Intelligence1 Announcements Lab 3 due Tuesday, November 6 Homework 6 due Tuesday, November 6 Lab 4 due Thursday, November 8 Current.
Lecture 8: 24/5/1435 Genetic Algorithms Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Genetic Algorithms by using MapReduce
Genetic Algorithms Michael J. Watts
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 Charles Darwin "A man who dares to waste an hour of life has not discovered the value of life"
1 Genetic Algorithms “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations.
Introduction to Evolutionary Algorithms Session 4 Jim Smith University of the West of England, UK May/June 2012.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Computational Complexity Jang, HaYoung BioIntelligence Lab.
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.
2005MEE Software Engineering Lecture 11 – Optimisation Techniques.
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.
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.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
Genetic Algorithms. The Basic Genetic Algorithm 1.[Start] Generate random population of n chromosomes (suitable solutions for the problem) 2.[Fitness]
5. Implementing a GA 4 학습목표 GA 를 사용해 실제 문제를 해결할 때 고려해야 하는 사항에 대해 이해한다 Huge number of choices with little theoretical guidance Implementation issues + sophisticated.
GENETIC ALGORITHM Basic Algorithm begin set time t = 0;
Genetic Algorithms MITM613 (Intelligent Systems).
1 Autonomic Computer Systems Evolutionary Computation Pascal Paysan.
Genetic Algorithms Chapter Description of Presentations
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*
Overview Last two weeks we looked at evolutionary algorithms.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
GENETIC ALGORITHM By Siti Rohajawati. Definition Genetic algorithms are sets of computational procedures that conceptually follow steps inspired by the.
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
Presented By: Farid, Alidoust Vahid, Akbari 18 th May IAUT University – Faculty.
Genetic (Evolutionary) Algorithms CEE 6410 David Rosenberg “Natural Selection or the Survival of the Fittest.” -- Charles Darwin.
Introduction to Genetic Algorithms
Chapter 14 Genetic Algorithms.
Genetic Algorithms Author: A.E. Eiben and J.E. Smith
Genetic Algorithms.
Basics of Genetic Algorithms (MidTerm – only in RED material)
Genetic Algorithms Chapter 3.
Basics of Genetic Algorithms
A Gentle introduction Richard P. Simpson
Genetic Algorithm Soft Computing: use of inexact t solution to compute hard task problems. Soft computing tolerant of imprecision, uncertainty, partial.
Presentation transcript:

A First Course in Genetic Algorithms Tim Watson G6.71 tw@dmu.ac.uk

What is a GA? Evolutionary Algorithm Create random population of possible solutions in the form of bitstrings See how good each one is (test fitness) Produce next generation (fitter are more likely to get into next generation) Crossover, mutate and make next generation the current one

What can they do? Schedule Barcelona Olympics Aircraft Design Dynamic Routing in Networks Robot Arm Trajectory Planning Lab Task Scheduling for US Navy Aircraft Missile Evasion Evolving aNN Architecture Parameter Tuning for Sonar Systems Conformational Analysis of DNA

Example: Onemax Initial population: 100 000 110 Calculate fitness: 100 2 000 1 110 3 Reproduce: 110 100 110 Crossover & Mutate: 101 010

Biological Terminology Genes etc. Gene Locus (plural loci) Allele (also called gene value) (Pleiotropic gene) Genotype (Chromosome) Phenotype Fitness Landscape

GA Theory Schema Theorem Building Block Hypothesis GA searches schemata in parallel 10 represents 10, 1#, #0 and ## The theorem is rubbish! Building Block Hypothesis Good, small sequences are found and recombined to form good solutions No Free Lunch Theorem

GA Parameters Population Size Chromosome Size Crossover Rate Static or Dynamic? Chromosome Size Fixed or Variable? Crossover Rate One-point, two-point or uniform? Mutation Rate Fitness Function Termination Criteria

Prediction Test! What happens to the population statistics in a standard GA with random fitness, no crossover, no mutation and chromsize equals 16? Best, Worst, Mean , Std. Dev., column counts Best=17, Worst=1, Mean=9ish, Std. Dev. constant-ish, pop converges randomly.

Reproduction in GAs Need selective pressure for reproduction to improve the population fitness None leads to random walk (slow) Some leads to geometric growth of best (fast) Infinite populations select individuals on relative fitness: fit/mean(fit) Finite populations also affected by how many copies are already present

Types of Selection Fitness-Proportionate Rank-Order Tournament Elitism Fitness scaling based on raw fitness where if fita < fitb then scaled(fita)  scaled(fitb) Scaling can be altered dynamically Rank-Order Tournament Elitism

Initialising the Population Uniformly at random Best Guesses Converged to Best Known From Real World Hybrid

Mutation Goal of selection: survival of the fittest Goal of mutation: explore lost or never seen alleles Random reset versus bit flip Reset rate = ½ bit flip rate Mutation as a spring In infinite time every possible population visited an infinite number of times Alternative to mutation: complement

Crossover Goal: to try out different combinations of good bits of individuals Crossover point One-point Two-point N-point Uniform

Crossover (2) Closer genes are less likely to be split by crossover AB###### probability of split with one-point crossover = 1/7 A######B probability of split = 1 Local maxima can occur (e.g. for onemax) 11011 fit=4 1011000101 00100 fit=1 0010100000 All children have lower fitness than parents

Design Decisions If genes are linked then the representaion of an individual ought to keep them close together Get the balance right: Popsize too small  premature convergence Popsize too large  too slow to compute Mutation rate too low  not enough exploring Mutation rate too high  too much noise