Genetic Algorithms by Dr. Sadiq M. Sait & Dr. Habib Youssef (special lecture for oometer group) November 2003.

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.
1 Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations.
CS6800 Advanced Theory of Computation
School of Computer Science
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.
Spie98-1 Evolutionary Algorithms, Simulated Annealing, and Tabu Search: A Comparative Study H. Youssef, S. M. Sait, H. Adiche
1 Lecture 8: Genetic Algorithms Contents : Miming nature The steps of the algorithm –Coosing parents –Reproduction –Mutation Deeper in GA –Stochastic Universal.
KFUPM-1 Iterative Computer Algorithms : and their applications in engineering Sadiq M. Sait, Ph.D Department of Computer Engineering.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Evolutionary Computational Intelligence
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
KFUPM-1 Iterative Computer Algorithms : and their applications in engineering Sadiq M. Sait, Ph.D Department of Computer Engineering.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
1 Genetic Algorithms by Dr. Sadiq M. Sait & Dr. Habib Youssef (special lecture for oometer group) November 2003.
Chapter 14 Genetic 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 Algorithm.
Computer Implementation of Genetic Algorithm
Evolutionary Intelligence
1 An Overview of Evolutionary Computation 조 성 배 연세대학교 컴퓨터과학과.
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
Optimization in Engineering Design Georgia Institute of Technology Systems Realization Laboratory Mixed Integer Problems Most optimization algorithms deal.
By Prafulla S. Kota Raghavan Vangipuram
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
Genetic Algorithms Michael J. Watts
Introduction to GAs: Genetic Algorithms How to apply GAs to SNA? Thank you for all pictures and information referred.
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.
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.
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.
© Negnevitsky, Pearson Education, Lecture 9 Evolutionary Computation: Genetic algorithms Introduction, or can evolution be intelligent? Introduction,
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.
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 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.
Introduction to GAs: Genetic Algorithms Quantitative Analysis: How to make a decision? Thank you for all pictures and information referred.
Genetic Algorithms Chapter Description of Presentations
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.
1 Combinatorial Problem. 2 Graph Partition Undirected graph G=(V,E) V=V1  V2, V1  V2=  minimize the number of edges connect V1 and V2.
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.
Genetic Algorithms. Solution Search in Problem Space.
EVOLUTIONARY SYSTEMS AND GENETIC ALGORITHMS NAME: AKSHITKUMAR PATEL STUDENT ID: GRAD POSITION PAPER.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
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.
Presented By: Farid, Alidoust Vahid, Akbari 18 th May IAUT University – Faculty.
1 Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations.
Chapter 14 Genetic Algorithms.
Genetic Algorithms.
School of Computer Science & Engineering
Genetic Algorithms Chapter 3.
A Gentle introduction Richard P. Simpson
Population Based Metaheuristics
Presentation transcript:

Genetic Algorithms by Dr. Sadiq M. Sait & Dr. Habib Youssef (special lecture for oometer group) November 2003

Contents 1. Introduction 2. Basics of GA 3. Genetic Algorithm(s) 4. Schema Theorem and Implicit Parallelism 5. Genetic Algorithm In Practice 6. Other issues 1. A Brief Survey of Applications 2. Schema Theorem and Implicit Parallelism 3. Parallelization of Genetic Algorithm 7. Possible research directions for the oometer group

Introduction Genetic Algorithm(s) Inspired by Darwinian theory, a powerful search technique Based on the “Theory of Natural Selection” It is an adaptive leaning heuristic Belongs to class of iterative non-deterministic algorithm GA operates on population of individuals encoded as strings Used to solve combinatorial optimization problems

GA Basics Using GAs to solve a given combinatorial optimization problem one has to come up with A suitable encoding of solutions to the problem as chromosomes (generally strings, though not necessarily) Translate cost function into a fitness measure A solution to the optimization problem and the element of the population is represented by chromosome One has to find an efficient representation of the solution in the form of a chromosome Each chromosome (individual) has a fitness value

