Genetic Algorithm. Presented by Shi Yong Feb. 1, 2007 Music McGill University

Similar documents
GENETIC ALGORITHMS. Narra Priyanka. K.Naga Sowjanya. Vasavi College of Engineering. Ibrahimbahg,Hyderabad.

Genetic Algorithm: A Search of Complex Spaces

Intelligent Techniques Lesson 4 (Examples about Genetic Algorithm)

What is Evolutionary Computation? Genetic Algorithms. Components of Evolutionary Computing. The Argument. When changes occur...

Evolutionary Algorithms

Logistics. Final exam date. Project Presentation. Plan for this week. Evolutionary Algorithms. Crossover and Mutation

Derivative-based Optimization (chapter 6)

Evolutionary Computation

CEng 713 Evolutionary Computation, Lecture Notes

FacePrints, Maze Solver and Genetic algorithms

Recessive Trait Cross Over Approach of GAs Population Inheritance for Evolutionary Optimisation

Evolutionary Algorithms - Introduction and representation Jim Tørresen

A Genetic Algorithm on Inventory Routing Problem

TIMETABLING EXPERIMENTS USING GENETIC ALGORITHMS. Liviu Lalescu, Costin Badica

CSE 590 DATA MINING. Prof. Anita Wasilewska SUNY Stony Brook

EFFECT OF CROSS OVER OPERATOR IN GENETIC ALGORITHMS ON ANTICIPATORY SCHEDULING

Changing Mutation Operator of Genetic Algorithms for optimizing Multiple Sequence Alignment

Deterministic Crowding, Recombination And Self-Similarity

Improvement of Control System Responses Using GAs PID Controller

Population and Community Dynamics. The Hardy-Weinberg Principle

Evolutionary Algorithms and Simulated Annealing in the Topological Configuration of the Spanning Tree

Data Mining for Genetics: A Genetic Algorithm Approach

A Study of Crossover Operators for Genetic Algorithms to Solve VRP and its Variants and New Sinusoidal Motion Crossover Operator

Storage Allocation and Yard Trucks Scheduling in Container Terminals Using a Genetic Algorithm Approach

Evolutionary Algorithms - Population management and popular algorithms Kai Olav Ellefsen

Energy management using genetic algorithms

Genetically Evolved Solution to Timetable Scheduling Problem

A Comparison between Genetic Algorithms and Evolutionary Programming based on Cutting Stock Problem

Designing High Thermal Conductive Materials Using Artificial Evolution MICHAEL DAVIES, BASKAR GANAPATHYSUBRAMANIAN, GANESH BALASUBRAMANIAN

Epistatic Genetic Algorithm for Test Case Prioritization

Genetic Algorithms. Lecture Notes in Transportation Systems Engineering. Prof. Tom V. Mathew

Permutation Free Encoding Technique for Evolving Neural Networks

Research and Applications of Shop Scheduling Based on Genetic Algorithms

Ultimate and serviceability limit state optimization of cold-formed steel hat-shaped beams

Genetic Algorithm with Upgrading Operator

Artificial Life Lecture 14 EASy. Genetic Programming. EASy. GP EASy. GP solution to to problem 1. EASy. Picturing a Lisp program EASy

TRAINING FEED FORWARD NEURAL NETWORK USING GENETIC ALGORITHM TO PREDICT MEAN TEMPERATURE

Genetic Algorithm to Dry Dock Block Placement Arrangement Considering Subsequent Ships

AGRO/ANSC/BIO/GENE/HORT 305 Fall, 2016 Overview of Genetics Lecture outline (Chpt 1, Genetics by Brooker) #1

Summary Genes and Variation Evolution as Genetic Change. Name Class Date

Economic Design of Control Chart

AP BIOLOGY Population Genetics and Evolution Lab

Chapter 6: SELECTION. 6.1 Introduction

Forecasting Euro United States Dollar Exchange Rate with Gene Expression Programming

Hours of service regulations in road freight transport: an optimization-based international assessment. Thibaut Vidal

Optimization of Riser in Casting Using Genetic Algorithm

