Pawel Drozdowski – November 2012. Introduction GA basics Solving simple problem GA more advanced topics Solving complex problem Question and Answers.

Slides:



Advertisements
Similar presentations
Genetic Algorithms Vida Movahedi November Contents What are Genetic Algorithms? From Biology … Evolution … To Genetic Algorithms Demo.
Advertisements

Introduction to Genetic Algorithms
CS6800 Advanced Theory of Computation
Tetris – Genetic Algorithm Presented by, Jeethan & Jun.
Student : Mateja Saković 3015/2011.  Genetic algorithms are based on evolution and natural selection  Evolution is any change across successive generations.
Biologically Inspired AI (mostly GAs). Some Examples of Biologically Inspired Computation Neural networks Evolutionary computation (e.g., genetic algorithms)
21-May-15 Genetic Algorithms. 2 Evolution Here’s a very oversimplified description of how evolution works in biology Organisms (animals or plants) produce.
Institute of Intelligent Power Electronics – IPE Page1 Introduction to Basics of Genetic Algorithms Docent Xiao-Zhi Gao Department of Electrical Engineering.
Genetic Algorithms. Some Examples of Biologically Inspired AI Neural networks Evolutionary computation (e.g., genetic algorithms) Immune-system-inspired.
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.
Genetic Algorithms Overview Genetic Algorithms: a gentle introduction –What are GAs –How do they work/ Why? –Critical issues Use in Data Mining –GAs.
1. Optimization and its necessity. Classes of optimizations problems. Evolutionary optimization. –Historical overview. –How it works?! Several Applications.
Prepared by Barış GÖKÇE 1.  Search Methods  Evolutionary Algorithms (EA)  Characteristics of EAs  Genetic Programming (GP)  Evolutionary Programming.
Genetic Algorithm.
Genetic Algorithms and Ant Colony Optimisation
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Genetic algorithms Prof Kang Li
Design & Analysis of Algorithms Combinatory optimization SCHOOL OF COMPUTING Pasi Fränti
1 Genetic Algorithms “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
1/27 Discrete and Genetic Algorithms in Bioinformatics 許聞廉 中央研究院資訊所.
1 “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations of things, solutions.
Soft Computing A Gentle introduction Richard P. Simpson.
GENETIC ALGORITHM A biologically inspired model of intelligence and the principles of biological evolution are applied to find solutions to difficult problems.
Derivative Free Optimization G.Anuradha. Contents Genetic Algorithm Simulated Annealing Random search method Downhill simplex method.
2005MEE Software Engineering Lecture 11 – Optimisation Techniques.
Learning by Simulating Evolution Artificial Intelligence CSMC February 21, 2002.
1 Genetic Algorithms and Ant Colony Optimisation.
1 Genetic Algorithms K.Ganesh Introduction GAs and Simulated Annealing The Biology of Genetics The Logic of Genetic Programmes Demo Summary.
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 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.
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.
Mechanisms of Evolution How does this all work?.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
Biologically inspired algorithms BY: Andy Garrett YE Ziyu.
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
In the name of ALLAH Presented By : Mohsen Shahriari, the student of communication in Sajad institute for higher education.
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 Algorithms. Underlying Concept  Charles Darwin outlined the principle of natural selection.  Natural Selection is the process by which evolution.
Genetic Algorithms and TSP Thomas Jefferson Computer Research Project by Karl Leswing.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Genetic Algorithms. Solution Search in Problem Space.
EVOLUTIONARY SYSTEMS AND GENETIC ALGORITHMS NAME: AKSHITKUMAR PATEL STUDENT ID: GRAD POSITION PAPER.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
Genetic Algorithm(GA)
George Yauneridge.  Machine learning basics  Types of learning algorithms  Genetic algorithm basics  Applications and the future of genetic algorithms.
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
Presented By: Farid, Alidoust Vahid, Akbari 18 th May IAUT University – Faculty.
Genetic (Evolutionary) Algorithms CEE 6410 David Rosenberg “Natural Selection or the Survival of the Fittest.” -- Charles Darwin.
Genetic Algorithms.
Genetic Algorithms.
Artificial Intelligence Methods (AIM)
Introduction to Genetic Algorithm (GA)
Basics of Genetic Algorithms (MidTerm – only in RED material)
GENETIC ALGORITHMS & MACHINE LEARNING
Dr. Unnikrishnan P.C. Professor, EEE
Basics of Genetic Algorithms
A Gentle introduction Richard P. Simpson
Presentation transcript:

Pawel Drozdowski – November 2012

Introduction GA basics Solving simple problem GA more advanced topics Solving complex problem Question and Answers

Evolution Charles Darwin Evolution is the change of inherited characteristics of populations over successive generations what leads to greater diversity in this populations. Greater diversity leads to greater chance of survival in changing environment.

Genetics DNA Genetics is the science of genes. Genes are a part of DNA molecule which carries information how to build cells and pass traits to offspring.

Assuming… Offspring genes keeps information of inherited characteristics. Populations use genes diversity to survive in environment.

…and that’s how creationists see it

Evolved, created… or neither?

Genetic Algorithm (GA) 1. Generate population 2. Calculate fitness 3. Make selection 4.Crossover 5. Mutate Go to 2 Done

Parts of Genetic Algorithm Chromosome and genes Population Fitness function Selection method Crossover method Mutation method Stop conditions

DNA Fitness function: Strength + Endurance Score: 24 Score: 21Score: 42 Score: 20 Score: 22

DNA Fitness function: Strength + Endurance > 22 Score: 24 Score: 21Score: 42 Score: 20 Score: 22

I have no sword so I won’t reproduce 

DNA

Score: 32 Score: 34 Score: 64

DNA Score: 32 Score: 34 Score: 64

DEMO1 Flies vs Tomatoes This demo uses AForge.Net library, check:

Definition There are tomatoes and flies in the space. Flies likes to eat tomatoes. Task Depending on different distribution of tomatoes in space find out most likely place where flies would be.

Chromosome Array of 2 double values represented as sequence of bits { X Y } Example: {0.41, 0.32} X,Y pair defines location of a fly in the space

Crossover Single cut Mutation Gene value swap X X X Y Y Y

Fitness function

Selection - Roulette wheel Take a note that every fly has a chance to propagate its genes!

Features GA can find optimal solutions GA can adjust solution in changing environment Issues May stuck in local optimum Chromosome construction and related operations can lead to distortions in GA (for more search for schema theory, alleles)

Mutation creates variation… …favourable mutations gets selected… …reproduction and mutation again… …favourable mutations gets selected… …reproduction and mutation again… Changes done by mutation that are leading towards solution are propagating and cumulating over time.

By doing roulette wheel selection (giving chance to all guys proportionally to their fitness) we can loose a lot of time doing exploration of too many possible solutions… Who knows? Maybe only endurance is important so why bother with the rest?

By doing elite selection (picking up guys with highest score) we can loose opportunity of exploring for other possible solutions… Who knows? Maybe high enough agility, wisdom or intelligence can give us much better results?

Local optimum Global optimum Features of easily solvable search space: Global optimum Few local optimums Hills to climb Hill

Difficult search space lacks one or more features: Where is global optimum? Why there are so many local optimums separated in so rough way?! Hey, there are no hills to climb!

Migrate successful chromosome from one population to another. Combine solutions that stuck in local optimums and create even more fit individuals.

DEMO2 Traveling Salesman Problem This demo uses AForge.Net library, check: And TSP problems library from Heidelberg university:

Definition There is a set of cities salesman needs to visit. Each city must be visited once. Task What’s the shortest way through all the cities?

Search space size for 48 cities problem is 1.24e+61 (which stands in short for: )

Chromosome Array of unique identifiers of cities { id1 id2 id3 id4 id5 } Example: {1,3,2,4,5} Permutation of identifiers defines city order in the route

Crossover (as in AForge.Net implementation) Mutation (as in AForge.Net implementation)

Fitness function Selection – Elite selection

Features GA can find optimal solutions… but what’s more important it can find solution close to global optimum quite fast! Issues May stuck in local optimum The larger problem is, the longer we count (obvious) Vulnerable to chromosome construction and used method of mutation, crossover and selection

TSP applies to real world problems!

Source: Acoustics Aerospace engineering Astronomy and astrophysics Chemistry Electrical engineering Financial markets Game playing Geophysics Materials engineering Math and algorithms Military and law enforcement Molecular biology Pattern recognition and data mining Robotics Routing and scheduling Systems engineering