Robust, Effective, … GAs are both effective and robust, independent of the choice of the initial configurations they can produce high quality solutions They are able to exploit favorable characteristics of previous solution attempts to construct better solutions (inheritance) GAs are computationally simple and easy to implement Their power lies in the fact that as members of the population mate and produce offsprings, they (offsprings) have a significant chance of inheriting the best characteristics of both parents

Characteristics of GA Work with coding of parameters Search from a set of points Only require objective function values Non­deterministic: Non-determinism is introduced in operations (on chromosomes) and in several processes of the algorithm GAs are blind

GA Terminology How the organism is constructed or the solution represented is called as chromosome (basically an encoding) Complete set of chromosomes is called a genotype and resulting organism is called as phenotype Genes: Symbols that make up a chromosome Alleles: Different values taken by a gene Fitness: It is always a positive number, it is a measure of goodness (for optimization problems it is a function of the cost of the solution) Initial Population: An initial population constructor is required to generate a certain predefined number of solutions Quality of the final solution produced by genetic algorithm depends upon the size of the population and how the initial population is constructed Initial population may comprise random solutions (sometimes seeding is used)

Examples of Chromosomes Linear assignment problem (a permutation problem) (the index is the position and the number is the node/block for example) Bi-partitioning problem An example of a possible chromosome is Task assignment problem Say we have 8 tasks (numbered) and 3 processors There can be several different chromosomes for the same problem. A chromosome does not have to be a linear string (2-D chromosomes have been proposed)

Task Graph

Parents, Genetic Operators Chromosomes or pairs of chromosomes produces new solutions called as offsprings Genetic operators: Crossover Mutation Inversion Crossover operator is applied to pairs of chromosomes Two individuals selected for crossover are called parents Mutation is a genetic operator that is applied to a single chromosome (maybe to a gene or pairs of genes) Resulting individuals produced when genetic operators are applied on the parents is called as offsprings

Choice Of Parents Choice of parents is probabilistic Higher fitness individuals are more likely to mate than the weaker ones Select parents with a probability that is directly proportional to fitness values Larger the fitness of chromosome greater is its chance of being selected for crossover The Roulette-wheel method is generally employed. It is a wheel/disk in which each member of the population is given a sector whose size is proportional to its fitness Selection for crossover: wheel is spun and whichever individual comes up gets selected as the parent

Example: Roulette­wheel method Fitness values and their percentages : s1 = [ ] = 625 = 7.35% s2 = [ ] = 1936 = 22.76% s3 = [ ] = 2809 = 33.02% s4 = [ ] = 3136 = 36.87%

Crossover Provides a mechanism for the offspring to inherit the characteristics of both the parents It operates on two parents (P1 and P2) to generate offspring(s) Simple crossover: Performs the “cut­catenate”operation A random cut point is chosen to divide the chromosome into two The offspring is generated by catenating the segment of one parent to the left of the cut point with the segment of the second parent to the right of the cut point

Example of Crossover Example: For the following 2 parent chromosomes s2 = [1 0 | ] and s4 = [1 1 | ] If the crossover point is chosen after the 2nd gene, as shown above, the offspring will contain genes from the left of crossover point of parent P1 and genes from the right of cut point of parent P2 Offspring chromosome is [ ] What about the fitness of the above chromosome, and does it always represent a valid solution?

Permutation & other Crossovers Partially Mapped Crossover (PMX) dbcae | fghi hfbed | icga Result dbcaeighf and hfbedigca Order Crossover (OX) Result for the above chromosomes and cut points are dbcaehfig and hfbedcagi Cyclic Crossover (A cycle contains a common subset of alleles in the two parents that occupy a common subset of positions) dbcae | fghi hfbec | idga (three genes d,h,g have the same set of positions in both the parents and so form a cycle, similarly, e,f,c,b,i,a form another cycle. There can be more than two cycles) Result dxxxxxghx + xfbecixxa = dfbcigha Two point PMX and 2-point simple crossovers And others…

