Derivative-Free Optimization: Genetic Algorithms Dan Simon Cleveland State University 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

CS6800 Advanced Theory of Computation
Introduction to Genetic Algorithms Speaker: Moch. Rif’an
Student : Mateja Saković 3015/2011.  Genetic algorithms are based on evolution and natural selection  Evolution is any change across successive generations.
Genetic Algorithms By: Anna Scheuler and Aaron Smittle.
Tuesday, May 14 Genetic Algorithms Handouts: Lecture Notes Question: when should there be an additional review session?
Biologically Inspired AI (mostly GAs). Some Examples of Biologically Inspired Computation Neural networks Evolutionary computation (e.g., genetic algorithms)
Genetic Algorithms Representation of Candidate Solutions GAs on primarily two types of representations: –Binary-Coded –Real-Coded Binary-Coded GAs must.
Institute of Intelligent Power Electronics – IPE Page1 Introduction to Basics of Genetic Algorithms Docent Xiao-Zhi Gao Department of Electrical Engineering.
Monte Carlo Methods and the Genetic Algorithm Definitions and Considerations John E. Nawn MAT 5900 March 17 th, 2011.
1 Lecture 8: Genetic Algorithms Contents : Miming nature The steps of the algorithm –Coosing parents –Reproduction –Mutation Deeper in GA –Stochastic Universal.
Introduction to Genetic Algorithms Yonatan Shichel.
Genetic Algorithms GAs are one of the most powerful and applicable search methods available GA originally developed by John Holland (1975) Inspired by.
13 Basics of Genetic Algorithms and some possibilities Peter Spijker Technische Universiteit Eindhoven Department of Biomedical Engineering Division of.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
Evolution, dispersal of genetics and Fisher’s equation.
Tutorial 1 Temi avanzati di Intelligenza Artificiale - Lecture 3 Prof. Vincenzo Cutello Department of Mathematics and Computer Science University of Catania.
Genetic Algorithms Nehaya Tayseer 1.Introduction What is a Genetic algorithm? A search technique used in computer science to find approximate solutions.
7/2/2015Intelligent Systems and Soft Computing1 Lecture 9 Evolutionary Computation: Genetic algorithms Introduction, or can evolution be intelligent? Introduction,
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
Genetic Algorithm.
Evolutionary Intelligence
© Negnevitsky, Pearson Education, CSC 4510 – Machine Learning Dr. Mary-Angela Papalaskari Department of Computing Sciences Villanova University.
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
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"
Genetic Algorithms Genetic algorithms imitate a natural optimization process: natural selection in evolution. Developed by John Holland at the University.
G ENETIC A LGORITHMS Steve Foster. I NTRODUCTION Genetic Algorithms are based on the principals of evolutionary biology in order to find solutions to.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Derivative Free Optimization G.Anuradha. Contents Genetic Algorithm Simulated Annealing Random search method Downhill simplex method.
Machine Learning 1 Machine Learning 1 Genetic Algorithms.
© Negnevitsky, Pearson Education, Lecture 9 Evolutionary Computation: Genetic algorithms Introduction, or can evolution be intelligent? Introduction,
15/06/2003NORPIE 2004, Trondheim1 Genetic Optimization of Electric Machines, a State of the Art Study S. E. Skaar, R. Nilssen.
Learning by Simulating Evolution Artificial Intelligence CSMC February 21, 2002.
 Negnevitsky, Pearson Education, Lecture 9 Evolutionary Computation: Genetic algorithms n Introduction, or can evolution be intelligent? n Simulation.
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.
Chapter 12 FUSION OF FUZZY SYSTEM AND GENETIC ALGORITHMS Chi-Yuan Yeh.
Parallel Genetic Algorithms By Larry Hale and Trevor McCasland.
Solving Function Optimization Problems with Genetic Algorithms September 26, 2001 Cho, Dong-Yeon , Tel:
Innovative and Unconventional Approach Toward Analytical Cadastre – based on Genetic Algorithms Anna Shnaidman Mapping and Geo-Information Engineering.
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
Genetic Algorithms MITM613 (Intelligent Systems).
Neural Networks And Its Applications By Dr. Surya Chitra.
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.
CAP6938 Neuroevolution and Artificial Embryogeny Evolutionary Comptation Dr. Kenneth Stanley January 23, 2006.
1 Comparative Study of two Genetic Algorithms Based Task Allocation Models in Distributed Computing System Oğuzhan TAŞ 2005.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
Genetic Algorithm(GA)
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
Presented By: Farid, Alidoust Vahid, Akbari 18 th May IAUT University – Faculty.
Hirophysics.com The Genetic Algorithm vs. Simulated Annealing Charles Barnes PHY 327.
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.
Power Magnetic Devices: A Multi-Objective Design Approach
Introduction to Genetic Algorithms
Genetic Algorithms.
Dr. Kenneth Stanley September 11, 2006
Artificial Intelligence Methods (AIM)
Artificial Intelligence Project 2 Genetic Algorithms
Intelligent Systems and Soft Computing
Basics of Genetic Algorithms (MidTerm – only in RED material)
GENETIC ALGORITHMS & MACHINE LEARNING
Basics of Genetic Algorithms
Genetic algorithms: case study
Genetic Algorithm Soft Computing: use of inexact t solution to compute hard task problems. Soft computing tolerant of imprecision, uncertainty, partial.
Presentation transcript:

