1 Genetic Algorithms and Ant Colony Optimisation.

Slides:



Advertisements
Similar presentations
Algorithm Design Techniques
Advertisements

CS6800 Advanced Theory of Computation
CSM6120 Introduction to Intelligent Systems Evolutionary and Genetic Algorithms.
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.
Evolutionary Computational Intelligence
Introduction to Genetic Algorithms Yonatan Shichel.
Genetic Algorithm for Variable Selection
EAs for Combinatorial Optimization Problems BLG 602E.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
Tutorial 1 Temi avanzati di Intelligenza Artificiale - Lecture 3 Prof. Vincenzo Cutello Department of Mathematics and Computer Science University of Catania.
Genetic Algorithms Nehaya Tayseer 1.Introduction What is a Genetic algorithm? A search technique used in computer science to find approximate solutions.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Genetic Algorithms: A Tutorial
Genetic Algorithm.
Genetic Algorithms and Ant Colony Optimisation
Computer Implementation of Genetic Algorithm
GENETIC ALGORITHMS AND GENETIC PROGRAMMING Ehsan Khoddam Mohammadi.
Soft Computing Lecture 18 Foundations of genetic algorithms (GA). Using of GA.
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Genetic algorithms Prof Kang Li
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
Introduction to GAs: Genetic Algorithms How to apply GAs to SNA? Thank you for all pictures and information referred.
Neural and Evolutionary Computing - Lecture 5 1 Evolutionary Computing. Genetic Algorithms Basic notions The general structure of an evolutionary algorithm.
1 “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations of things, solutions.
Genetic Algorithms Siddhartha K. Shakya School of Computing. The Robert Gordon University Aberdeen, UK
Neural and Evolutionary Computing - Lecture 9 1 Evolutionary Neural Networks Design  Motivation  Evolutionary training  Evolutionary design of the architecture.
Derivative Free Optimization G.Anuradha. Contents Genetic Algorithm Simulated Annealing Random search method Downhill simplex method.
Genetic Algorithms. Evolutionary Methods Methods inspired by the process of biological evolution. Main ideas: Population of solutions Assign a score or.
Artificial Intelligence Chapter 4. Machine Evolution.
G ENETIC A LGORITHM. S IMULATED E VOLUTION We need the following Representation of an individual Fitness Function Reproduction Method Selection Criteria.
Genetic Algorithms Przemyslaw Pawluk CSE 6111 Advanced Algorithm Design and Analysis
Introduction to Genetic Algorithms. Genetic Algorithms We’ve covered enough material that we can write programs that use genetic algorithms! –More advanced.
Genetic Algorithms CSCI-2300 Introduction to Algorithms
Edge Assembly Crossover
Genetic Algorithms Genetic algorithms provide an approach to learning that is based loosely on simulated evolution. Hypotheses are often described by bit.
 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.
Chapter 12 FUSION OF FUZZY SYSTEM AND GENETIC ALGORITHMS Chi-Yuan Yeh.
Genetic Algorithms MITM613 (Intelligent Systems).
Genetic Search Algorithms Matt Herbster. Why Another Search?  Designed in the 1950s, heavily implemented under John Holland (1970s)  Genetic search.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
Genetic Algorithms and TSP Thomas Jefferson Computer Research Project by Karl Leswing.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Overview Last two weeks we looked at evolutionary algorithms.
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.
EVOLUTIONARY SYSTEMS AND GENETIC ALGORITHMS NAME: AKSHITKUMAR PATEL STUDENT ID: GRAD POSITION PAPER.
1 Introduction To Genetic Algorithms (GAs). Genetic Algorithms Also known as evolutionary algorithms, genetic algorithms demonstrate self organization.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
Presented By: Farid, Alidoust Vahid, Akbari 18 th May IAUT University – Faculty.
Optimization by Quantum Computers
Introduction to Genetic Algorithms
Genetic Algorithms.
Genetic Algorithms.
Evolutionary Algorithms Jim Whitehead
Artificial Intelligence Project 2 Genetic Algorithms
Genetic Algorithm and Their Applications to Scheduling
Genetic Algorithms, Search Algorithms
Artificial Intelligence Chapter 4. Machine Evolution
Metaheuristic methods and their applications. Optimization Problems Strategies for Solving NP-hard Optimization Problems What is a Metaheuristic Method?
Genetic Algorithms CSCI-2300 Introduction to Algorithms
Artificial Intelligence Chapter 4. Machine Evolution
Beyond Classical Search
Population Based Metaheuristics
Presentation transcript:

