Comp215: Genetic Algorithms - Part 1

Similar documents
The Metaphor. Individuals living in that environment Individual s degree of adaptation to its surrounding environment

Optimisation and Operations Research

College of information technology Department of software

Evolutionary Computation

Introduction to Genetic Algorithm (GA) Presented By: Rabiya Khalid Department of Computer Science

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

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

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

Evolutionary Computation. Lecture 3. Evolutionary Computation. X 2 example: crossover. x 2 example: selection

Computational Intelligence Lecture 20:Intorcution to Genetic Algorithm

Genetic'Algorithms'::' ::'Algoritmi'Genetici'1

Part 1: Motivation, Basic Concepts, Algorithms

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

Artificial Evolution. FIT3094 AI, A-Life and Virtual Environments Alan Dorin

EVOLUTIONARY ALGORITHMS AT CHOICE: FROM GA TO GP EVOLŪCIJAS ALGORITMI PĒC IZVĒLES: NO GA UZ GP

Introduction To Genetic Algorithms

Evolutionary Computation. Lecture 1 January, 2007 Ivan Garibay

Machine Learning: Algorithms and Applications

Implementation of CSP Cross Over in Solving Travelling Salesman Problem Using Genetic Algorithms

Genetic Algorithms. Moreno Marzolla Dip. di Informatica Scienza e Ingegneria (DISI) Università di Bologna.

Evolutionary Algorithms - Introduction and representation Jim Tørresen

Machine Learning. Genetic Algorithms

Machine Learning. Genetic Algorithms

VISHVESHWARAIAH TECHNOLOGICAL UNIVERSITY S.D.M COLLEGE OF ENGINEERING AND TECHNOLOGY. A seminar report on GENETIC ALGORITHMS.

Evolutionary Algorithms

Reducing Premature Convergence Problem in Genetic Algorithm: Application on Travel Salesman Problem

Genetic Algorithms for Optimizations

Genetic Algorithm: An Optimization Technique Concept

Introduction Evolutionary Algorithm Implementation

IMPLEMENTATION OF AN OPTIMIZATION TECHNIQUE: GENETIC ALGORITHM

A Genetic Algorithm on Inventory Routing Problem

Available online at International Journal of Current Research Vol. 9, Issue, 07, pp , July, 2017

Genetic algorithms. History

CSE /CSE6602E - Soft Computing Winter Lecture 9. Genetic Algorithms & Evolution Strategies. Guest lecturer: Xiangdong An

What is an Evolutionary Algorithm? Presented by: Faramarz Safi (Ph.D.) Faculty of Computer Engineering Islamic Azad University, Najafabad Branch

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

Enhanced Order Crossover for Permutation Problems

Introduction to Artificial Intelligence. Prof. Inkyu Moon Dept. of Robotics Engineering, DGIST

9/17/14 LOCAL SEARCH. Today. Reading. Read AIMA Ch Objectives. Simulated Annealing Genetic algorithms Gradient ascent

Artificial Intelligence Breadth-First Search and Heuristic

Use of Genetic Algorithms in Discrete Optimalization Problems

Lesson Overview. What would happen when genetics answered questions about how heredity works?

CEng 713 Evolutionary Computation, Lecture Notes

EMM4131 Popülasyon Temelli Algoritmalar (Population-based Algorithms) Introduction to Meta-heuristics and Evolutionary Algorithms

2. Genetic Algorithms - An Overview

GENETIC ALGORITHM BASED APPROACH FOR THE SELECTION OF PROJECTS IN PUBLIC R&D INSTITUTIONS

Genetic Programming for Symbolic Regression

Processor Scheduling Algorithms in Environment of Genetics

An Effective Genetic Algorithm for Large-Scale Traveling Salesman Problems

Genetic Algorithm and Application in training Multilayer Perceptron Model

Genetic Algorithm Optimizing for the Travelling Salesman Problem with Range based Crossover

Faculty of Cognitive Sciences and Human Development

Optimization Drilling Sequence by Genetic Algorithm

Genetic Algorithms. Lecture Overview. A Brief History. Evolutionary Computation. Biological Systems: A rough guide. Biological Systems: A rough guide

Evolutionary Algorithms

FacePrints, Maze Solver and Genetic algorithms

The Genetic Algorithm CSC 301, Analysis of Algorithms Department of Computer Science Grinnell College December 5, 2016

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

10. Lecture Stochastic Optimization

Contents. Preface...VII

Genetic Algorithm: A Search of Complex Spaces

Railroad Yard Location Optimization Using A Genetic Algorithm

GENETIC ALGORITHMS. Introduction to Genetic Algorithms

Ant Colony Optimisation

CHAPTER 3 RESEARCH METHODOLOGY

Improving Differential Evolution Algorithm with Activation Strategy

Validity Constraints and the TSP GeneRepair of Genetic Algorithms

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

Evolutionary Algorithms - Population management and popular algorithms Kai Olav Ellefsen

Comparative Study of Different Selection Techniques in Genetic Algorithm

Evolution of Populations

