Genetic Algorithms Michael J. Watts http://mike.watts.net.nz.

Slides:



Advertisements
Similar presentations
Genetic Algorithms Chapter 3. A.E. Eiben and J.E. Smith, Introduction to Evolutionary Computing Genetic Algorithms GA Quick Overview Developed: USA in.
Advertisements

Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm
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.
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.
Estimation of Distribution Algorithms Let’s review what have done in EC so far: We have studied EP and found that each individual searched via Gaussian.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Data Mining CS 341, Spring 2007 Genetic Algorithm.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Evolutionary Computation Application Peter Andras peter.andras/lectures.
Genetic Algorithms Nehaya Tayseer 1.Introduction What is a Genetic algorithm? A search technique used in computer science to find approximate solutions.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Genetic Algorithms Overview Genetic Algorithms: a gentle introduction –What are GAs –How do they work/ Why? –Critical issues Use in Data Mining –GAs.
Genetic Programming.
Genetic Algorithm.
Computer Implementation of Genetic Algorithm
1 An Overview of Evolutionary Computation 조 성 배 연세대학교 컴퓨터과학과.
An Approach of Artificial Intelligence Application for Laboratory Tests Evaluation Ş.l.univ.dr.ing. Corina SĂVULESCU University of Piteşti.
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Evolution Strategies Evolutionary Programming Genetic Programming Michael J. Watts
Intro. ANN & Fuzzy Systems Lecture 36 GENETIC ALGORITHM (1)
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 Charles Darwin "A man who dares to waste an hour of life has not discovered the value of life"
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Genetic Algorithms Genetic Algorithms – What are they? And how they are inspired from evolution. Operators and Definitions in Genetic Algorithms paradigm.
Soft Computing A Gentle introduction Richard P. Simpson.
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.
GENETIC ALGORITHMS.  Genetic algorithms are a form of local search that use methods based on evolution to make small changes to a popula- tion of chromosomes.
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
Genetic Algorithms CSCI-2300 Introduction to Algorithms
Edge Assembly Crossover
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
Genetic Algorithms An Example Genetic Algorithm Procedure GA{ t = 0; Initialize P(t); Evaluate P(t); While (Not Done) { Parents(t) = Select_Parents(P(t));
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.
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]
Parallel Genetic Algorithms By Larry Hale and Trevor McCasland.
Waqas Haider Bangyal 1. Evolutionary computing algorithms are very common and used by many researchers in their research to solve the optimization problems.
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.
1 Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations Genetic Algorithm (GA)
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.
Overview Last two weeks we looked at evolutionary algorithms.
Genetic Algorithms. Solution Search in Problem Space.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
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.
1 Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations.
Chapter 14 Genetic Algorithms.
Evolution Strategies Evolutionary Programming
Artificial Intelligence Methods (AIM)
Genetic Algorithms CSCI-2300 Introduction to Algorithms
GENETIC ALGORITHMS & MACHINE LEARNING
Genetic Algorithms Chapter 3.
EE368 Soft Computing Genetic Algorithms.
Searching for solutions: Genetic Algorithms
A Gentle introduction Richard P. Simpson
Artificial Intelligence CIS 342
GA.
Presentation transcript:

Genetic Algorithms Michael J. Watts http://mike.watts.net.nz

Lecture Outline Genetic algorithms Jargon Advantages of GAs Disadvantages of GAs Simple genetic algorithm Encoding schemata Fitness evaluation

Lecture Outline Selection Creating new solutions Crossover Mutation Replacement strategies Word matching example

Genetic Algorithms “Genetic algorithms are search algorithms based on the mechanics of natural selection and natural genetics” Goldberg, 1989

A kind of evolutionary algorithm Also known as GA(s) Genetic Algorithms A kind of evolutionary algorithm Also known as GA(s)

Jargon Locus - a position on a chromosome Gene - a portion of a chromosome representing a parameter of the solution set Alleles - different values of a particular gene. Members of the domain of the gene’s value Chromosome - string of genes

Jargon Genotype - coding of the solution Phenotype - expression of the genotype Population - group of individuals capable of interbreeding

Advantages of GA Efficient means of investigating large combinatorial problems can solve combinatorial problems many orders of magnitude faster than exhaustive ‘brute force’ searches

Disadvantages of GA GAs are not ‘silver bullets’ for solving problems Must be able to assess the quality of each attempt at a solution can’t crack PGP with a GA

Disadvantages of GA Computationally expensive Blind, undirected search some problems require many days or weeks to run often still faster than brute force, however Blind, undirected search difficult to direct a GA towards optimal solution area if known

Disadvantages of GA Can be sensitive to initial parameters parameters such as mutation can significantly influence the search Stochastic process not guaranteed to find an optimal solution, just highly likely to

Simple Genetic Algorithm 1. Select an encoding schema 2. Randomly initialise chromosome pool 3. Evaluate each individual in the population 4. Select fit individuals to breed new population 5. Create new population from parents 6. Replace old population with new population 7. Repeat steps 3 - 6 for each generation

Encoding Schemata Two competing principles Meaningful building blocks “user should select a coding so that short, low order schemata are relevant to the underlying problem” Minimal alphabets “user should select the smallest alphabet that permits a natural expression of the problem”

Fitness Evaluation Method dependent upon problem Involves quantifying performance of the phenotypes

Fitness Evaluation Normalisation or scaling of fitness values required to prevent good solution overwhelming later generations known as “premature convergence” similar to the ‘local minima’ problem with neural networks

Selection Involves selecting the parents of the next generation Many methods in existence All based upon the fitness of the individual

Selection Roulette selection each individual is given a slice of a virtual roulette wheel size of each slice is proportional to fitness spin the wheel once to select each individual

Roulette Selection

Roulette Selection

Create New Solutions Creates new individuals from selected parents Two operators come into play crossover, and Mutation

Crossover Two chromosomes join at one or more points and exchange genes Types of crossover include

One point chromosomes join at only one locus Crossover One point chromosomes join at only one locus

Two point chromosomes join at two loci Crossover Two point chromosomes join at two loci

Uniform crossover at each locus determined by a “coin toss”

Mutation One or more allele is randomly chosen and it’s value changed Method of change depends upon coding schema used Best rate of mutation subject of much current research

Mutation Some dispute it’s necessity Effect of mutation dependent upon size of alphabet the higher the cardinality of the alphabet, the lower the benefit of mutation

Replacement Strategies Replace some or all of the parent population with children Many different replacement strategies available Most concerned with preserving ‘good’ genes and purging ‘bad’ genes

Word Matching Example Problem is to ‘guess’ a word Difficult to solve with a brute force approach assuming case sensitivity, to investigate every possible combination of letters in a seven letter word would require 1,028,071,702,528 attempts

Word Matching Example Assume trying to guess the word ‘genetic’ assign fitness based on number of correct letters in the correct place Step one: select an encoding schema use characters

Word Matching Example Step two: initialise the population 1. kdjirid 2. ginddcc 3. nmugjyb 4. zezezez 5. uhjklyt 6. wojikli 7. kladonn 8. flortik

Step three: evaluate the population Word Matching Example Step three: evaluate the population Average fitness = 1

Word Matching Example Step four: select breeding population selection based on fitness, so breeding population is

Word Matching Example Step five: create new population crossover comes into play no mutation used here to keep things simple eg. cross individual 2 with individual 4 individual 2 genotype is: ginddcc individual 4 genotype is: zezezez crossing over produces : genedec

Word Matching Example New population is: average fitness = 2.375

Summary Genetic algorithms are a class of evolutionary algorithm Able to efficiently investigate large search spaces Have two major requirements representation Evaluation

Summary Population evolves by creating more offspring from fitter members fitness based selection Offspring created using crossover and mutation operators Must be mindful of the disadvantages