Implementation of Genetic Algorithm for Agriculture System

Genetic Equilibrium: Human Diversity Student Version

Optimization of Shell and Tube Heat Exchangers Using modified Genetic Algorithm

GENETICS. I. Review of DNA/RNA A. Basic Structure DNA 3 parts that make up a nucleotide chains wrap around each other to form a

3. A student performed a gel electrophoresis experiment. The results are represented in the diagram below.

REVIEW 5: EVOLUTION UNIT. A. Top 10 If you learned anything from this unit, you should have learned:

Construction and Application of Mathematical Model Based on Intelligent Test Paper Generation Algorithm

LAB ACTIVITY ONE POPULATION GENETICS AND EVOLUTION 2017

Immune Programming. Payman Samadi. Supervisor: Dr. Majid Ahmadi. March Department of Electrical & Computer Engineering University of Windsor

Improved Crossover and Mutation Operators for Genetic- Algorithm Project Scheduling

11.1 Genetic Variation Within Population. KEY CONCEPT A population shares a common gene pool.

Designing an Effective Scheduling Scheme Considering Multi-level BOM in Hybrid Job Shop

Genotype Editing and the Evolution of Regulation and Memory

Bio 6 Natural Selection Lab

Applying Computational Intelligence in Software Testing

Gen e e n t e i t c c V a V ri r abi b li l ty Biolo l gy g Lec e tur u e e 9 : 9 Gen e et e ic I n I her e itan a ce

Evolutionary Algorithms:

Optimization of Software Testing for Discrete Testsuite using Genetic Algorithm and Sampling Technique

NEUROEVOLUTION AND AN APPLICATION OF AN AGENT BASED MODEL FOR FINANCIAL MARKET

A Systematic Study of Genetic Algorithms with Genotype Editing

Chapter 23: The Evolution of Populations. 1. Populations & Gene Pools. Populations & Gene Pools 12/2/ Populations and Gene Pools

Cognitive Radio Spectrum Management

9 Genetic Algorithms. 9.1 Introduction

Parameter identification in the activated sludge process

A distributed system for genetic programming that dynamically allocates processors

Inheritance Biology. Unit Map. Unit

Classification and Learning Using Genetic Algorithms

POPULATION GENETICS: The study of the rules governing the maintenance and transmission of genetic variation in natural populations.

Topic 11. Genetics. I. Patterns of Inheritance: One Trait Considered

Public Key Cryptography Using Genetic Algorithm

SOLVING TRAVELLING SALESMAN PROBLEM IN A SIMULATION OF GENETIC ALGORITHMS WITH DNA. Angel Goñi Moreno

The Making of the Fittest: Natural Selection in Humans

Biology 3201 Grading Standards June 2005

Evolving Bidding Strategies for Multiple Auctions

7-1. Read this exercise before you come to the laboratory. Review the lecture notes from October 15 (Hardy-Weinberg Equilibrium)

Genetic Algorithms-Based Model for Multi-Project Human Resource Allocation

USING GENETIC ALGORITHMS TO GENERATE ALTERNATIVES FOR MULTI-OBJECTIVE CORRIDOR LOCATION PROBLEMS

Genetic Algorithms in Matrix Representation and Its Application in Synthetic Data

Research Article Improving Genetic Algorithm with Fine-Tuned Crossover and Scaled Architecture

Genetic Algorithm and Neural Network

Generating architecture models using genetic algorithms

Optimizing Genetic Algorithms for Time Critical Problems

RESEARCH PLAN PROPOSAL

Genetic Algorithms using Populations based on Multisets

A Perspective on Human Genetics

Population genetics. Population genetics provides a foundation for studying evolution How/Why?

Chapter 10. DNA: The Molecule of Heredity. Lectures by Gregory Ahearn. University of North Florida. Copyright 2009 Pearson Education, Inc.

Using evolutionary techniques to improve the multisensor fusion of environmental measurements

DNA: The Hereditary Molecule

Chapter 14: Genes in Action

Evaluation of Genetic Algorithm Approach for Scheduling Optimization of Flexible Manufacturing Systems

