Using GA’s to Solve Problems

Slides:



Advertisements
Similar presentations
Algorithm Design Techniques
Advertisements

Genetic Algorithm.
CS6800 Advanced Theory of Computation
Exact and heuristics algorithms
Tetris and Genetic Algorithms Math Club 5/30/2011.
Genetic Algorithms By: Anna Scheuler and Aaron Smittle.
Genetic Algorithms Representation of Candidate Solutions GAs on primarily two types of representations: –Binary-Coded –Real-Coded Binary-Coded GAs must.
A GENETIC ALGORITHM APPROACH TO SPACE LAYOUT PLANNING OPTIMIZATION Hoda Homayouni.
Non-Linear Problems General approach. Non-linear Optimization Many objective functions, tend to be non-linear. Design problems for which the objective.
1 IOE/MFG 543 Chapter 14: General purpose procedures for scheduling in practice Section 14.5: Local search – Genetic Algorithms.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Data Mining CS 341, Spring 2007 Genetic Algorithm.
Population New Population Selection Crossover and Mutation Insert When the new population is full repeat Generational Algorithm.
A Hybrid Heuristic for the Traveling Salesman Problem R. Baraglia, J. I. Hildalgo, R. Perego CMPSC 580, Spring 2006.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
Research Trends in AI Maze Solving using GA Muhammad Younas Hassan Javaid Danish Hussain
Local Search and Stochastic Algorithms
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,
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Genetic Algorithm.
Evolutionary Intelligence
Genetic algorithms Charles Darwin "A man who dares to waste an hour of life has not discovered the value of life"
HOW TO MAKE A TIMETABLE USING GENETIC ALGORITHMS Introduction with an example.
More on Heuristics Genetic Algorithms (GA) Terminology Chromosome –candidate solution - {x 1, x 2,...., x n } Gene –variable - x j Allele –numerical.
The Generational Control Model This is the control model that is traditionally used by GP systems. There are a distinct number of generations performed.
Derivative Free Optimization G.Anuradha. Contents Genetic Algorithm Simulated Annealing Random search method Downhill simplex method.
 Negnevitsky, Pearson Education, Lecture 9 Evolutionary Computation: Genetic algorithms n Introduction, or can evolution be intelligent? n Simulation.
 Based on observed functioning of human brain.  (Artificial Neural Networks (ANN)  Our view of neural networks is very simplistic.  We view a neural.
Introduction to Genetic Algorithms. Genetic Algorithms We’ve covered enough material that we can write programs that use genetic algorithms! –More advanced.
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
ECE 103 Engineering Programming Chapter 52 Generic Algorithm Herbert G. Mayer, PSU CS Status 6/4/2014 Initial content copied verbatim from ECE 103 material.
Chapter 12 FUSION OF FUZZY SYSTEM AND GENETIC ALGORITHMS Chi-Yuan Yeh.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
Genetic Algorithms. The Basic Genetic Algorithm 1.[Start] Generate random population of n chromosomes (suitable solutions for the problem) 2.[Fitness]
Solving Function Optimization Problems with Genetic Algorithms September 26, 2001 Cho, Dong-Yeon , Tel:
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
N- Queens Solution with Genetic Algorithm By Mohammad A. Ismael.
Neural Networks And Its Applications By Dr. Surya Chitra.
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.
Agenda  INTRODUCTION  GENETIC ALGORITHMS  GENETIC ALGORITHMS FOR EXPLORING QUERY SPACE  SYSTEM ARCHITECTURE  THE EFFECT OF DIFFERENT MUTATION RATES.
Applications of Genetic Algorithms By Harry Beddo 3 rd Quarter.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
Genetic Algorithm(GA)
Evolutionary Design of the Closed Loop Control on the Basis of NN-ANARX Model Using Genetic Algoritm.
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
Genetic Algorithms and Evolutionary Programming A Brief Overview.
July 6, 2016Knowledge-Based System, Lecturer # 09 1 Knowledge Based System Lecture #09 Dr. Md. Hasanuzzaman Assistant Professor Department of Computer.
Genetic Algorithm (Knapsack Problem)
Introduction to Genetic Algorithms
Chapter 14 Genetic Algorithms.
Genetic Algorithms.
Genetic Algorithms.
Dr. Kenneth Stanley September 11, 2006
USING MICROBIAL GENETIC ALGORITHM TO SOLVE CARD SPLITTING PROBLEM.
Artificial Intelligence Project 2 Genetic Algorithms
An evolutionary approach to solving complex problems

Genetic Algorithms CPSC 212 Spring 2004.
CS621: Artificial Intelligence
Modified Crossover Operator Approach for Evolutionary Optimization
EE368 Soft Computing Genetic Algorithms.
Introduction to Genetic Algorithm and Some Experience Sharing
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.
Steady state Selection
GA.
Presentation transcript:

Using GA’s to Solve Problems Amy Hoover

What is a Genetic Algorithm? Genetic Algorithm – “a search technique … to find exact or approximate solutions to optimization and search problems.” -Wikipedia

Components of a GA Chromosome Fitness function Mutation Crossover How we represent the individual Fitness function How we rate the individual Mutation Crossover

How do GAs work? Randomize initial population (of 5) Note: These were arbitraily picked A = 10111 B = 11100 C = 00110 D = 00001 E = 11011

Evaluate the fitness of each individual (A, B, C, D, E) in the population A = 10111 (fitness = 1+ 0 + 1 + 1+ 1 = 4) B = 11100 (fitness = 1 + 1 + 1+ 0 + 0 = 3) C = 00110 (fitness = 0 + 0 + 1+ 1 + 0 = 2) D = 00001 (fitness = 0 + 0 + 0+ 0 + 1 = 1) E = 11011 (fitness = 1 + 1 + 0+ 1 + 1 = 4)

Repeat Select parents Who would we choose from the previous generation? (A and E) Mate the parents, they plus their offspring form next generation How do we mate them? What will the next generation look like?

Next Generation A = 10111 (parent 1 clone) E = 11011 (parent 2 clone) F = ? G = ? H = ? Which generation are F, G, and H from?

Next Generation A = 10111 (parent 1) E = 11011 (parent 2) F = ? G = ? H = ? Which generation are F, G, and H from? How can we make F, G, H?

Crossover and Mutation Let’s make F, G, H (Gen 1 from initial generation 0) A = 10111 (parent 1) E = 11011 (parent 2) F = 11111 (Mutate A) G = 11011(Crossover AE 2nd 3rd bits of E on A, also clone E ) H = 10011 (Crossover AE 3rd and 4th of E) Which generation are F, G, and H from? How can we make F, G, H?

Calculate the fitness of each individual A = 10111 (parent 1) E = 11011 (parent 2) F = 11111 (Mutate A) G = 11011 (Crossover AE) H = 10011 (Crossover AE)

Calculate the fitness of each individual G = 11011 = 4 H = 10011 = 3 Select parents (F,G)

Repeat Select parents (A, E, F, G, H) How do we pick the parents? Pick the top 2 from A, E, F, G, H Mate parents (crossover, mutation) Calculate fitness (Repeat Select parents…)

Example Problem: I want to maximize the number of 0’s in a bit string (I want A = 00000) Let’s work through the psuedo code

Example Problem: I want to maximize the number of 0s in a bit string (I want A = 00000) Step 1: Randomize the initial population A = 01101 B = 11011 C = 01010 D = 01111 E = 11111

Example Initial Population (gen 0) B = 11011 C = 01010 D = 01111 E = 11111 Calculate fitness (recall 0’s are good, 1’s are bad, we want to reward good genes!)

Example Initial Population Reward 0’s, not 1’s B = 11011 = 0 + 0 + 1 + 0 + 0 = 1 C = 01010 = 1 + 0 + 1 + 0 + 1 = 3 D = 01111 = 1 + 0 + 0 + 0 +0 = 1 E = 11111 = 0 + 0 + 0 + 0 +0 = 0 Reward 0’s, not 1’s

Example Initial Population A = 01101 = 1 + 0 + 0 + 1 + 0 = 2 B = 11011 = 0 + 0 + 1 + 0 + 0 = 1 C = 01010 = 1 + 0 + 1 + 0 + 1 = 3 D = 01111 = 1 + 0 + 0+ 0+ 0 = 1 E = 11111 = 0 + 0 + 0 + 0 + 0 = 0

Example Who should our parents be? (A and C)

Example Who should our parents be? What next? C = 01010 = 1 + 0 + 1 + 0 + 1 = 3 What next?

Mating! A = 01101 = 1 + 0 + 0 + 1 + 0 = 2 C = 01010 = 1 + 0 + 1 + 0 + 1 = 3 F = 01100 = 3 G = 01110 = 2 H = 01011 = 2

Calculate Fitness! A = 01101 = 1 + 0 + 0 + 1 + 0 = 2 G = 01110 = 2 H = 01011 = 2

Pick the top two! A = 01101 = 1 + 0 + 0 + 1 + 0 = 2 F = 01100 = 3 G = 01110 = 2 H = 01011 = 2 Parents, C and F

Start Over! C = 01010 = 1 + 0 + 1 + 0 + 1 = 3 F = 01100 = 3 G = ? H = ? I = ?