Basics of Genetic Algorithms (MidTerm – only in RED material)

Slides:



Advertisements
Similar presentations
Introduction to Genetic Algorithms Speaker: Moch. Rif’an
Advertisements

Introduction to the Cell Cycle and Inheritance
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Genetic Algorithms (GAs)
13 Basics of Genetic Algorithms and some possibilities Peter Spijker Technische Universiteit Eindhoven Department of Biomedical Engineering Division of.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
11.1 Genetic Variation Within Population KEY CONCEPT A population shares a common gene pool.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
Genetic Algorithm.
Evolutionary Intelligence
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Genetic algorithms Prof Kang Li
Introduction to Evolutionary Computation Temi avanzati di Intelligenza Artificiale - Lecture 1 Prof. Vincenzo Cutello Department of Mathematics and Computer.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
EVOLUTION & SPECIATION. Microevolution. What is it? changes in the gene pool of a population over time which result in relatively small changes to the.
Mechanisms of Population Evolution
Demonstrate understanding of biological ideas relating to genetic variation Science 1.9 (AS90948)
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]
Unit 2.  Biological Anthropology seeks to understand the role of biology in understanding human culture.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
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.
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
Introduction to Genetic Algorithms
Genetic Algorithms.
KEY CONCEPT A population shares a common gene pool.
13/11/
Artificial Intelligence Methods (AIM)
Introduction to Genetic Algorithm (GA)
Lesson Overview 17.1 Genes and Variation.
Lesson Overview 17.1 Genes and Variation.
Evolution as Genetic Change
An evolutionary approach to solving complex problems
Genetic Algorithms, Search Algorithms
KEY CONCEPT A population shares a common gene pool.
PLANT BIOTECHNOLOGY & GENETIC ENGINEERING (3 CREDIT HOURS)
KEY CONCEPT A population shares a common gene pool.
KEY CONCEPT A population shares a common gene pool.
KEY CONCEPT A population shares a common gene pool.
KEY CONCEPT A population shares a common gene pool.
KEY CONCEPT A population shares a common gene pool.
KEY CONCEPT A population shares a common gene pool.
Mechanisms of Evolution
KEY CONCEPT A population shares a common gene pool.
GENETIC ALGORITHMS & MACHINE LEARNING
Genes and Variations.
Lesson Overview 17.1 Genes and Variation Objectives:
Dr. Unnikrishnan P.C. Professor, EEE
Lesson Overview 17.1 Genes and Variation.
Basics of Genetic Algorithms
Genes and Variation Chapter 17.1.
KEY CONCEPT A population shares a common gene pool.
Searching for solutions: Genetic Algorithms
A Gentle introduction Richard P. Simpson
Lesson Overview 17.1 Genes and Variation.
Populations Change Over Time through Natural Selection
Mechanisms of Evolution
KEY CONCEPT A population shares a common gene pool.
Monohybrid cross - shows inheritance of one trait from two parents
Genetic Algorithm Soft Computing: use of inexact t solution to compute hard task problems. Soft computing tolerant of imprecision, uncertainty, partial.
KEY CONCEPT A population shares a common gene pool.
Lesson Overview 17.1 Genes and Variation.
KEY CONCEPT A population shares a common gene pool.
Unit 9: Evolution 9.5 Genes and Variation.
A population shares a common gene pool.
Genetic Variation with Populations
KEY CONCEPT A population shares a common gene pool.
Presentation transcript:

Basics of Genetic Algorithms (MidTerm – only in RED material) General introduction to Genetic Algorithms (GA’s) Biological background Origin of species Natural selection Genetic Algorithm Search space Basic algorithm Coding Methods Examples Possibilities

General Introduction to GA’s Genetic algorithms (GA’s) are a technique to solve problems which need optimization in search GA’s are a subclass of Evolutionary Computing GA’s are based on Darwin’s theory of evolution History of GA’s Evolutionary computing evolved in the 1960’s. GA’s were created by John Holland in the mid-70’s.

Biological Background (1) – The cell Every animal cell is a complex of many small “factories” working together The center of this all is the cell nucleus The nucleus contains the genetic information

