Genetic Algorithms.

Slides:



Advertisements
Similar presentations
Genetic Algorithms Chapter 3. A.E. Eiben and J.E. Smith, Introduction to Evolutionary Computing Genetic Algorithms GA Quick Overview Developed: USA in.
Advertisements

Student : Mateja Saković 3015/2011.  Genetic algorithms are based on evolution and natural selection  Evolution is any change across successive generations.
1 Lecture 8: Genetic Algorithms Contents : Miming nature The steps of the algorithm –Coosing parents –Reproduction –Mutation Deeper in GA –Stochastic Universal.
A new crossover technique in Genetic Programming Janet Clegg Intelligent Systems Group Electronics Department.
1 Genetic Algorithms. CS The Traditional Approach Ask an expert Adapt existing designs Trial and error.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
1 Genetic Algorithms. CS 561, Session 26 2 The Traditional Approach Ask an expert Adapt existing designs Trial and error.
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.
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
Universidad de los Andes-CODENSA The Continuous Genetic Algorithm.
Genetic Algorithm.
Evolutionary Intelligence
© Negnevitsky, Pearson Education, CSC 4510 – Machine Learning Dr. Mary-Angela Papalaskari Department of Computing Sciences Villanova University.
Slides are based on Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems.
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 Prof Kang Li
Optimization in Engineering Design Georgia Institute of Technology Systems Realization Laboratory Mixed Integer Problems Most optimization algorithms deal.
Genetic Algorithms Michael J. Watts
Genetic algorithms Charles Darwin "A man who dares to waste an hour of life has not discovered the value of life"
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Genetic Algorithms Genetic Algorithms – What are they? And how they are inspired from evolution. Operators and Definitions in Genetic Algorithms paradigm.
Genetic Algorithms Introduction Advanced. Simple Genetic Algorithms: Introduction What is it? In a Nutshell References The Pseudo Code Illustrations Applications.
© Negnevitsky, Pearson Education, Lecture 9 Evolutionary Computation: Genetic algorithms Introduction, or can evolution be intelligent? Introduction,
2005MEE Software Engineering Lecture 11 – Optimisation Techniques.
Learning by Simulating Evolution Artificial Intelligence CSMC February 21, 2002.
 Negnevitsky, Pearson Education, Lecture 9 Evolutionary Computation: Genetic algorithms n Introduction, or can evolution be intelligent? n Simulation.
Genetic Algorithms CSCI-2300 Introduction to Algorithms
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.
Waqas Haider Bangyal 1. Evolutionary computing algorithms are very common and used by many researchers in their research to solve the optimization problems.
GENETIC ALGORITHM Basic Algorithm begin set time t = 0;
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. 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.
►Search and optimization method that mimics the natural selection ►Terms to define ٭ Chromosome – a set of numbers representing one possible solution ٭
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
1 Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations.
Introduction to Genetic Algorithms
Chapter 14 Genetic Algorithms.
Genetic Algorithms.
Optimization Of Robot Motion Planning Using Genetic Algorithm
An Evolutionary Approach
Genetic Algorithms GAs are one of the most powerful and applicable search methods available GA originally developed by John Holland (1975) Inspired by.
CSC 380: Design and Analysis of Algorithms
Intelligent Systems and Soft Computing
Artificial Intelligence (CS 370D)
Genetic Algorithms, Search Algorithms
Case Study: Genetic Algorithms
Basics of Genetic Algorithms (MidTerm – only in RED material)
Artificial Intelligence Chapter 4. Machine Evolution
Genetic Algorithms CSCI-2300 Introduction to Algorithms
GENETIC ALGORITHMS & MACHINE LEARNING
Genetic Algorithms Chapter 3.
Basics of Genetic Algorithms
Artificial Intelligence Chapter 4. Machine Evolution
EE368 Soft Computing Genetic Algorithms.
Artificial Intelligence CIS 342
Genetic algorithms: case study
Beyond Classical Search
Population Based Metaheuristics
CSC 380: Design and Analysis of Algorithms
GA.
Population Methods.
Presentation transcript:

Genetic Algorithms

The Traditional Approach Ask an expert Adapt existing designs Trial and error What has been traditionally done in the heat exchanger world is to take a best “guess” at a design with the help of an expert. Traditional heat exchanger designs are usually fully mathematically described. This initial guess can then be used as a basis, and various parameters are “tweaked”. The performance of the heat exchanger can be recalculated to see if the modified design is an improvement on the original one. Surely there must be a better way? There is - we don’t need to look very far to find examples of optimisation in Nature. CS 561, Session 26

Nature’s Starting Point Approximately 50,000 years ago, this would be the typical human being we’d come across in Cambridge. Given a long time, a few hormones, and a little bit of lust, we end up with... Alison Everitt’s “A User’s Guide to Men” CS 561, Session 26

Optimised Man! CS 561, Session 26 …this delightful specimen you see before you. It can’t be denied that Mother Nature has solved the optimisation problem. [Note - using this photo is a small act of revenge - for years Harry has been using a slide of me, acting as a scale bar for a steam turbine!] CS 561, Session 26

Example: Pursuit and Evasion Using NNs and Genetic algorithm 0 learning 200 tries 999 tries CS 561, Session 26

Traditional Nature Comparisons best guess population of guesses may lead to local, not global optimum Nature population of guesses more likely to find a better solution So, why is Nature better at optimisation than our traditionally used heat exchanger technique? With the heat exchanger, we begin with a single “best guess” design which we iteratively modify. Nature has an entire population of designs, which interact, passing on the best properties of each other. As Darwin put it, this is “survival of the fittest”. CS 561, Session 26

