Advanced Search Genetic algorithm

Similar documents
Planning and Search. Genetic algorithms. Genetic algorithms 1

Genetic Algorithm for Finding Shortest Path in a Network

Local Search (Greedy Descent): Maintain an assignment of a value to each variable. Repeat:

Heuristic Optimisation

Escaping Local Optima: Genetic Algorithm

Hill Climbing. Assume a heuristic value for each assignment of values to all variables. Maintain an assignment of a value to each variable.

Advanced Search Simulated annealing

Local Search (Ch )

AI Programming CS S-08 Local Search / Genetic Algorithms

ARTIFICIAL INTELLIGENCE (CSCU9YE ) LECTURE 5: EVOLUTIONARY ALGORITHMS

Artificial Intelligence Application (Genetic Algorithm)

CS:4420 Artificial Intelligence

The k-means Algorithm and Genetic Algorithm

Genetic Algorithms Variations and Implementation Issues

Outline. Best-first search. Greedy best-first search A* search Heuristics Local search algorithms

Genetic Algorithms. Genetic Algorithms

Introduction to Evolutionary Computation

Introduction to Genetic Algorithms. Genetic Algorithms

Local Search. CS 486/686: Introduction to Artificial Intelligence Winter 2016

Genetic Algorithms. Chapter 3

Introduction to Genetic Algorithms. Based on Chapter 10 of Marsland Chapter 9 of Mitchell

Genetic Programming. and its use for learning Concepts in Description Logics

GENETIC ALGORITHM with Hands-On exercise

CS5401 FS2015 Exam 1 Key

Evolutionary Algorithms. CS Evolutionary Algorithms 1

Chapter 9: Genetic Algorithms

Suppose you have a problem You don t know how to solve it What can you do? Can you use a computer to somehow find a solution for you?

Genetic Algorithms. Kang Zheng Karl Schober

Artificial Intelligence

Search Algorithms for Regression Test Suite Minimisation

CHAPTER 4 GENETIC ALGORITHM

Genetic Algorithm Performance with Different Selection Methods in Solving Multi-Objective Network Design Problem

Local Search. CS 486/686: Introduction to Artificial Intelligence

CHAPTER 6 REAL-VALUED GENETIC ALGORITHMS

Uninformed Search Methods. Informed Search Methods. Midterm Exam 3/13/18. Thursday, March 15, 7:30 9:30 p.m. room 125 Ag Hall

Local Search and Optimization Chapter 4. Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld )

Local Search and Optimization Chapter 4. Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld )

Topological Machining Fixture Layout Synthesis Using Genetic Algorithms

Job Shop Scheduling Problem (JSSP) Genetic Algorithms Critical Block and DG distance Neighbourhood Search

[Premalatha, 4(5): May, 2015] ISSN: (I2OR), Publication Impact Factor: (ISRA), Journal Impact Factor: 2.114

Applying genetic algorithm on power system stabilizer for stabilization of power system

Artificial Intelligence

Genetic Algorithms for Vision and Pattern Recognition

What is GOSET? GOSET stands for Genetic Optimization System Engineering Tool

March 19, Heuristics for Optimization. Outline. Problem formulation. Genetic algorithms

The Binary Genetic Algorithm. Universidad de los Andes-CODENSA

Genetic Algorithm for Dynamic Capacitated Minimum Spanning Tree

Local Search and Optimization Chapter 4. Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld )

Genetic Programming: A study on Computer Language

Machine Evolution. Machine Evolution. Let s look at. Machine Evolution. Machine Evolution. Machine Evolution. Machine Evolution

The Continuous Genetic Algorithm. Universidad de los Andes-CODENSA

Automatic Generation of Test Case based on GATS Algorithm *

Automated Test Data Generation and Optimization Scheme Using Genetic Algorithm

DERIVATIVE-FREE OPTIMIZATION

Genetic Algorithms. Aims 09s1: COMP9417 Machine Learning and Data Mining. Biological Evolution. Evolutionary Computation

Introduction to Genetic Algorithms

Informed Search and Exploration

Evolutionary Computation Algorithms for Cryptanalysis: A Study

DETERMINING MAXIMUM/MINIMUM VALUES FOR TWO- DIMENTIONAL MATHMATICLE FUNCTIONS USING RANDOM CREOSSOVER TECHNIQUES