Derivative-Free Optimization: Genetic Algorithms Dan Simon Cleveland State University 1

Outline 1.Biological Genetics 2.Genetic Algorithm: A Short History 3.Genetic Algorithm Example: Robot Design 4.Genetic Algorithm Options 5.Genetic Algorithm Example: Ackley Function 6.Continuous Genetic Algorithm 7.GA Code Walk-Through 2

Charles Darwin Born in England, 1809 “You care for nothing but shooting, dogs, and rat-catching; and you will be a disgrace to yourself and all your family.” Medicine? Theology? Biology? 3

Charles Darwin H. M. S. Beagle: 1831–1836 The Origin of Species: 1836–… Paper from Alfred Wallace: 1858 Presentation of both papers by Darwin: 1858 The Origin of Species: 1859 “Only” 500 pages The first printing (1,250 copies) sold out the first day 4

Darwin’s Theory of Natural Selection Survival of the fittest Controversial – Anti-Christian? – How are traits passed to children? Misconceptions – Traits of parents could be blended in children – Acquired traits could be passed to children 5

Gregor Mendel Born in 1822 in Czech. Poor farming family Joined Augustinian monastery at age 21 Studied botany (peas) Discovered the idea of genes, heredity, and dominance His publication (1865) was ignored at the time 6

Genetic Algorithms Princeton, John von Neumann Nils Barricelli (mathematician), 1953, artificial life 1954: “Esempi numerici di processi di evoluzione” (Numerical models of evolutionary processes) 7

Genetic Algorithms Alexander Fraser (biologist) – England, Hong Kong, New Zealand, Scotland, Australia – 1957: “Simulation of genetic systems by automatic digital computers” Hans-Joachim Bremermann – University of Washington, UC Berkeley – 1958: “The evolution of intelligence” 8

Genetic Algorithms George Box (statistician) – Imperial Chemical Industries (England) – 1957: “Evolutionary operation: A method for increasing industrial productivity” “Essentially, all models are wrong, but some are useful” (1987) George Friedman, UCLA – 1956: “Selective Feedback Computers for Engineering Synthesis and Nervous System Analogy” (Master’s thesis) 9

GA for Robot Design 000 = 5-volt stepper 001 = 9-volt stepper 010 = 12-volt stepper 011 = 24-volt stepper 100 = 5-volt servo 101 = 9-volt serv 110 = 12-volt serv 111 = 24-volt servo 000 = 12-volt NiCd battery 001 = 24-volt NiCd battery 010 = 12-volt Li-ion battery 011 = 24-volt Li-ion battery 100 = 12-volt solar panel 101 = 24-volt solar panel 110 = 12-volt fusion reactor 111 = 24-volt fusion reactor encoding for motor specencoding for power spec 10

