Chapter 4 GAs: Selected Topics. Premature Convergence Why GA cannot to find the optimal solutions in the practical applications? Coding problem Limit.

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.
CS6800 Advanced Theory of Computation
Exact and heuristics algorithms
Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm
Genetic Algorithms By: Jacob Noyes 4/16/2013. Traveling Salesman Problem Given:  A list of cities  Distances between each city Find:  Shortest path.
Evolutionary Computation (EC)
Genetic Algorithm with Limited Convergence 1 Simple Selectorecombinative GAs Scale poorely on hard problems (multimodal, deceptive, high degree of subsolution.
Genetic Algorithms Representation of Candidate Solutions GAs on primarily two types of representations: –Binary-Coded –Real-Coded Binary-Coded GAs must.
Introduction to AI (part two) Tim Watson G6.71
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
Genetic algorithms for neural networks An introduction.
Introduction to Genetic Algorithms Yonatan Shichel.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Intro to AI Genetic Algorithm Ruth Bergman 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 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
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
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.
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
What is Genetic Programming? Genetic programming is a model of programming which uses the ideas (and some of the terminology) of biological evolution to.
More on Heuristics Genetic Algorithms (GA) Terminology Chromosome –candidate solution - {x 1, x 2,...., x n } Gene –variable - x j Allele –numerical.
Introduction to GAs: Genetic Algorithms How to apply GAs to SNA? Thank you for all pictures and information referred.
2 Fundamentals of Genetic Algorithms Alexandre P. Alves da Silva and Djalma M. Falca˜o.
The Generational Control Model This is the control model that is traditionally used by GP systems. There are a distinct number of generations performed.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Genetic Algorithms Introduction Advanced. Simple Genetic Algorithms: Introduction What is it? In a Nutshell References The Pseudo Code Illustrations Applications.
Learning by Simulating Evolution Artificial Intelligence CSMC February 21, 2002.
Why do GAs work? Symbol alphabet : {0, 1, * } * is a wild card symbol that matches both 0 and 1 A schema is a string with fixed and variable symbols 01*1*
Genetic Algorithms Przemyslaw Pawluk CSE 6111 Advanced Algorithm Design and Analysis
Chapter 9 Genetic Algorithms.  Based upon biological evolution  Generate successor hypothesis based upon repeated mutations  Acts as a randomized parallel.
Edge Assembly Crossover
Genetic Algorithms Genetic algorithms provide an approach to learning that is based loosely on simulated evolution. Hypotheses are often described by bit.
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.
Chapter 12 FUSION OF FUZZY SYSTEM AND GENETIC ALGORITHMS Chi-Yuan Yeh.
2101INT – Principles of Intelligent Systems Lecture 11.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
5. Implementing a GA 4 학습목표 GA 를 사용해 실제 문제를 해결할 때 고려해야 하는 사항에 대해 이해한다 Huge number of choices with little theoretical guidance Implementation issues + sophisticated.
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 Chapter Description of Presentations
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
Selection Methods Choosing the individuals in the population that will create offspring for the next generation. Richard P. Simpson.
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.
Selection and Recombination Temi avanzati di Intelligenza Artificiale - Lecture 4 Prof. Vincenzo Cutello Department of Mathematics and Computer Science.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Breeding Swarms: A GA/PSO Hybrid 簡明昌 Author and Source Author: Matthew Settles and Terence Soule Source: GECCO 2005, p How to get: (\\nclab.csie.nctu.edu.tw\Repository\Journals-
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.
Chapter 14 Genetic Algorithms.
Genetic Algorithms.
School of Computer Science & Engineering
CSC 380: Design and Analysis of Algorithms
2 Fundamentals of Genetic Algorithms
Genetic Algorithms Chapter 3.
EE368 Soft Computing Genetic Algorithms.
Population Based Metaheuristics
CSC 380: Design and Analysis of Algorithms
Presentation transcript:

Chapter 4 GAs: Selected Topics

Premature Convergence Why GA cannot to find the optimal solutions in the practical applications? Coding problem Limit number of iterations Limit population size Super individuals Multiple copies

Combating Premature Convergence A.Sampling Mechanism

Characteristics of Function A.Termination Condition B.Population size C.Penalty

Exploitation and Exploration Exploreing the search space (population diversity) Too much  random search  no convergence Exploiting the best individuals (selective pressure) Too much  Hillclimbing  local search

Sampling Mechanism 1.Stochastic sampling Proportional selection Stochastic universal sampling 2.Deterministic sampling Truncation selection (T%) Block selection (s)

Stochastic Universal Sampling procedure Stochastic Universal Sampling begin sum  0; ptr  rand(); for k  1 to pop_size do sum  sum e k ; ‘expected value: while (sum > ptr) do select chromosome k; ptr  ptr + 1; end

3.Mixed sampling Tournament selection (tournament size = 2) Boltzmann tournament Brindle’s remainder stochastic sampling 4.Others Elitist model Expected value model ( ) Elitist expected value model Crowding factor model (CF)

Ranking Linear ranking * Nonlinear ranking

Classification of Selection Strategies Dynamic vs. Static: The selection probabilities vary across generations. Dynamic (yes)  proportionate selection Static (no)  ranking

Extinctive vs. Preservative Guarantee each individual a non-zero selection probability. Preservative (yes)  proportional selection Extinctive (no)  truncation selection

Pure? Parents are allowed to reproduce in one generation only. Pure (yes)  SGA, Not pure(no)  SGA (Elite)

Generational? The set of parents is fixed until all offspring for the next generation are completely produced. Generational (yes)  SGA; Not generational (no)  tournament

Modified Genetic Algorithm (modGA) modGA_1, modGA_2 a two-step selection algorithm: “select-parents” and “select-dead” three groups of strings: parents, dead, neutral strings Stochastic universal sampling Avoid exact multiple copies Compare with SGA, Crowding Factor Mode, and Breeder GA (BGA) selection: dynamic, preservative, generational, elitist.

modGA_1 Algorithm Procedure modGA_1 begin t  0 initialize P(t) evaluate P(t) while (not termination-condition) do begin t  t+1 select-parents from P(t-1) select-dead from P(t-1) form P(t): reproduce the parents evaluate P(t) end

modGA_2 Algorithm Procedure modGA_2 begin t  0 initialize P(t) evaluate P(t) while (not termination-condition) do begin t  t+1 select r parents from P(t-1) select pop_size - r distinct chromosomes from P(t-1) and copy them to P(t) form P(t): r parents breed r offspring evaluate P(t) end

Characteristics of the function Scaling Linear scaling Sigma truncation Power law scaling

Window Scaling For maximum problem W : all individuals in the last W generations ( W >= 0 ) For minimum problem

Termination Condition Some number of evolution cycles Pre-defined value of fitness Some variation of individuals between different generations Some percentage of the converged alleles

Stopping criterion The optimum is reached! Limit on CPU resources: Maximum number of fitness evaluations Limit on the user’s patience: After some generations without improvement

Banach Fixpoint Theorem Let 1. be a complete metric space 2. be a contractive mapping. Then there has a unique fixpoint such that for any, where and.

A set together with is a metric space,, if, for any elements, If is a metric space and, is contractive iff there is a constant such that for all

The sequence of metric space is a Cauchy sequence iff for any there is such that for all,. A metric space is complete if any Cauchy sequence has a limit.

Contractive Mapping GA (CM-GA) Procedure CM-GA Begin t  0 Initialize P(t) Evaluate P(t) While (not termination-condition) do Begin (contractive mapping f ( P(t) )  P(t+1)) t  t + 1 Select P(t) from P(t-1) Alter P(t) Evaluate P(t) if Eval( P(t-1)) >= Eval( P(t) ) ‘ then t = t - 1 End

CM-GA satisfies the assumptions of Banach fixpoint theorem: The distance The space of populations is a metric space. The metric space is complete. The iteration is contractive. CM-GA converges to population, which is a unique fixpoint in the space of all populations.

Population Size Too small  converge too quickly Too large  waste computational resources Varying population Size (GAVaPS)

Varying Population Size (GAVaPS) Procedure GAVaPS begin t = 0 initialize P(t) evaluate P(t) while (not termination-condition) do begin t = t+1 increase the age to each individual by 1 recombine P(t) ‘ evaluate P(t) ‘ p : reproduction ration remove from P(t) all individuals with age greater than their lifetime end ‘ end

Lifetime value: Proportional allocation Linear allocation Bi-linear allocation

Example Initial_size = 20 Reproduction ratio = 0.4 Mutation ratio =0.015 Crossover ratio = 0.65 Length of chromosome = 20 MaxLT =7 MinLT = 1 Termination = no progress for consecutive 20 generations Independent run = 20 times

GAVaPS(1): proportional GAVaPS(1): linear GAVaPS(1): bi-linear

Handling Constraints d b c a Solution Space

Penalty Strategy Rejecting/Death Strategy Repairing Strategy Modifying GA Strategy Penalty Strategy Others: Dynamic penalty functions Self-adaptive penalty function Combine penalty methods with repair algorithms

0-1 Knapsack Problem (example) A thief robbing a store finds n items; the ith item is worth P i dollars and weighs W i pounds, where P i and W i are integers. He wants to take as valuable a load as possible, but he can carry at most C pounds in his knapsack. What items should he take? (This is called the 0-1 knapsack problem because each item must either be taken or left behind; the thief cannot take a fractional amount of an item or take an item more than once.)

Problem Maximize Subject to

Penalty Strategy Penalty Function:

Penalty Strategies Penalty Functions: Logarithmic: Linear: Quadratic:

Repair Strategy Two different repair algorithms: Random repair Greedy repair (profit / weight)

Algorithm: Procedure Repair (x) begin knapsack-overfilled := false if then knapsack-overfilled := true while (knapsack-overfilled) do begin i := select an item from the knapsack remove the selected item from the knapsack: i.e. if then knapsack-overfilled := false end

Decoder Strategy Ordinal representation L = ( ) v = ( ) Two different decoding algorithms: Random decoding Greedy decoding (profit / weight)

Algorithm: Procedure Decode (x) begin build a list L of items WeightSum := 0 ProfitSum := 0 i := 1 while i <= n do begin j := x[i] remove the j-th item from the list L if WeightSum + W[j] <= C then begin WeigthSum := WeightSum + W[j] ProfitSum := ProfitSum + P[j] end i := i+1 end

Crossover One-point crossover Two-point crossover Multi-point crossover Segmented crossover Uniform crossover Gene pool recombination Simplex crossover

Messy Genetic Algorithm (mGA) Representation tag, length, redundant and contradictory v1 = ((7,1)(1,0)) v2 = ((3,1)(9,0)(3,1)(3,1)(3,1)) v3 = ((2,1)(2,0)(4,1)(5,0)(6,0)(7,1)(8,1)) overspecification – tie-breaking (first come, first serve) underspecification – probability / competitive templates Selection tournament Crossover splice & cut Mutation bit inversion