Presentation is loading. Please wait.

Presentation is loading. Please wait.

Genetic Algorithms and Their Applications John Paxton Montana State University August 14, 2003.

Similar presentations


Presentation on theme: "Genetic Algorithms and Their Applications John Paxton Montana State University August 14, 2003."— Presentation transcript:

1 Genetic Algorithms and Their Applications John Paxton Montana State University August 14, 2003

2 Glacier National Park

3 Natural Evolution more offspring are produced than can survive the offspring are not all the same the offspring best suited to the environment are more likely to survive

4 Genetic Algorithm 1. Generate a population of chromosomes of size N 2. Calculate the fitness of each chromosome 3. If the termination condition is satisfied, stop. 4. Select a pair of chromosomes for mating 5. With the crossover probability, p c, produce two offspring via crossover.

5 Genetic Algorithm 6. With the mutation probability, p m, randomly change the gene values in the two offspring. 7. Place the resulting chromosomes in the new population. 8. If the population size is not yet N, go to step 4. 9. Replace the current population with the new population, go to step 2.

6 Termination Condition Stop after a set number of generations. Stop after n generations have passed without “significant” improvement” Stop after a “good enough” solution has been produced

7 Representation Maximize f(x) = 7x – x 2 where x is an integer in [0.. 7]. Possible chromosomes: 000, 001, 010, 011, 100, 101, 110, 111

8 Initial Population 010 100 000 001

9 Fitness Function ChromosomeFitness (7x – x 2 ) 01010 10110 0000 0016

10 Selection Based on fitness of individuals “Roulette Wheel” selection is very common FitnessSelection Probability 1011/30 1011/30 01/30 67/30

11 Crossover Operator Old –010 (fitness 10) –101 (fitness 10) New –011 (fitness 12) –100 (fitness 12)

12 Crossover Operator Crossover is a very effective search technique. It conducts a parallel search through the most promising building blocks. Building blocks with above average fitness occur more frequently in the next generation!

13 Crossover Operator Fitness Space Generation 1 Generation 2

14 Convergence A nasty problem that must be overcome!

15 Mutation Operator Old –011 New –001 Purpose: Genetic Diversity

16 Mutation Operator Generation 1 Generation 2

17 Elitism Copy the n most fit chromosomes from the previous generation into the new one. Typically, n is 1.

18 Custom Operators Traveling Salesperson Problem –Chromosome 1: (1 2 3 4 5) –Chromsome 2: (2 4 5 3 1) Custom Crossover –Chromosome 1: (1 2 4 5 3) –Chromosome 2: (2 4 1 3 5)

19 Many Decisions Representation of Individuals Population Size Genetic Operators How to Use Operators Stopping Conditions Fitness Function

20 Genetic Programming Generation 1 –(* (+ a a) (- a b) 2) –(- 2 a) Generation 2 –(* 2 (- a b) 2) –(- (+ a a) a)

21 Genetic Programming Select terminals Select primitive functions Define the fitness function Decide on the parameters (crossover probability, etc.) Decide the stopping condition

22 Applications There are numerous applications of genetic algorithms.

23 Artificial Life Framsticks is a three-dimensional life simulation project. Both the physical structure of creatures and their control systems are evolved. Evolutionary algorithms are used with selection, crossover and mutation. Finite element methods are used for simulation. Both spontaneous and directed evolutions are possible.

24 Biocomputing Biocomputing, or Bioinformatics, is the field of biology dedicated to the automatic analysis of experimental data (mostly sequencing data). Several approaches to specific biocomputing problems have been described that involve the use of GA, GP and simulated annealing. There are three main domains to which GA have been applied in Bioinformatics: protein folding, RNA folding, sequence alignment.

25 Cellular Automata Nature abounds in systems involving the actions of simple, locally- interacting components, that give rise to coordinated global behavior.

26 Evolvable Hardware The idea of evolving machines, whose origins can be traced to the cybernetics movement of the 1940s and the 1950s, has recently resurged in the form of the nascent field of bio-inspired systems and evolvable hardware.

27 Game Playing GAs can be used to evolve behaviors for playing games. Work in evolutionary game theory typically surrounds the evolution of a population of players who meet randomly to play a game in which they each must adopt one of a limited number of moves. For example, poker.

28 Job Shop Scheduling The Job-Shop Scheduling Problem (JSSP) is a very difficult NP- complete problem which, so far, seems best addressed by sophisticated branch and bound search techniques. GA researchers, however, are continuing to make progress on it.

29 Nonlinear Filtering New connections between genetic algorithms and Non Linear Filtering Theory have been established. GAs have already been successfully applied to a large class of non-linear filtering problems such as radar / sonar / GPS signal processing. For example, the military uses GAs to identify radar signals.

30 Timetabling This has been addressed quite successfully with GAs. A very common manifestation of this kind of problem is the timetabling of exams or classes in Universities, etc.

31 Other Applications Genetic Programming. Neural Networks. Jazz. Find good and bad “riffs” for jazz improvisation (Al Biles). Stock companies. Predict stock market. Oil pipeline throughput.

32 Targets for GA Research Using GAs as general problem solving tools Finding the “perfect” GA for a given class of problems Understanding the behavior of GAs Using GAs for teaching and learning Using GAs for increasing cooperation between disciplines

33 Questions?


Download ppt "Genetic Algorithms and Their Applications John Paxton Montana State University August 14, 2003."

Similar presentations


Ads by Google