Intro. ANN & Fuzzy Systems Lecture 36 GENETIC ALGORITHM (1)

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

Population-based metaheuristics Nature-inspired Initialize a population A new population of solutions is generated Integrate the new population into the.
Using Parallel Genetic Algorithm in a Predictive Job Scheduling
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.
1 Wendy Williams Metaheuristic Algorithms Genetic Algorithms: A Tutorial “Genetic Algorithms are good at taking large, potentially huge search spaces and.
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.
Evolutionary Computational Intelligence
1 Genetic Algorithms. CS The Traditional Approach Ask an expert Adapt existing designs Trial and error.
Genetic Algorithm for Variable Selection
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
1 Genetic Algorithms. CS 561, Session 26 2 The Traditional Approach Ask an expert Adapt existing designs Trial and error.
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 Algorithms: A Tutorial
Genetic Algorithm.
Evolutionary Intelligence
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Genetic algorithms Prof Kang Li
Optimization in Engineering Design Georgia Institute of Technology Systems Realization Laboratory Mixed Integer Problems Most optimization algorithms deal.
Genetic Algorithms by using MapReduce
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
Boltzmann Machine (BM) (§6.4) Hopfield model + hidden nodes + simulated annealing BM Architecture –a set of visible nodes: nodes can be accessed from outside.
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.
The Generational Control Model This is the control model that is traditionally used by GP systems. There are a distinct number of generations performed.
Applying Genetic Algorithm to the Knapsack Problem Qi Su ECE 539 Spring 2001 Course Project.
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.
Computational Complexity Jang, HaYoung BioIntelligence Lab.
Genetic Algorithms Introduction Advanced. Simple Genetic Algorithms: Introduction What is it? In a Nutshell References The Pseudo Code Illustrations Applications.
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.
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 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.
Evolutionary Algorithms K. Ganesh Research Scholar, Ph.D., Industrial Management Division, Humanities and Social Sciences Department, Indian Institute.
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 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.
Neural Networks And Its Applications By Dr. Surya Chitra.
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 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 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.
Introduction to Genetic Algorithms
Genetic Algorithm in TDR System
Genetic Algorithms.
An evolutionary approach to solving complex problems
CS621: Artificial Intelligence
Genetic Algorithms Chapter 3.
Boltzmann Machine (BM) (§6.4)
Searching for solutions: Genetic Algorithms
Traveling Salesman Problem by Genetic Algorithm
Population Based Metaheuristics
GA.
Presentation transcript:

Intro. ANN & Fuzzy Systems Lecture 36 GENETIC ALGORITHM (1)

Intro. ANN & Fuzzy Systems (C) by Yu Hen Hu 2 Outline What is a Genetic Algorithm? –An Example Components of a Genetic Algorithm –Representation of gene –Selection Criteria –Reproduction Rules Cross-over Mutation Potential Applications of GA.

Intro. ANN & Fuzzy Systems (C) by Yu Hen Hu 3 What is a Genetic Algorithm? Genetic algorithms are search algorithms based on the mechanics of natural selection and natural genetics. They combine survival of the fittest among string structures with a structured yet randomized information exchange to form a search algorithm with some of the innovative flair of human search. In every generation, a new set of artificial creatures (strings) is created using bits and pieces of the fittest of the old; an occasional new part is tried for good measure. While randomized, genetic algorithms are no simple random walk. They efficiently exploit historical information to speculate on new search points with expected improved performance." - Genetic Algorithms in Search, Optimization & Machine Learning by David E. Goldberg

Intro. ANN & Fuzzy Systems (C) by Yu Hen Hu 4 What is a Genetic Algorithm? Repeat Evaluate current candidates Develop new candidates via reproduction with modification which replace least-fit former candidates Until satisfied Three Components: Representation of candidate solutions (states) - Genes Selection criteria to evaluate the FITNESS of each gene Reproduction rules to generate new candidate solutions (genes) based on derivation from current solutions (cross- over breeding) and directed random search (mutation).

Intro. ANN & Fuzzy Systems (C) by Yu Hen Hu 5 A GA EXAMPLE Objective - to find a binary string of length 5 with 4 1’s. Representation: binary string of length 5 Solution space: 5 feasible solutions among 2 5 solutions. First step: randomly generate 5 candidates, and evaluate their fitness using the number of 1ís in the string as a criterion (eval: 1) (eval: 2) (eval: 1) (eval: 3) (eval: 2) Population evaluation average: 1.8