Introduction to Artificial Intelligence 2 nd semester 2016/2017. Chapter 4: Beyond Classical Search

The Genetic Algorithm for finding the maxima of single-variable functions

2017 Predictive Analytics Symposium

Multiple sequence alignment by Genetic Algorithms

A Steady-State Genetic Algorithm for Traveling Salesman Problem with Pickup and Delivery

Genetic Algorithm for Dynamic Capacitated Minimum Spanning Tree

Genetic Placement: Genie Algorithm Way Sern Shong ECE556 Final Project Fall 2004

Evolutionary Computation Part 2

Evolutionary Computation. Chao Lan

A Genetic Algorithm for Graph Matching using Graph Node Characteristics 1 2

Using Genetic Algorithm with Triple Crossover to Solve Travelling Salesman Problem

Artificial Intelligence

Introduction to Design Optimization: Search Methods

Information Fusion Dr. B. K. Panigrahi

Genetic Algorithms. PHY 604: Computational Methods in Physics and Astrophysics II

Computational Intelligence

Time Complexity Analysis of the Genetic Algorithm Clustering Method

An Evolutionary Algorithm for the Multi-objective Shortest Path Problem

GENETIC ALGORITHM VERSUS PARTICLE SWARM OPTIMIZATION IN N-QUEEN PROBLEM

CHAPTER 2 CONVENTIONAL AND NON-CONVENTIONAL TECHNIQUES TO SOLVE ORPD PROBLEM

Mutations for Permutations

Today. CS 188: Artificial Intelligence Fall Example: Boolean Satisfiability. Reminder: CSPs. Example: 3-SAT. CSPs: Queries.

Automata Construct with Genetic Algorithm

An Adaptive Hybrid Genetic-Annealing Approach

METAHEURISTICS Genetic Algorithm

Beyond Classical Search: Local Search. CMPSCI 383 September 23, 2011

CHAPTER 5 ENERGY MANAGEMENT USING FUZZY GENETIC APPROACH IN WSN

AN EVOLUTIONARY APPROACH TO DISTANCE VECTOR ROUTING

4/22/2014. Genetic Algorithms. Diwakar Yagyasen Department of Computer Science BBDNITM. Introduction

Administrative. Local Search!

The Parallel Software Design Process. Parallel Software Design

Constraint Satisfaction Problems (CSPs) Lecture 4 - Features and Constraints. CSPs as Graph searching problems. Example Domains. Dual Representations

Optimizing Flow Shop Sequencing Through Simulation Optimization Using Evolutionary Methods

Informed search algorithms. (Based on slides by Oren Etzioni, Stuart Russell)

Network Routing Protocol using Genetic Algorithms

Genetic Algorithms with Oracle for the Traveling Salesman Problem

COUPLING TRNSYS AND MATLAB FOR GENETIC ALGORITHM OPTIMIZATION IN SUSTAINABLE BUILDING DESIGN

Optimizing the Sailing Route for Fixed Groundfish Survey Stations

Spring 2007 Midterm Exam

Comparison Study of Multiple Traveling Salesmen Problem using Genetic Algorithm

Generation of Ultra Side lobe levels in Circular Array Antennas using Evolutionary Algorithms

Transcription:

