Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.

Slides:



Advertisements
Similar presentations
Genetic Algorithm.
Advertisements

Student : Mateja Saković 3015/2011.  Genetic algorithms are based on evolution and natural selection  Evolution is any change across successive generations.
Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm
Biologically Inspired AI (mostly GAs). Some Examples of Biologically Inspired Computation Neural networks Evolutionary computation (e.g., genetic algorithms)
1 IOE/MFG 543 Chapter 14: General purpose procedures for scheduling in practice Section 14.5: Local search – Genetic Algorithms.
1 Lecture 8: Genetic Algorithms Contents : Miming nature The steps of the algorithm –Coosing parents –Reproduction –Mutation Deeper in GA –Stochastic Universal.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Data Mining CS 341, Spring 2007 Genetic Algorithm.
Introduction to Genetic Algorithms Yonatan Shichel.
Genetic Algorithm for Variable Selection
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
7/2/2015Intelligent Systems and Soft Computing1 Lecture 9 Evolutionary Computation: Genetic algorithms Introduction, or can evolution be intelligent? Introduction,
CS 447 Advanced Topics in Artificial Intelligence Fall 2002.
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
1 An Overview of Evolutionary Computation 조 성 배 연세대학교 컴퓨터과학과.
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)
Genetic algorithms Prof Kang Li
Lecture 8: 24/5/1435 Genetic Algorithms Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
Genetic algorithms Charles Darwin "A man who dares to waste an hour of life has not discovered the value of life"
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
1 Genetic Algorithms “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
1 “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations of things, solutions.
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.
Derivative Free Optimization G.Anuradha. Contents Genetic Algorithm Simulated Annealing Random search method Downhill simplex method.
EE459 I ntroduction to Artificial I ntelligence Genetic Algorithms Kasin Prakobwaitayakit Department of Electrical Engineering Chiangmai University.
© 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.
 Negnevitsky, Pearson Education, Lecture 9 Evolutionary Computation: Genetic algorithms n Introduction, or can evolution be intelligent? n Simulation.
Edge Assembly Crossover
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
Chapter 12 FUSION OF FUZZY SYSTEM AND GENETIC ALGORITHMS Chi-Yuan Yeh.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
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.
Genetic Algorithms MITM613 (Intelligent Systems).
Genetic Algorithms Chapter Description of Presentations
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.
1 Comparative Study of two Genetic Algorithms Based Task Allocation Models in Distributed Computing System Oğuzhan TAŞ 2005.
Advanced AI – Session 6 Genetic Algorithm By: H.Nematzadeh.
Genetic Algorithms. Solution Search in Problem Space.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
Genetic (Evolutionary) Algorithms CEE 6410 David Rosenberg “Natural Selection or the Survival of the Fittest.” -- Charles Darwin.
July 6, 2016Knowledge-Based System, Lecturer # 09 1 Knowledge Based System Lecture #09 Dr. Md. Hasanuzzaman Assistant Professor Department of Computer.
Genetic Algorithm (Knapsack Problem)
Introduction to Genetic Algorithms
Genetic Algorithms.
Artificial Intelligence Methods (AIM)
Intelligent Systems and Soft Computing
An evolutionary approach to solving complex problems
Artificial Intelligence (CS 370D)
CS621: Artificial Intelligence
Basics of Genetic Algorithms (MidTerm – only in RED material)
GENETIC ALGORITHMS & MACHINE LEARNING
Basics of Genetic Algorithms
EE368 Soft Computing Genetic Algorithms.
A Gentle introduction Richard P. Simpson
Presentation transcript:

Intro to AI Genetic Algorithm Ruth Bergman Fall 2002

Imitating Nature Aspect of the evolution of organisms: The organisms that are ill-suited for an environment have little chances to reproduce (natural selection) Conversely, the best fitting have more chances to survive and reproduce

Imitating Nature Reproduction: Offspring are similar to their parents Random mutations occur and they can bring to better (or worse) fitting individuals “The Origin of the Species on the Basis of Natural Selection” C. Darwin (1859) Encoding: An organism is fully represented by its DNA string, that is a string over a finite alphabet (4 symbols) Each element of this string is called gene

Genetic Algorithm (GA) Developed by John Holland in the early 70’s Optimization and machine learning techniques inspired from the process of natural evolution and evolutionary genetics –Solutions are encoded as chromosomes –Search proceeds through maintenance of a population of solutions –Reproduction favors “better” chromosomes –New chromosomes are generated during reproduction through processes of mutation and cross over, etc.

GA Framework selection mutation cross over population ABCDABCD Fitness evaluation Search space reproduction

GA Procedure Start with a population of N individuals 1.Apply the fitness function to all the individuals 2.Select the pairs of individuals for reproduction (repetition allowed). 3.Each pair generates two children (reproduction with cross-over) 4.Apply a random mutation to the children. The children become the next generation 5.Apply steps 1,2,3 until some termination criteria applies

Encoding Scheme An individual (an organisms) is intended to be a possible solution for the problem you want to solve An individual is represented by a binary string. Such a string is intended to be the complete description of the individual Example: Suppose you have to find a number between 0 and 255, which binary representation contains the same number of 1s and 0s. A individual is a string of 8 bits, ex: h == 126

Fitness Function A fitness function is a function that says how good is a solution, i.e. how well an individual fit the environment Example note that the fitness function gets the minimum value (i.e. 0) when or and the maximum value (i.e. 8) when

The Initial Population

Optimization  local optimum 방지 GA Search Method Hill-climbing Method cf.

Selection Roulette wheel selection –compute each individual’s contribution to the global fitness as –The choice of the pairs for reproduction consists of randomly choosing the individuals (with replacement) with distribution given by P encodingfitness P(-) ABCDABCD Roulette Wheel

Crossover –Randomly choose a cross over point “c”, i.e. a number between 1 and n – return two children: one composed by the first c bits of the first parent and the last n-c bits of the second parent, the other composed by the first c bits of the second parent and the n-c bits of the first parents c

Mutation mutation on individuals: some of the children’s bits are changed (with a small, independent probability maximum found

Stopping Criteria Convergence: –A population is said to converge when all the genes have converged, I.e. when the value of every bit is the same at least in the 95% of the individuals in the population Since convergence is not guaranteed, we must consider other stopping criteria: –Number of generations –Almost constant value of the best fitting individual –Almost constant value of the average fitness of the population

Parameter Settings Population size –How many chromosomes are in population Too few chromosome  small part of search space Too many chromosome  GA slow down –Recommendation : 20-30, Probability of crossover –How often will be crossover performed –Recommendation : 80% -95% Probability of mutation –How often will be parts of chromosome mutated –Recommendation : 0.5% - 1%

Genetic Programming One of the central challenges of CS is to get a computer to do what needs to be done, without telling it how to do it –Automatic programming (or program synthesis) GP is a branch of genetic algorithms Main difference between GP and GA –Representation of the solution (computer program) GA: a string of numbers –fixed-length character strings GP: computer program (lisp or scheme) –Represent hierarchical computer programs of dynamically varying sizes and shapes