initial set of random solutions called population satisfying boundary and/or system

Design and Implementation of Genetic Algorithm as a Stimulus Generator for Memory Verification

Chapter 1: GENETIC ALGORITHMS AN INTRODUCTION

CapSel GA Genetic Algorithms.

CHAPTER 4 LINEAR ANTENNA ARRAY SYNTHESIS USING GENETIC ALGORITHM

What is Genetic Programming(GP)?

Introduction To Genetic Algorithms

Epistatic Genetic Algorithm for Test Case Prioritization

Automated Test Case Generation: Metaheuristic Search

Genetic Algorithm: An Efficient Tool for Global Optimization

Plan for today GENETIC ALGORITHMS. Randomised search. Terminology: The GA cycle. Decoding genotypes

Pusan National University, Busandaehak-ro, Geumjeong-gu, Busan, , Korea

Performance Analysis of Multi Clustered Parallel Genetic Algorithm with Gray Value

GENETIC ALGORITHM CHAPTER 2

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

A Study on Transportation Algorithm of Bi-Level Logistics Nodes Based on Genetic Algorithm

Keywords Genetic Algorithm (GA), Evolutionary, Representation, Binary, Floating Point, Operator

Timetabling with Genetic Algorithms

Minimizing Makespan for Machine Scheduling and Worker Assignment Problem in Identical Parallel Machine Models Using GA

Section KEY CONCEPT A population shares a common gene pool.

Metaheuristics and Cognitive Models for Autonomous Robot Navigation

An introduction to evolutionary computation

Intro. ANN & Fuzzy Systems. Lecture 36 GENETIC ALGORITHM (1)

Fixed vs. Self-Adaptive Crossover-First Differential Evolution

Population and Community Dynamics. The Hardy-Weinberg Principle

Genes and Variation. Section 16-1 pgs

Memetic Algorithm with Hybrid Mutation Operator

Genetic Algorithms and Genetic Programming. Lecture 1: Introduction (25/9/09)

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

Transcription:

Comp215: Genetic Algorithms - Part 1 Mack Joyner, Dan S. Wallach (Rice University) Copyright 2016, Mack Joyner, Dan S. Wallach. All rights reserved.

Darwin s Theory of Evolution Individual organisms differ from each other Some traits inherited from ancestor Individuals best suited for environment survive produce offspring the makeup the next generation Some species change over time (mutation) new ones arise and old ones can disappear

John Henry Holland Pioneer of Genetic Algorithms (1975)

Genetic Algorithms A class of probabilistic optimization algorithms inspired by biological evolution Typically includes selection, reproduction, mutation Natural selection, common ancestor inheritance (Darwin) Genetic representation Represent an individual solution A fitness function determines the quality of the solution For pictures, fitness function could be if the picture is pretty Population of solutions exist Initial population is often generated randomly Choose best ones according to fitness function Evolution occurs with selected solutions to produce next generation

The Metaphor

The Metaphor Nature Genetic Algorithms

The Metaphor Nature Genetic Algorithms Environment Optimization problem

The Metaphor Nature Genetic Algorithms Environment Optimization problem Individuals living in that environment Feasible solutions

The Metaphor Nature Genetic Algorithms Environment Optimization problem Individuals living in that environment Feasible solutions Individual s degree of adaptation Fitness function

The Metaphor Nature Genetic Algorithms Environment Optimization problem Individuals living in that environment Feasible solutions Individual s degree of adaptation Fitness function A population of organisms (species) A set of feasible solutions

The Metaphor Nature Genetic Algorithms Environment Optimization problem Individuals living in that environment Feasible solutions Individual s degree of adaptation Fitness function A population of organisms (species) A set of feasible solutions Selection, reproduction, mutation Selection, recombination, mutation

The Metaphor Nature Genetic Algorithms Environment Optimization problem Individuals living in that environment Feasible solutions Individual s degree of adaptation Fitness function A population of organisms (species) A set of feasible solutions Selection, reproduction, mutation Evolution of populations to suit their environment Selection, recombination, mutation Iteratively applying a set of stochastic operators on a set of feasible solutions

Genetic Algorithm Applications (many more) Facial composite Traditional use: sketch artist Later: select individual features GA: evolve from groups of pictures Evolutionary Game Theory Prisoner s Dilemma Study cooperative behavior Applications: animals, economics, sports, politics.

Genetic Algorithm Applications (many more) Facial composite Traditional use: sketch artist Later: select individual features GA: evolve from groups of pictures Evolutionary Game Theory Iterate several times Prisoner s Dilemma Study cooperative behavior Applications: animals, economics, sports, politics.

Genetic Algorithm Applications (many more) Facial composite Traditional use: sketch artist Later: select individual features GA: evolve from groups of pictures Evolutionary Game Theory Iterate several times Prisoner s Dilemma Study cooperative behavior Applications: animals, economics, sports, politics. Years in jail

Genetic Algorithm Applications (many more) Facial composite Traditional use: sketch artist Later: select individual features GA: evolve from groups of pictures Evolutionary Game Theory Prisoner s Dilemma Study cooperative behavior Applications: animals, economics, sports, politics. Iterate several times Example: Cold War Years in jail