1 Genetic Algorithms and Ant Colony Optimisation

2 Introduction: Optimisation Optimisation : find an extremum Extrema can be local / global In R n (real numbers): methods with and without gradients Local :  With derivative (ok : space = R n )  gradient (possibly: first degree or even more)  Without derivative : select a point, explore the neighborood, take the best, do it again. (type hill climber, local search) Global :  = local with different initial conditions.  Method without derivatives  GA

3 Combinatorial optimisation problems. Deterministic algorithms : Explore too much and take too much time  meta-heuristiques : find rapidly a satisfactory solution Example : Scheduling problem, packing or ordering problems The classics of the classics : TSP  The travelling salesman problem  N cities  Find the shortest path going through each city only once  Benchmarking problems  Problems NP-complete (the time to find grows exponentially with the size of the problem (N! ~ N^(N+1/2)))

4 Genetic Algorithms: Introduction Evolutionary computing 1975 : John Holland  Genetic algorithms 1992 : John Koza  Genetic programming

5 Genetic algorithms Darwinian inspiration Evolution = optimisation:

6 Reproduction 2 genetic operators:  Cross-over (recombination)  Mutation Fitness

7 The standard algorithm Generate random population Repeat  Evaluate fitness f(x) for each individual of the population  Create a new population (to repeat until a stopping critetion) Selection (according to fitness) Crossover (according to probability of crossover) Mutation (according to probability of mutation) evaluate the new individuals in the population (replacement)  Replace the old population by the new (better) ones Until stop condition; return the best solution of the current population

8

9

10 Chromosones encoding Can be influenced by the problem to solve Examples:  Binary encoding  Permutation encoding (ordening problems) e.g. TSP problem)  Real value encoding (evolutionary strategies)  Tree encoding (genetic programming)

11 Binary Encoding Binary encoding is the most common, mainly because first works about GA used this type of encoding.In binary encoding every chromosome is a string of bits, 0 or 1. Example of Problem: Knapsack problem The problem: There are things with given value and size. The knapsack has given capacity. Select things to maximize the value of things in knapsack, but do not extend knapsack capacity. Encoding: Each bit says, if the corresponding thing is in knapsack. Chromosome A Chromosome B

12 Permutation Encoding In permutation encoding, every chromosome is a string of numbers, which represents number in a sequence. Example of Problem: Traveling salesman problem (TSP) The problem: There are cities and given distances between them.Travelling salesman has to visit all of them, but he does not to travel very much. Find a sequence of cities to minimize travelled distance. Encoding: Chromosome says order of cities, in which salesman will visit them. C hromosome A Chromosome B

13 Value Encoding In value encoding, every chromosome is a string of some values. Values can be anything connected to problem, form numbers, real numbers or chars to some complicated objects. Example of Problem: Finding weights for neural network The problem: There is some neural network with given architecture. Find weights for inputs of neurons to train the network for wanted output. Encoding: Real values in chromosomes represent corresponding weights for inputs. C hromosome A Chromosome B ABDJEIFJDHDIERJFDLDFLFEGT Chromosome C (back), (back), (right), (forward), (left)

14 Tree Encoding In tree encoding every chromosome is a tree of some objects, such as functions or commands in programming language.Used in genetic programming Example of Problem: Finding a function from given values The problem: Some input and output values are given. Task is to find a function, which will give the best (closest to wanted) output to all inputs. Encoding: Chromosome are functions represented in a tree. Chromosome A Chromosome B ( + x ( / 5 y ) ) ( do_until step wall)

15 Crossover - Recombination C1: 1011|10001 C2: 0110|11100  D1: 1011|11100  D2: 0110|10001 Variants, many points of crossover

16 Crossover – Binary Encoding Single Point Crossover  et  Two Point Crossover  et  Uniform Crossover  et  Difference operators:  AND 

17 Crossover - variants Permutation encoding  Single Point Crossover ( ) et ( )  ( ) Tree encoding

18 Mutation D1: D2:  M1:  M2: variants

19 Mutation - Variants Binary Encoding  Bit inversion  Permutation Encoding  Order changing ( )  ( ) Value Encoding  +/- one number ( )  ( ) Tree Encoding: (ex)-change nodes

20 Selection By roulette wheel By rank By tournement Steady-State

21 Roulette wheel Selection according to fitness

22 Selection by rank Sorting of the population (n  1)

23 Selection by tournament Size k Take randomly k individuals Make them compete and select the best

24 Elitism  Elitism: copy the single or many bests in the population then construct the remaining ones by genetic operations

25 So many parameters Crossover probability Mutation probability Population size