Advanced Search Genetic algorithm Yingyu Liang yliang@cs.wisc.edu Computer Sciences Department University of Wisconsin, Madison [Based on slides from Jerry Zhu, Andrew Moore http://www.cs.cmu.edu/~awm/tutorials ] slide 1

GENETIC ALGORITHM http://www.genetic-programming.org/ slide 2

Evolution Survival of the fittest, a.k.a. natural selection Genes encoded as DNA (deoxyribonucleic acid), sequence of bases: A (Adenine), C (Cytosine), T (Thymine) and G (Guanine) slide 3

Evolution Survival of the fittest, a.k.a. natural selection Genes encoded as DNA (deoxyribonucleic acid), sequence of bases: A (Adenine), C (Cytosine), T (Thymine) and G (Guanine) The chromosomes from the parents exchange randomly by a process called crossover. Therefore, the offspring exhibit some traits of the father and some traits of the mother. Requires genetic diversity among the parents to ensure sufficiently varied offspring slide 4

Evolution Survival of the fittest, a.k.a. natural selection Genes encoded as DNA (deoxyribonucleic acid), sequence of bases: A (Adenine), C (Cytosine), T (Thymine) and G (Guanine) The chromosomes from the parents exchange randomly by a process called crossover. Therefore, the offspring exhibit some traits of the father and some traits of the mother. Requires genetic diversity among the parents to ensure sufficiently varied offspring A rarer process called mutation also changes the genes (e.g. from cosmic ray). Nonsensical/deadly mutated organisms die. Beneficial mutations produce stronger organisms Neither: organisms aren t improved. slide 5

Natural selection Individuals compete for resources Individuals with better genes have a larger chance to produce offspring, and vice versa slide 6

Natural selection Individuals compete for resources Individuals with better genes have a larger chance to produce offspring, and vice versa After many generations, the population consists of lots of genes from the superior individuals, and less from the inferior individuals Superiority defined by fitness to the environment slide 7

Evolution and Natural Selection Popularized by Darwin Mistake of Lamarck: environment does not force an individual to change its genes slide 8

Genetic algorithm Yet another AI algorithm based on real-world analogy Yet another heuristic stochastic search algorithm slide 9

Genetic algorithm Yet another AI algorithm based on real-world analogy Yet another heuristic stochastic search algorithm Each state s is called an individual. Often (carefully) coded up as a string. (3 2 7 5 2 4 1 1) The score f(s) is called the fitness of s. Our goal is to find the global optimum (fittest) state. At any time we keep a fixed number of states. They are called the population. Similar to beam search. slide 10

Individual encoding The DNA Satisfiability problem What is the individual encoding scheme? A B C A C D B D E C D E A C E slide 11

Individual encoding The DNA Satisfiability problem (A B C D E) = (T F T T T) A B C A C D B D E C D E A C E slide 12

Individual encoding The DNA TSP What is the individual encoding scheme? slide 13

Individual encoding The DNA TSP A-E-D-C-B-F-G-H-A slide 14

Genetic algorithm Genetic algorithm: a special way to generate neighbors, using the analogy of cross-over, mutation, and natural selection. slide 15

Genetic algorithm Genetic algorithm: a special way to generate neighbors, using the analogy of cross-over, mutation, and natural selection. Number of nonattacking pairs prob. reproduction fitness slide 16

Genetic algorithm Genetic algorithm: a special way to generate neighbors, using the analogy of cross-over, mutation, and natural selection. Number of nonattacking pairs prob. reproduction fitness Next generation slide 17

Genetic algorithm Genetic algorithm: a special way to generate neighbors, using the analogy of cross-over, mutation, and natural selection. Number of nonattacking pairs prob. reproduction fitness Next generation slide 18

Genetic algorithm Genetic algorithm: a special way to generate neighbors, using the analogy of cross-over, mutation, and natural selection. Number of nonattacking pairs prob. reproduction fitness Next generation How about for the SAT and TSP problems? slide 19

Genetic algorithm (one variety) 1. Let s 1,, s N be the current population 2. Let p i = f(s i ) / j f(s j ) be the reproduction probability 3. FOR k = 1; k<n; k+=2 parent1 = randomly pick according to p parent2 = randomly pick another randomly select a crossover point, swap strings of parents 1, 2 to generate children t[k], t[k+1] 4. FOR k = 1; k<=n; k++ Randomly mutate each position in t[k] with a small probability (mutation rate) 5. The new generation replaces the old: { s } { t }. Repeat. slide 20

Proportional selection p i = f(s i ) / j f(s j ) j f(s j ) = 5+20+11+8+6=50 p 1 =5/50=10% slide 21

Variations of genetic algorithm Parents may survive into the next generation Use ranking instead of f(s) in computing the reproduction probabilities. Cross over random bits instead of chunks. Optimize over sentences from a programming language. Genetic programming. slide 22

Genetic algorithm issues State encoding is the real ingenuity, not the decision to use genetic algorithm. Lack of diversity can lead to premature convergence and non-optimal solution Not much to say theoretically Cross over (sexual reproduction) much more efficient than mutation (asexual reproduction). Easy to implement. Try hill-climbing with random restarts first! slide 23