Artificial Intelligence Project 2 Genetic Algorithms

Slides:



Advertisements
Similar presentations
CS6800 Advanced Theory of Computation
Advertisements

Optimization Problem with Simple Genetic Algorithms Cho, Dong-Yeon
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.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
Genetic Algorithms Nehaya Tayseer 1.Introduction What is a Genetic algorithm? A search technique used in computer science to find approximate solutions.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Medical Diagnosis via Genetic Programming Project #2 Artificial Intelligence: Biointelligence Computational Neuroscience Connectionist Modeling of Cognitive.
Genetic Algorithm.
Genetic Algorithms and Ant Colony Optimisation
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Intro. ANN & Fuzzy Systems Lecture 36 GENETIC ALGORITHM (1)
Genetic algorithms Charles Darwin "A man who dares to waste an hour of life has not discovered the value of life"
Biological data mining by Genetic Programming AI Project #2 Biointelligence lab Cho, Dong-Yeon
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Computational Complexity Jang, HaYoung BioIntelligence Lab.
Genetic Algorithms Siddhartha K. Shakya School of Computing. The Robert Gordon University Aberdeen, UK
Artificial Intelligence Chapter 4. Machine Evolution.
1 Genetic Algorithms and Ant Colony Optimisation.
Genetic Algorithms Przemyslaw Pawluk CSE 6111 Advanced Algorithm Design and Analysis
Edge Assembly Crossover
 Genetic Algorithms  A class of evolutionary algorithms  Efficiently solves optimization tasks  Potential Applications in many fields  Challenges.
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.
Evolutionary Algorithms K. Ganesh Research Scholar, Ph.D., Industrial Management Division, Humanities and Social Sciences Department, Indian Institute.
Project 2: Classification Using Genetic Programming Kim, MinHyeok Biointelligence laboratory Artificial.
Chapter 12 FUSION OF FUZZY SYSTEM AND GENETIC ALGORITHMS Chi-Yuan Yeh.
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:
1 Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations Genetic Algorithm (GA)
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
Symbolic Regression via Genetic Programming AI Project #2 Biointelligence lab Cho, Dong-Yeon
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
1 Comparative Study of two Genetic Algorithms Based Task Allocation Models in Distributed Computing System Oğuzhan TAŞ 2005.
Genetic Algorithms. Solution Search in Problem Space.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
1 Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations.
Introduction to Genetic Algorithms
Using GA’s to Solve Problems
Chapter 14 Genetic Algorithms.
Genetic Algorithms Author: A.E. Eiben and J.E. Smith
Genetic Algorithms.
Genetic Algorithms.
An Evolutionary Approach
Evolutionary Algorithms Jim Whitehead
Medical Diagnosis via Genetic Programming
Artificial Intelligence (CS 370D)
Comparing Genetic Algorithm and Guided Local Search Methods
Genetic Algorithms CPSC 212 Spring 2004.
CS621: Artificial Intelligence
Optimization and Learning via Genetic Programming
Artificial Intelligence Chapter 4. Machine Evolution
Genetic Algorithms: A Tutorial
Genetic Algorithms CSCI-2300 Introduction to Algorithms
Genetic Algorithms Chapter 3.
Artificial Intelligence Chapter 4. Machine Evolution
EE368 Soft Computing Genetic Algorithms.
Searching for solutions: Genetic Algorithms
Artificial Intelligence CIS 342
Genetic algorithms: case study
Traveling Salesman Problem by Genetic Algorithm
Beyond Classical Search
Population Based Metaheuristics
Genetic Algorithms: A Tutorial
GA.
Presentation transcript:

Artificial Intelligence Project 2 Genetic Algorithms Biointelligence Lab School of Computer Sci. & Eng. Seoul National University

Traveling Salesman Problem (TSP) What is TSP? One of the most widely studied combinatorial optimization problems Given a finite number of cities along with the cost of travel between each pair of them, find the cheapest way of visiting all the cities and returning to your starting point. TSP exhibits all aspects of combinatorial optimization and has served, and continues to serve, as the benchmark problem for new algorithmic ideas. (C) 2000-2002 SNU CSE BioIntelligence Lab

(C) 2000-2002 SNU CSE BioIntelligence Lab Cost Matrix Cost from node i to node j (C) 2000-2002 SNU CSE BioIntelligence Lab