Multi-point crossovers & other variations Generate two offsprings by treating the chromosome for P2 and P1 and vice versa Example: The two parent chromosomes P 1 = [1 | | 0 1] and P 2 = [1 | | 1 0], if the two cut points are chosen after the first and fourth positions, then the offsprings generated for the two parents are O1 = [1 | | 0 1] and O2 = [1 | | 1 0] With the two­point crossover the chances of offsprings inheriting the goodness of the schemata are higher

Mutation, Generation and Selection Produces incremental random changes (with very low probability) in the offsprings by changing allele values of some genes Mutation perturbs a chromosome in order to introduce new characteristics not present in any element of the population Example: Swap two alleles, toggle one or two (in case of binary chromosomes), etc A generation is an iteration of GA where individuals in the current population are selected for crossover and offsprings are created Addition of offsprings increases size of population Number of members in a population kept is fixed (preferably) A constant number of individuals are selected from the individuals of the initial population, and the generated offsprings If M is the size of the initial population and No is the number of offsprings created in each generation then, M new parents from M+No individuals are selected A greedy selection mechanism may be used (there are several other ways to select too)

Selection for new generation A new generation is formed by selecting a fixed number of individuals from the population of parents and their offspring. Strategies include: Greedy Elitist Roulette wheel Random A combination of some/all of the above The fitness of the best individual, will be the same or better than the fitness of the best individual of the previous generation (if greedy, elitist strategy) The average fitness of the population will be same or higher than the average fitness of the previous generations The fitness of the entire population and the fitness of the best individual increase in each generation

Genetic Algorithm An initial population constructor is required to generate a certain predefined number of solutions The quality of final solution depends upon the size of the population and the initial population is constructed A mechanism to generate offsprings from parent solutions Each generation has a set of offsprings that are produced by the application of the crossover operator New alleles are introduced by applying mutation

Genetic algorithm

Genetic Algorithm

Mutation It produces incremental random changes in the offspring generated by the crossover Mutation is important because crossover alone will not guarantee to obtain a good solution Crossover is only an inheritance mechanism The mutation operator generates ‘new’ characteristics assuring that crossover, the recombination operator, will have the complete range of all possible allele values to explore Mutation increases the variability in the population

GA parameters & strategies … Size of the Initial population M typical values between 10 and 50 depend on available memory convergence rate solution quality larger M may mean a more informed search Probabilities of Crossover and Mutation Populations constructors: Initial population is constructed randomly Initial population may comprise solutions of some well known constructive heuristics. This method is called seeding and gives best solutions and faster

GA parameters & strategies Generation Gap (G) controls the percentage of the population to be replaced during each generation. In each generation M*G offsprings are generated. G=1.0 Means entire generation replaced Steady state GA, Incremental: GA in which only one crossover operation is performed per generation Termination with prejudice: each offspring replaces a randomly selected parent from those which currently have a below­average fitness Elitist strategy: the current best solution is forced to survive and included in the population for the next generation A rule of thumb, the computational requirements for both, the genetic operations, and the fitness calculation, must be low (estimates are used)

GA Applications Classical optimization problems discussed in our book: The knapsack problem TSP N­queens problem, and the Steiner tree problem Engineering problems: Graph partitioning Job shop and multiprocessor scheduling discovery of maximal distance codes for data communications test sequence generation for digital system testing VLSI cell placement, floor planning pattern matching CAD of digital systems: Technology mapping, PCB assembly planning, and High­Level Synthesis of Digital Systems Others: Optimization of pipelines systems, Medical imaging to applications, Robot trajectory generation, Parametric design of aircraft

Other issues Schema Theorem and Implicit parallelism Convergence issues Parallelization issues Population is partitioned into subpopulations and they evolve independently using sequential GA Interaction among communities allowed occasionally It represents explicit parallelism It converge faster to desirable solution It is more realistic Parallelization strategies: Island Model Stepping stone Model Neighborhood Model or cellular Model Research problems for oometer group