Why Use Genetic Algorithms? Find a good solution from many possible good solutions Don t need the best solution Not sure which solution to evaluate first Start with a random set a possible solutions For some problems, finding the best solution may be impractical Large, unknown search space

Traveling Salesman Problem Visit every city exactly once and return to starting point Cost associated with visiting a city Goal: route with minimum cost

Traveling Salesman Problem Visit every city exactly once and return to starting point Cost associated with visiting a city Goal: route with minimum cost http://xkcd.com/399

Traveling Salesman Problem Visit every city exactly once and return to starting point Cost associated with visiting a city Goal: route with minimum cost NP-complete problem http://xkcd.com/399

Traveling Salesman Problem Visit every city exactly once and return to starting point Cost associated with visiting a city Goal: route with minimum cost NP-complete problem Time to find optimal solution increases quickly as cities increase http://xkcd.com/399

Traveling Salesman Problem Visit every city exactly once and return to starting point Cost associated with visiting a city Goal: route with minimum cost NP-complete problem Typically solved with heuristic Time to find optimal solution increases quickly as cities increase http://xkcd.com/399

Genetic Algorithm Search Start with a group of the possible solutions Initially, randomly pick the candidate solutions Select best solutions to use for next generation Get rid of the worse ones Use recombination to get new solutions Decompose two solutions and randomly mix parts Forms new candidate solutions (children) Mutate solutions by randomly changing candidate solution

TSP: Selection A vector v = (i1 i2 in) represents a tour (v is a permutation of {1,2,,n}) Fitness f of a solution is the inverse cost of the corresponding tour Higher the value, the better the solution Initially use a random sample of permutations of {1,2,.,n} Apply fitness to determine which solutions to use for next generation

TSP: Reproduction Build offspring Choose tour subsequence from 1st parent Preserve relative city order from 2nd parent p1 = (1 2 3 4 5 6 7 8 9) p2 = (4 5 2 1 8 7 6 9 3) o1 = (x x x 4 5 6 7 x x) o2 = (x x x 1 8 7 6 x x)

TSP: Reproduction Build offspring Choose tour subsequence from 1st parent Preserve relative city order from 2nd parent p1 = (1 2 3 4 5 6 7 8 9) p2 = (4 5 2 1 8 7 6 9 3) o1 = (x x x 4 5 6 7 x x) o2 = (x x x 1 8 7 6 x x) Copy segment between cut points to offspring

TSP: Reproduction Start from the second cut point of one parent Copy cities from other parent in same order Skip ones already in offspring p1 = (1 2 3 4 5 6 7 8 9) p2 = (4 5 2 1 8 7 6 9 3) o1 = (x x x 4 5 6 7 x x) o2 = (x x x 1 8 7 6 x x)

TSP: Reproduction Start from the second cut point of one parent Copy cities from other parent in same order Skip ones already in offspring p1 = (1 2 3 4 5 6 7 8 9) p2 = (4 5 2 1 8 7 6 9 3) (9 3 4 5 2 1 8 7 6) (9 3 2 1 8) o1 = (x x x 4 5 6 7 x x) o2 = (x x x 1 8 7 6 x x)

TSP: Reproduction Start from the second cut point of one parent Copy cities from other parent in same order Skip ones already in offspring p1 = (1 2 3 4 5 6 7 8 9) p2 = (4 5 2 1 8 7 6 9 3) (9 3 4 5 2 1 8 7 6) (9 3 2 1 8) o1 = (x x x 4 5 6 7 x x) (2 1 8 4 5 6 7 9 3) o2 = (x x x 1 8 7 6 x x)

TSP: Reproduction Similarly for the 2nd offspring. p1 = (1 2 3 4 5 6 7 8 9) p2 = (4 5 2 1 8 7 6 9 3) o1 = (x x x 4 5 6 7 x x) (2 1 8 4 5 6 7 9 3) o2 = (x x x 1 8 7 6 x x) (3 4 5 1 8 7 6 9 2)

TSP: Mutation Reverse substring between two randomly selected points in the path Example: (1 2 3 4 5 6 7 8 9) is changed into (1 2 7 6 5 4 3 8 9)

TSP: Mutation Reverse substring between two randomly selected points in the path Example: (1 2 3 4 5 6 7 8 9) is changed into (1 2 7 6 5 4 3 8 9) Simple inversion guarantees that the resulting offspring is also a legal tour

Genetic Algorithms: Pretty Pictures A picture is really just a function: (x, y) -> (R, G, B) Selection: User picks the prettiest ones Reproduction: Combine two function trees to create a new tree Mutation: Randomly change a node in the tree to something else Artificial Evolution for Computer Graphics, Karl Sims, 1991

Genetic Algorithms: Pretty Pictures

Genetic Algorithms: Pretty Pictures

Genetic Algorithms: Pretty Pictures

Live Demo: Pretty Pictures on the Web http://gregstoll.dyndns.org/ppga/#details