Nature Genetic algorithm More Comparisons not very efficient at least a 20 year wait between generations not all mating combinations possible Genetic algorithm efficient and fast optimization complete in a matter of minutes mating combinations governed only by “fitness” However, we don’t have 50,000 years to optimise a recuperator. Although Nature does an excellent job, she does it slowly. There are long waits between generations of people, and before transport was so readily available, there wasn’t good “mixing” of the population. Additionally, if the two ideal parents were both of the same gender, there is no naturally genetic way to pass both sets of genes onto offspring. Genetic algorithms take a lesson from Nature, but they overcome these disadvantages. The process is efficient and fast, and there are no restrictions on mating combinations - they are only governed by the suitability of the parents. CS 561, Session 26

The Genetic Algorithm Approach Define limits of variable parameters Generate a random population of designs Assess “fitness” of designs Mate selection Crossover Mutation Reassess fitness of new population The genetic algorithm mimics genetic reproduction, with data representing the parameters of a particular design taking the form of a binary string, which behaves similarly to a chromosome within the DNA of a cell. Upper and lower limits are set on these data - although the genetic algorithm may know what is a good design, it doesn’t know what is practicable to manufacture. Once the chromosomes have been formed, a series of processes is carried out. These are listed above, and described in turn on the following slides. CS 561, Session 26

A “Population” CS 561, Session 26 As has been described, binary strings can be used to describe fully the heat exchanger design. In line with Nature, a population of designs is used. The initial population is simply generated randomly. The schematic above shows a small population of strings, with solid circles representing “ones” and open circles representing “zeros”. The model we used had strings with 70 characters in them, and a population size of 50 members. New generation populations were programmed to remain at 50 members. CS 561, Session 26

Ranking by Fitness: CS 561, Session 26 One the population has been formed, (either randomly in the initial generation, or by mating in subsequent generations), each population member needs to be assessed against the desired properties - such a rating is called a “fitness”. The design parameters represented by the zeros and ones in the binary code of each chromosome are fed into the mathematical model describing the heat exchanger. The output parameters for each design are used to give the fitness rating. A good design has a high fitness value, and a poor design a lower value. CS 561, Session 26

Mate Selection: Fittest are copied and replaced less-fit One the fitness has been assigned, pairs of chromosomes representing heat exchanger designs can be chosen for mating. The higher the fitness, the greater the probability of the design being selected. Consequently, some of the weaker population members do not mate at all, whilst superior ones are chosen many times. It is even statistically possible for a member to be chosen to mate with itself. This has no advantage, as the offspring will be identical to the parent. CS 561, Session 26

Mate Selection Roulette: Increasing the likelihood but not guaranteeing the fittest reproduction Mating pairs are selected in a biased random manner. It can be likened to an irregularly segmented roulette wheel. A segment of wheel is assigned to each population member, and the size of the segment is proportional to the fitness of the design. A simplified version is shown above for a small population. Two successive “gambles” are taken, and the population members selected by this process form a mating pair. Once mates are chosen, mating can be carried out. CS 561, Session 26

Crossover: Exchanging information through some part of information (representation) The mating process is analogous to crossover carried out in living cells. A pair of binary strings are used. A site along the length of the string is chosen randomly. In this example it is shown between the 6th and 7th bits, but it could be anywhere. Both members of the pair are severed at that site, and their latter portions are exchanged. Two parents form two children, and these two “daughter” designs become members of the population for the next generation. This process takes place for each pair selected, so the new population has the same number of members as the previous generation. CS 561, Session 26

Mutation: Random change of binary digits from 0 to 1 and vice versa (to avoid local minima) Mutation is set to occur randomly, with a low probability, in order to widen the regions of solution space being searched. This ensures that local maxima are not found as the optimum in preference to the global maximum. The mutation is a random change of a binary digit from 0 to 1 or vice versa. The diagram shows a solid circle, representing a 1 (highlighted in blue) changing to an open circle representing a zero. If the mutation makes the design worse, then there are no disadvantages, as it will have a lower fitness, and will die out quickly. Alternatively, if it makes the design better, then this will enhance the population. CS 561, Session 26

Best Design After a number of generations, designs can be examined for fitness, and the best design can be chosen. The genetic algorithm is extremely good at finding the region of solution space where the optimum lies, but it may be slow to converge to the precise peak of the maximum. It may be necessary to use other optimisation methods if a high degree of precision is needed in identification of the optimum design. CS 561, Session 26

The GA Cycle Summary of the previous steps to the model. Populations are continuously produced, going round the outer loop of this diagram, until the desired amount of optimisation has been achieved. CS 561, Session 26

Genetic Algorithms Adv: Good to find a region of solution including the optimal solution. But slow in giving the optimal solution Summary of the previous steps to the model. Populations are continuously produced, going round the outer loop of this diagram, until the desired amount of optimisation has been achieved. CS 561, Session 26

GP operates at a higher level of abstraction than GA Genetic Approach When applied to strings of genes, the approaches are classified as genetic algorithms (GA) When applied to pieces of executable programs, the approaches are classified as genetic programming (GP) GP operates at a higher level of abstraction than GA Summary of the previous steps to the model. Populations are continuously produced, going round the outer loop of this diagram, until the desired amount of optimisation has been achieved. CS 561, Session 26

Example: Karl Sim’s creatures Sea Horse Snake CS 561, Session 26

Typical “Chromosome” CS 561, Session 26 Here is a schematic showing how the chromosome is formed. The bits for each of the 7 variables are simply concatenated. CS 561, Session 26