(C) 2000-2002 SNU CSE BioIntelligence Lab Representation Random Keys Representation Random numbers from [a, b] Ex) a=0.0, b=1.0 Mapping from a binary string to real number Ex) lx = 10, a=0.0, b=1.0 B 1010100101 D 677 (C) 2000-2002 SNU CSE BioIntelligence Lab

Framework of Simple GA Generate Initial Population Fitness Function Evaluate Fitness Termination Condition? Yes Best Individual No Select Parents Crossover, Mutation Generate New Offspring (C) 2000-2002 SNU CSE BioIntelligence Lab

(C) 2000-2002 SNU CSE BioIntelligence Lab Initial Population Initial population is randomly generated. (C) 2000-2002 SNU CSE BioIntelligence Lab

(C) 2000-2002 SNU CSE BioIntelligence Lab Fitness Evaluation Procedure: Evaluation Convert the chromosome’s genotype to its phenotype. This means converting binary string into relative real values, and then sorting in ascending or descending order to get the tour. Calculate the traveling cost. Convert the cost into fitness for fitness proportional (roulette wheel) selection. For the minimization problem, the fitness is (C) 2000-2002 SNU CSE BioIntelligence Lab

(C) 2000-2002 SNU CSE BioIntelligence Lab

(C) 2000-2002 SNU CSE BioIntelligence Lab Selection Fitness proportional (roulette wheel) selection The roulette wheel can be constructed as follows. Calculate the total fitness for the population. Calculate selection probability pk for each chromosome vk. Calculate cumulative probability qk for each chromosome vk. (C) 2000-2002 SNU CSE BioIntelligence Lab

(C) 2000-2002 SNU CSE BioIntelligence Lab Procedure: Proportional_Selection Generate a random number r from the range [0,1]. If r  q1, then select the first chromosome v1; else, select the kth chromosome vk (2 k  pop_size) such that qk-1 < r  qk. pk qk 1 0.082407 2 0.110652 0.193059 3 0.131931 0.324989 4 0.121423 0.446412 5 0.072597 0.519009 6 0.128834 0.647843 7 0.077959 0.725802 8 0.102013 0.827802 9 0.083663 0.911479 10 0.088521 1.000000 (C) 2000-2002 SNU CSE BioIntelligence Lab

(C) 2000-2002 SNU CSE BioIntelligence Lab Tournament Selection Repeat below procedure two times Randomly draw a tournament of size t from the population with replacement. Choose fittest program to be parent. (C) 2000-2002 SNU CSE BioIntelligence Lab

(C) 2000-2002 SNU CSE BioIntelligence Lab Genetic Operations Crossover One point crossover Crossover rate pc Procedure: Crossover Select two parents. Generate a random number rc from the range [0,1]. If rc < pc then perform undergo crossover. Mutation Mutation alters one or more genes with a probability equal to the mutation rate pm. (C) 2000-2002 SNU CSE BioIntelligence Lab

(C) 2000-2002 SNU CSE BioIntelligence Lab

Experiments (Minimum Requirements) At least three problems Various experimental setup Termination condition: maximum_generation 2 Selection methods  3 settings  10 runs Proportional: fitness function and T Tournament: tournament size t, Crossover pc and mutation pm Elitism The best chromosome of the previous population is just copied. (C) 2000-2002 SNU CSE BioIntelligence Lab

(C) 2000-2002 SNU CSE BioIntelligence Lab Results For each problem Result table and your analysis Present the optimal tour and its cost. Both genotype and phenotype (real value and order) Draw a learning curve for the run where the best solution was found. Proportional Tournament Average  SD Best Worst Setting 1 Setting 2 Setting 3 (C) 2000-2002 SNU CSE BioIntelligence Lab

(C) 2000-2002 SNU CSE BioIntelligence Lab

(C) 2000-2002 SNU CSE BioIntelligence Lab References Source Codes Simple GA coding GA libraries (C, C++, JAVA, …) MATLAB Tool box Web sites Books Genetic Algorithms and Engineering Design, Mitsuo Gen and Runwei Cheng, John Wiley & Sons, 1997. Genetic algorithms in search, optimization, and machine learning, David E. Goldberg, Addison-Wesley, 1989. (C) 2000-2002 SNU CSE BioIntelligence Lab

(C) 2000-2002 SNU CSE BioIntelligence Lab Pay Attention! Due (October 28, 2001): By the begin of class Submission Source code and executable file(s) Proper comments in the source code Via e-mail Report: Hardcopy!! Running environments Results for many experiments with various parameter settings Analysis and explanation about the results in your own way (C) 2000-2002 SNU CSE BioIntelligence Lab