EVOLUTIONARY ALGORITHMS CT20A6300. Timo Mantere. Lecturer, Ph.D. (Econ. & BA) Department of Electrical engineering and automation University of Vaasa

Study Guide A. Answer Key. The Evolution of Populations

Metaheuristics and Cognitive Models for Autonomous Robot Navigation

Transcription:

Genetic Algorithm Presented by Shi Yong Feb. 1, 2007 Music Tech @ McGill University

Outline Background: Biological Genetics & GA Two Examples Some Applications Online Demos* (if the time allows)

Introduction What is Genetic Algorithms (GA)? A search technique used in computing to find true or approximate solutions to optimization and search problems (Wikipedia). Suitable for searching problems with extremely huge search space that are hard or even impossible to be solved by traditional analytical methods or minimum- seeking algorithms (i.e. exhaustive search or calculus based optimization method ) Inspired by Darwin s s theory of evolution and the study of genetics such as inheritance, mutation, selection, and crossover (also called recombination), etc. Originally invented by John Holland from the University of Michigan in the early seventies(1975)

Biological Background Organism: Cell the basic part of all living organism Chromosome each cell contains the same number of chromosomes Gene a chromosome consists of genes, the traits are encoded in the form of DNAs or genetic codes Reproduction: Inheritance offspring inherits the traits (genetic code) from parents Crossover the portion of mother s s and father s s chromosomes Mutation a random change may occurs in the offspring s s genetic code Natural selection & evolution (Darwin s s theory) Fitness how successful is an individual fit for the environment, determined by genetic code. Natural selection- higher fitness value means higher survive rate Evolution on the long run, the most recent survived generation intend to have a high fitness

GA v.s Biological Genetics GA is the simulation of the natural selection and evolution on a computer An intuitive analogy [Haupt2004]

Flowchart The GA starts with an initial population that consists of a set of individuals, each individual is represented by a unique binary string or float-point value (chromosome). Individuals are evaluated (based on their fitness), selected, and mated New individuals are generated in the principles of inheritance and variation. Individuals with low fitness are discarded. The iteration continues until a convergence requirement is fulfilled [Haupt2004]

A Basic Example Problem: find the global maximum point of the following surface (2D function): fxy (, ) = xsin(4) x+ 1.1sin(2) y y 0 x 10,0 y 10

GA Steps Chromosome Encoding: chromosome = [x, y] Fitness Function: fitness = x*sin(4*x)+1.1*y*sin(2*y) First Generation: 16 random individuals (chromosomes) Selection: : 8 most-fit chromosomes survive, others are discarded Pairing: : 4 pairs of parents are randomly selected. Mating & Crossover: : offspring is produced by parents: blending method: p_child = b * p_pa + (1-b) * p_ma, p is one of the variables (x or y), b is a random number between [0, 1], same or different b for each variable. Mutation: : a few of randomly selected variables are replaced by uniform random numbers. New Generation: made up by survived parents and offspring Iteration: the above process is iterated until the global maximum m is found, or the predefined iteration number is exceeded.

Parameters Elitism: One or a few best chromosomes are copied directly to the next generation, without changes Crossover probability: between [0, 1] 0%: all offspring is exact copy of parents (but the new generation is not necessarily the same!) 100%: all offspring is made by crossover Mutation probability: between [0, 1] 0%: no individual is changed 100%: all individuals are changed (random searching) Population Size: Too small: the search space is limited Too large: slows down

A Classical Example Traveling Salesman Problem (TSP): Randomly located cities, the traveling salesman has to minimize the traveling distance while visit all of the cities Essentially an ordering problem: finding an optimal ordering for a sequence of N items Other similar problem: scheduling, routing, resource allocation, assignment A natural encoding method might be problematic! The simplest case: four cities: 1, 2, 3, 4 each with a unique bit-string encoding Considering two individuals: 3-2-1-4, 3 4, and 4-1-2-34 A crossover between the parents may produce wrong offspring, i.e. 3-2-2-3! 3 3! Random-key encoding method [Forrest1993]. In fact, for each specific GA problem, designing the encoding method is an important issue, so do the crossover and mutation methods. selection and pairing methods. Refer to: http://cs.felk.cvut.cz/~xobitko/ga/cromu.html