Biological Background (2) – Chromosomes Genetic information is stored in the chromosomes Each chromosome is build of DNA Chromosomes in humans form pairs There are 23 pairs The chromosome is divided in parts: genes Genes code for properties The posibilities of the genes for one property is called: allele Every gene has an unique position on the chromosome: locus

Biological Background (3) – Genetics The entire combination of genes is called genotype A genotype develops to a phenotype Alleles can be either dominant or recessive Dominant alleles will always express from the genotype to the phenotype Recessive alleles can survive in the population for many generations, without being expressed.

Biological Background (4) – Reproduction Reproduction of genetical information Mitosis Meiosis Mitosis is copying the same genetic information to new offspring: there is no exchange of information Mitosis is the normal way of growing of multicell structures, like organs.

Biological Background (5) – Reproduction Meiosis is the basis of sexual reproduction After meiotic division 2 gametes appear in the process In reproduction two gametes conjugate to a zygote wich will become the new individual Hence genetic information is shared between the parents in order to create new offspring

Biological Background (6) – Reproduction During reproduction “errors” occur Due to these “errors” genetic variation exists Most important “errors” are: Recombination (cross-over) Mutation

Biological Background (7) – Natural selection The origin of species: “Preservation of favourable variations and rejection of unfavourable variations.” There are more individuals born than can survive, so there is a continuous struggle for life. Individuals with an advantage have a greater chance for survive: survival of the fittest.

Biological Background (8) – Natural selection Important aspects in natural selection are: adaptation to the environment isolation of populations in different groups which cannot mutually mate If small changes in the genotypes of individuals are expressed easily, especially in small populations, we speak of genetic drift Mathematical expresses as fitness: success in life

Presentation Overview Purpose of presentation General introduction to Genetic Algorithms (GA’s) Biological background Origin of species Natural selection Genetic Algorithm Search space Basic algorithm Coding Methods Examples Possibilities

1 Genetic Algorithm (and GPs) – Search space Most often one is looking for the best solution in a specific subset of solutions (best?, exploration) This subset is called the search space (or state space) Every point in the search space is a possible solution Therefore every point has a fitness value, depending on the problem definition (higher is closer to best) GA’s are used to search the search space for the best solution, e.g. a minimum Difficulties are the local minima and the starting point of the search

2 Genetic Algorithm (and GPs) – Basic algorithm Starting with a subset of n randomly chosen solutions from the search space (i.e. chromosomes). This is the population This population is used to produce a next generation of individuals by reproduction Individuals with a higher fitness have more chance to reproduce (i.e. natural selection)

3 Genetic Algorithm (and GPs) – Basic algorithm Outline of the basic algorithm 0 START : Create random population of n chromosomes 1 FITNESS : Evaluate fitness f(x) of each chromosome in the population 2 NEW POPULATION (MAIN LOOP) 0 SELECTION : Based on f(x) 1 RECOMBINATION : Cross-over chromosomes 2 MUTATION : Mutate chromosomes 3 ACCEPTATION : Reject or accept new one 3 REPLACE : Replace old with new population: the new generation (Goto MAIN LOOP) 4 TEST : Test problem criterium 5 LOOP : Continue step 1 – 4 until criterium is satisfied

4 Genetic Algorithm – Coding Chromosomes are encoded by bitstrings ( GPs – code) Every bitstring therefore is a solution but not necisseraly the best solution The way bitstrings can code differs from problem to problem Either: sequence of on/off or the number 9 1

5 Genetic Algorithm – Coding Recombination (cross-over) can when using bitstrings schematically be represented: Using a specific cross-over point 1 1 1 1 X

6 Genetic Algorithm – Coding Mutation prevents the algorithm to be trapped in a local minimum In the bitstring approach mutation is simpy the flipping of one of the bits 1 1

Genetic Algorithm (8) – Coding Both recombination and mutation depend a lot on the exact definition of the problem and the choice of representing the chromosomes (e.g. no bitstrings) Different encodings can be used: Binary encoding Permutation encoding Value encoding Tree encoding (GPs - if trees are programming code) Focus in this presentation stays with binary encoding