Intro. ANN & Fuzzy Systems (C) by Yu Hen Hu 6 GA EXAMPLE (2) Second Step: generate new chromosomes Modification methods: (a) crossover during which two genes interchange their chromosomes; (b) inversion by flipping sub-string of the same gene; and (c) mutation by randomly perturbation. Selectionist distribution: Genes with higher fitness value has higher probability to produce off-springs! (eval: 1) (eval: 2) (repeat) (eval: 1) (eval: 3) (repeat) (repeat) (eval: 2) (repeat) Select pairs (indices from selectionist distribution): 1 & 4 & 4, 9 & 8 & 7 &

Intro. ANN & Fuzzy Systems (C) by Yu Hen Hu 7 GENERATE NEW GENES For example, crossover 1 (00010) and 4 (10000) at position 1 yields which evaluates 0! Other results are: = (eval: 2) = (eval: 3) = (eval: 4) = (eval: 3) New population evaluation average: 2.4 Since produces a feasible solution, the iteration terminates, and the GA algorithm successfully found a solution.

Intro. ANN & Fuzzy Systems (C) by Yu Hen Hu 8 GA Algorithm Overview GA is a random search algorithm which keeps a pool of candidate solutions (gene pool). Each solution is encoded in a binary string called a chromosome with each bit being a gene. Evaluate the fitness of a solution using a selection criteria. Generate new chromosomes by reproduction rules, including cross-over (mating), inversion, and mutation. Annihilate inferior (according to the result of evaluation using the selection criteria) genes, to make room for new genes. Adding new genes with high fitness values into gene pool. Evaluate termination criteria. If not yet satisfied, continue the search process.

Intro. ANN & Fuzzy Systems (C) by Yu Hen Hu 9 GENETIC ALGORITHM CYCLE Replacement Gene Pool ( Chromosom es ) Mating Pool (Parents) Subpopulation (Off- springs ) Objective Function fitness Selection Reproduction fitness phenotype

Intro. ANN & Fuzzy Systems (C) by Yu Hen Hu 10 GENE REPRESENTATION Encoding is a key to the GA: Feature (knowledge) representation Each chromosome is a vector of genes representing a trial solution. Each gene can be a binary number, a real number or other symbols. Bit-string encoding where each gene is a binary number is the most popular approach. Other approaches: real number representation, order-based representation (good for graph coloring problem), embedded list (for factory scheduling), variable element lists (IC layout), and even LISP S-expressions.

Intro. ANN & Fuzzy Systems (C) by Yu Hen Hu 11 SELECTION (FITNESS) CRITERIA 1.Windowing: Let v(i) = objective value of chromosome i, and c: a constant, then the fitness of chromosome i can be found as: f(i) = c  [v(i)  v(w)] where v(w) < v(i) for all i  w. 2.Linear Normalization: Rank objective values of chromosomes. Assign the best performed chromosome with fitness value f(best). Assign remaining i-th chromosome with fitness value f(i) = f(best)  (i  1)d

Intro. ANN & Fuzzy Systems (C) by Yu Hen Hu 12 PARENT SELECTION Emulate the survival-of-the-fittest mechanism in nature! In a Proportionate scheme where the growth rate of a chromosome with fitness value f(x,t) is defined as f(x,t)/F(t) where F(t) is the average fitness of the population. An implementation is as follows: Roulette Wheel Parent Selection Algorithm 1. Sum the fitness of all population members; named as total fitness, n. 2. Generate a random number between 0 and n. Return the first population member whose fitness added to the fitness of the preceding population members is greater than or equal to n

Intro. ANN & Fuzzy Systems (C) by Yu Hen Hu 13 CROSS-OVER Single point crossover: Multi-point crossover: parents Offspring parentsOffspring

Intro. ANN & Fuzzy Systems (C) by Yu Hen Hu 14 MUTATION Original Chromosome New Chromosome Mutation will take place with a small probability For each bit in a bit stream, a probability test is performed. If passed, then one of two methods can be used: Method 1. That bit is flipped (0 changes to 1, and vice versa) Method 2. Randomly generate a bit. If the randomly generated bit is different from the original bit, the original bit is flipped.

Intro. ANN & Fuzzy Systems (C) by Yu Hen Hu 15 REPLACEMENT STRATEGY Two strategies: Generation vs. Steady state replacement Generational Replacement - Copy the best or a few of the best chromosomes into a new generation. Generate remaining new chromosome to replace current generation. Steady State Replacement - Replace only the worst chromosomes with new chromosomes in each generation.

Intro. ANN & Fuzzy Systems (C) by Yu Hen Hu 16 APPLICATIONS OF GENETIC ALGORITHMS Main Applications - Combinatorial Optimization: –VLSI physical design, layout optimization, routing placement –Job scheduling Signal Processing – –Time delayed estimation using FIR filter for sonar/radar –Speech coding –Wavelet coding –Image compression & recognition