Random-key Method* The chromosome is encoded by a bit string, which is divided into N segments of k bits [Forrest1993] N is the same as the cities number 2 k >> N For example: N = 4, k = 4 (16 bits for each chromosome) A randomly generated chromosome: [0101 0011 0001 1001], interpreted as decimal numbers: [5-3-1-9 9 ] City numbers are encoding as the segment position, sequence of traveling route is up to the relative value of each segment. Segment 3 has the smallest value 1, so city 3 is the first. Segment 2 has the second smallest value 3, so city 2 is the second, and so on and so forth Thus, pattern [5-3-1-9] represents the tour [3-2-1-4] The offspring s s legality is guaranteed, no matter what strange chromosome (bit string) is produced via crossover and/or mutation Also called permutation encoding

Online Demos* Global Maximum of 1D Function: http://cs.felk.cvut.cz/~xobitko/ga/example_f.html Global Maximum of 2D Function: http://cs.felk.cvut.cz/~xobitko/ga/example3d.html TSP: http://cs.felk.cvut.cz/~xobitko/ga/tspexample.html

Examples in Music Tech Granular Synthesis Regulation [Fujinaga1994] Each grain's parameters (freq, amp, etc.) mapped to a chromosome's bit string GA parameters (crossover rate, mutation rate, etc.) control the change in the grain population FM Synthesis Parameters Optimization [Lai2006] FM parameters (carrier freq, mod freq, amp) mapped to a chromosome s s bit string Spectrum similarity of target sound and synthesized sound is evaluated as fitness Automatic Generation of Sound Synthesis [Garcia2000] Not only the parameters of synthesis, but the synthesis building block are regarded as genes Generates new topologies and synthesize the target sound Genetic Programming Tree coding Lisp Implementation [Forrest1993]

Examples in Creativity Music Searching: Encoding: One gene (3 bits) for each beat 000 for hold, 001 111 mapping to A to G Chromosome: [EDCDEEEholdDDDholdEGGhold[ EDCDEEEholdDDDholdEGGhold] Encoded as [101 100 011 100 101 101 101 000 100 100 100 000 101 111 111 000] Fitness Function: Objective: Subjective: Interactive ranking by ear Extension of this INTERACTIVE idea: GA composing and other genetic art New product design

Applications List General Optimization (strategy planning, robot trajectory, sequence scheduling) Modeling dynamic systems (ecologic systems, immune systems, genetic systems, social systems) Evolving LISP programs (genetic programming) Etc. Music Engineering / Composing Synthesis system design Synthesis parameters optimization Sound synchronization, animation Timbre recognition Fugue generation Jazz solos generation Waveform evolving Etc. Many others up to your imagination

References [Haupt2004] Haupt,, Randy L., and Sue Ellen Haupt.. 2004. Practical Genetic Algorithms.. 2nd Edition ed. Hoboken, New Jersey: Wiley-Interscience Interscience. [Forrest1993] Forrest, S. 1993. Genetic algorithms: principles of natural selection applied to computation. Science 261 (5123):872-878. 878. Marek Obitko s GA Homepage: http://cs.felk.cvut.cz/~xobitko/ga cs.felk.cvut.cz/~xobitko/ga/ [Fujinaga1994] Fujinaga, Ichino,, and J Vantomme.. 1994. Genetic Algorithms as a Method for Granular Synthesis Regulation. Paper read at International Computer Music Conference, 1994. [Lai2006] Lai, Y., S. K. Jeng,, D. T. Liu, and Y. C. Liu. 2006. Automated Optimization of Parameters for FM Sound Synthesis with Genetic Algorithms. In International Workshop on Computer Music and Audio Technology. [Garcia2000] Garcia, Ricardo A. 2000. Towards the Automatic Generation of Sound Synthesis Techniques: Preparatory Steps. In Audio Engineering Society 109th Convention.. Los Angeles.

Please ask Questions?