GA for Robot Design Fitness = Range (hrs) + Power (W) – Weight (kg) Experiment or simulation We are combining incompatible units Randomly create initial population: Each individual is represented with a chromosome which has two genes 11

GA for Robot Design Individual 1 chromosome = Individual 1’s motor genotype is 010, and its motor phenotype is “12-V stepper” crossover point Two ParentsTwo Children 12

GA for Robot Design How do we decide which individuals to mate? Fitness proportional selection, AKA roulette- wheel selection Example: four individuals with fitness values 10, 20, 30, and 40 Individual 1 Individual 2 Individual 4 Individual

A Simple Genetic Algorithm Parents  {randomly generated population} While not (termination criterion) Calculate the fitness of each parent in the population Children =  While |Children| < |Parents| Use fitnesses to select a pair of parents for mating Mate parents to create children c 1 and c 2 Children  Children  { c 1, c 2 } Loop Randomly mutate some of the children Parents  Children Next generation 14

GA Termination Criteria 1.Generation count 2.Fitness threshold 3.Fitness improvement threshold 15

Critical GA Design Parameters 1.Elitism 2.Encoding scheme 3.Fitness function and scaling 4.Population size 5.Selection method (tournament, rank, …) 6.Mutation rate 7.Crossover type 8.Speciation / incest 16

GA Schematic SelectionCrossoverMutation Current generation Next generation Elitism

Encoding Binary: Neighboring phenotypes have dissimilar genotypes, and vice versa Gray: Neighboring phenotypes have similar genotypes x = -5 : 0.1 : 2 plot(x, x.^4 + 5*x.^3 + 4*x.^2 – 4*x + 1); 18

Gray Codes Bell Labs researcher Frank Gray introduced the term reflected binary code in his 1947 patent application. 19

Ackley Function Minimization problem; global minimum = 0 (at x = y = 0) Can be generalized to any number of dimensions 20

Ackley Function 100 Monte Carlo simulations Population size = 50 Mutation rate = 2% Crossover probability = 100% Single point crossover Encoding: binary or gray Elitism: 0 or 2 21

Ackley Function 22

Ackley Function Average of 100 Monte Carlo simulations 23

Ackley Function 24

Continuous Genetic Algorithms Parents crossover: [1.23, 4.76, 2.19, 7.63] [9.73, 1.09, 4.87, 8.28] Children: [1.23, 1.09, 4.87, 8.28] [9.73, 4.76, 2.19, 7.63] crossover point Usually, GAs for continuous problems are implemented as continuous GAs 25

Continuous Genetic Algorithms Blended crossover: Select a random number r  [0, 1] Genotype operation: c = p 1 + r(p 2 —p 1 ) Parent 1 Parent 2 Child 26

Continuous Genetic Algorithms Mutation: Suppose x = [9.73, 1.09, 4.87, 8.28] Problem dimension = 4 r  random number  [0, 1] If r < p m then i  random integer  [1, 4] r  random number  [0, 1] x(i)  x min + r(x max – x min ) end if Aggressive Mutation 27

Continuous Genetic Algorithms Mutation: Suppose x = [9.73, 1.09, 4.87, 8.28] Problem dimension = 4 r  random number  [0, 1] If r < p m then i  random integer  [1, 4] r  Gaussian random number  N(0,  ) x(i)  x(i) + r end if Gentle Mutation 28

Rastrigin Benchmark Function Global minimum f(x) = 0 at x i = 0 for all i p dimensions Lots of local minima 29

Rastrigin Benchmark Function Population size = 50 Mutation rate = 1% Crossover prob. = 100% Single point crossover Elitism = 2 15 dimensions 30 GA.m