Introduction To Genetic Algorithms

Similar documents
Intro. ANN & Fuzzy Systems. Lecture 36 GENETIC ALGORITHM (1)

Intelligent Techniques Lesson 4 (Examples about Genetic Algorithm)

Machine Learning. Genetic Algorithms

Machine Learning. Genetic Algorithms

Evolutionary Algorithms

The Metaphor. Individuals living in that environment Individual s degree of adaptation to its surrounding environment

Evolutionary Algorithms - Population management and popular algorithms Kai Olav Ellefsen

GENETIC ALGORITHMS. Narra Priyanka. K.Naga Sowjanya. Vasavi College of Engineering. Ibrahimbahg,Hyderabad.

Genetic Algorithm: A Search of Complex Spaces

What is Evolutionary Computation? Genetic Algorithms. Components of Evolutionary Computing. The Argument. When changes occur...

Energy management using genetic algorithms

GENETIC ALGORITHM CHAPTER 2

VISHVESHWARAIAH TECHNOLOGICAL UNIVERSITY S.D.M COLLEGE OF ENGINEERING AND TECHNOLOGY. A seminar report on GENETIC ALGORITHMS.

Journal of Global Research in Computer Science PREMATURE CONVERGENCE AND GENETIC ALGORITHM UNDER OPERATING SYSTEM PROCESS SCHEDULING PROBLEM

Recessive Trait Cross Over Approach of GAs Population Inheritance for Evolutionary Optimisation

PARALLEL LINE AND MACHINE JOB SCHEDULING USING GENETIC ALGORITHM

EFFECT OF CROSS OVER OPERATOR IN GENETIC ALGORITHMS ON ANTICIPATORY SCHEDULING

Genetic Algorithm. Presented by Shi Yong Feb. 1, 2007 Music McGill University

Genetic Algorithms. Lecture Notes in Transportation Systems Engineering. Prof. Tom V. Mathew

Deterministic Crowding, Recombination And Self-Similarity

Parameter identification in the activated sludge process

Genetic Algorithms in Matrix Representation and Its Application in Synthetic Data

Chapter 6: SELECTION. 6.1 Introduction

Derivative-based Optimization (chapter 6)

Designing High Thermal Conductive Materials Using Artificial Evolution MICHAEL DAVIES, BASKAR GANAPATHYSUBRAMANIAN, GANESH BALASUBRAMANIAN

Genetically Evolved Solution to Timetable Scheduling Problem

Improvement of Control System Responses Using GAs PID Controller

Genetic Algorithms using Populations based on Multisets

Evolutionary Algorithms and Simulated Annealing in the Topological Configuration of the Spanning Tree

TRAINING FEED FORWARD NEURAL NETWORK USING GENETIC ALGORITHM TO PREDICT MEAN TEMPERATURE

TIMETABLING EXPERIMENTS USING GENETIC ALGORITHMS. Liviu Lalescu, Costin Badica

Genetic Algorithm with Upgrading Operator

FacePrints, Maze Solver and Genetic algorithms

CSE 590 DATA MINING. Prof. Anita Wasilewska SUNY Stony Brook

Evolutionary Algorithms:

GENETIC ALGORITHMS FOR DESIGN OF PIPE NETWORK SYSTEMS

Evolutionary Algorithms - Introduction and representation Jim Tørresen

Public Key Cryptography Using Genetic Algorithm

The Making of the Fittest: Natural Selection in Humans

Optimization of Shell and Tube Heat Exchangers Using modified Genetic Algorithm

Preventive Maintenance Optimization of Critical Equipments in Process Plant using Heuristic Algorithms

Genetic Algorithms and Sensitivity Analysis in Production Planning Optimization

Optimization of Riser in Casting Using Genetic Algorithm

Evolutionary Computation

INFLUENCE OF DATA QUANTITY ON ACCURACY OF PREDICTIONS IN MODELING TOOL LIFE BY THE USE OF GENETIC ALGORITHMS

Data Mining for Genetics: A Genetic Algorithm Approach

A Genetic Algorithm on Inventory Routing Problem

Changing Mutation Operator of Genetic Algorithms for optimizing Multiple Sequence Alignment

Permutation Free Encoding Technique for Evolving Neural Networks

Rule Minimization in Predicting the Preterm Birth Classification using Competitive Co Evolution

Optimization of Software Testing for Discrete Testsuite using Genetic Algorithm and Sampling Technique

An Improved Genetic Algorithm for Generation Expansion Planning

9 Genetic Algorithms. 9.1 Introduction

Logistics. Final exam date. Project Presentation. Plan for this week. Evolutionary Algorithms. Crossover and Mutation

The Theory of Evolution

A Comparison between Genetic Algorithms and Evolutionary Programming based on Cutting Stock Problem

Forecasting Euro United States Dollar Exchange Rate with Gene Expression Programming

CEng 713 Evolutionary Computation, Lecture Notes

AP BIOLOGY Population Genetics and Evolution Lab

Keywords Genetic, pseudorandom numbers, cryptosystems, optimal solution.

Optimizing Genetic Algorithms for Time Critical Problems

Economic Design of Control Chart

The Genetic Algorithm CSC 301, Analysis of Algorithms Department of Computer Science Grinnell College December 5, 2016

APPLYING IMPROVED GENETIC ALGORITHM FOR SOLVING JOB SHOP SCHEDULING PROBLEMS

Immune Programming. Payman Samadi. Supervisor: Dr. Majid Ahmadi. March Department of Electrical & Computer Engineering University of Windsor

Using Chaos in Genetic Algorithms

Simulation-Based Analysis and Optimisation of Planning Policies over the Product Life Cycle within the Entire Supply Chain

Real-Coded Evolutionary Algorithms with Parent-Centric Recombination

11.1 Genetic Variation Within Population. KEY CONCEPT A population shares a common gene pool.

Genetic Algorithms in Aquifer Management

Procedia - Social and Behavioral Sciences 189 ( 2015 ) XVIII Annual International Conference of the Society of Operations Management (SOM-14)

Genetic Algorithm and Neural Network

Evolving Bidding Strategies for Multiple Auctions

Genetic Algorithms-Based Model for Multi-Project Human Resource Allocation

Chapter 5: ENCODING. 5.1 Prologue

hgrga: A Scalable Genetic Algorithm using Homologous Gene Schema Replacement

USING GENETIC ALGORITHMS TO GENERATE ALTERNATIVES FOR MULTI-OBJECTIVE CORRIDOR LOCATION PROBLEMS

OPTIMIZATION OF THE WATER DISTRIBUTION NETWORKS WITH SEARCH SPACE REDUCTION

Applying Computational Intelligence in Software Testing

Recombination Without Respect: Schema Combination and Disruption in Genetic Algorithm Crossover

An Improved Immune Genetic Algorithm for Capacitated Vehicle Routing Problem

On Naïve Crossover Biases with Reproduction for Simple Solutions to Classification Problems

Storage Allocation and Yard Trucks Scheduling in Container Terminals Using a Genetic Algorithm Approach

Ultimate and serviceability limit state optimization of cold-formed steel hat-shaped beams

Genotype Editing and the Evolution of Regulation and Memory

Solving a redundancy allocation problem with repairable identical components using simulation method and genetic algorithm

Evolution. Population Genetics. Targets: Alleles and Genes 3/30/2014

LAB ACTIVITY ONE POPULATION GENETICS AND EVOLUTION 2017

Reliable classification of two-class cancer data using evolutionary algorithms

Reproduction Strategy Based on Self-Organizing Map for Real-coded Genetic Algorithms

Population and Community Dynamics. The Hardy-Weinberg Principle

Adapting Operator Settings in Genetic Algorithms

A Study of Crossover Operators for Genetic Algorithms to Solve VRP and its Variants and New Sinusoidal Motion Crossover Operator

Genetic Algorithm to Dry Dock Block Placement Arrangement Considering Subsequent Ships

An Improved Grouping Genetic Algorithm

OPTIMIZATION OF GROUNDWATER RESOURCES MANAGEMENT IN POLLUTED AQUIFERS

NEUROEVOLUTION AND AN APPLICATION OF AN AGENT BASED MODEL FOR FINANCIAL MARKET

USING GENETIC ALGORITHMS TO CALCULATE FLOODWAY STATIONS WITH HEC-RAS. Thesis. Submitted to. The School of Engineering of the UNIVERSITY OF DAYTON

Analysis of NEAT and application in swarm intelligence

Fitness Distance Correlation Analysis: An Instructive Counterexample

Transcription:

1 Introduction To Genetic Algorithms Dr. Rajib Kumar Bhattacharjya Department of Civil Engineering IIT Guwahati Email: rkbc@iitg.ernet.in

References 2 D. E. Goldberg, Genetic Algorithm In Search, Optimization And Machine Learning, New York: Addison Wesley (1989) John H. Holland Genetic Algorithms, Scientific American Journal, July 1992. Kalyanmoy Deb, An Introduction To Genetic Algorithms, Sadhana, Vol. 24 Parts 4 And 5.

Introduction to optimization 3 Global optima Local optima Local optima Local optima Local optima f X

Introduction to optimization 4 Multiple optimal solutions

Genetic Algorithms 5 Genetic Algorithms are the heuristic search and optimization techniques that mimic the process of natural evolution.

Principle Of Natural Selection 6 Select The Best, Discard The Rest

An Example. 7 Giraffes have long necks Giraffes with slightly longer necks could feed on leaves of higher branches when all lower ones had been eaten off. They had a better chance of survival. Favorable characteristic propagated through generations of giraffes. Now, evolved species has long necks.

An Example. 8 This longer necks may have due to the effect of mutation initially. However as it was favorable, this was propagated over the generations.

Evolution of species 9 Initial Population of animals Millions Of Years Struggle For Existence Survival Of the Fittest Surviving Individuals Reproduce, Propagate Favorable Characteristics Evolved Species

10 Thus genetic algorithms implement the optimization strategies by simulating evolution of species through natural selection

Simple Genetic Algorithms 11 Start Initialize population Evaluate Solutions Optimum Solution? T = 0 YES NO Selection T=T+1 Stop Crossover Mutation

Simple Genetic Algorithm 12 function sga () { Initialize population; Calculate fitness function; While(fitness value!= termination criteria) { Selection; Crossover; Mutation; } Calculate fitness function; }

GA Operators and Parameters 13 Selection Crossover Mutation Now we will discuss about genetic operators

Selection 14 The process that determines which solutions are to be preserved and allowed to reproduce and which ones deserve to die out. The primary objective of the selection operator is to emphasize the good solutions and eliminate the bad solutions in a population while keeping the population size constant. Selects the best, discards the rest

Functions of Selection operator 15 Identify the good solutions in a population Make multiple copies of the good solutions Eliminate bad solutions from the population so that multiple copies of good solutions can be placed in the population Now how to identify the good solutions?

Fitness function 16 A fitness value can be assigned to evaluate the solutions A fitness function value quantifies the optimality of a solution. The value is used to rank a particular solution against all the other solutions A fitness value is assigned to each solution depending on how close it is actually to the optimal solution of the problem

Assigning a fitness value 17 Considering c = 0.0654 23 h d

Selection operator 18 There are different techniques to implement selection in Genetic Algorithms. They are: Tournament selection Roulette wheel selection Proportionate selection Rank selection Steady state selection, etc

Tournament selection 19 In tournament selection several tournaments are played among a few individuals. The individuals are chosen at random from the population. The winner of each tournament is selected for next generation. Selection pressure can be adjusted by changing the tournament size. Weak individuals have a smaller chance to be selected if tournament size is large.

Tournament selection 20 22 32 Selected 13 +30 22 25 25 22 25 32 40 32 22 40 32 22 22 25 13 +30 Best solution will have two copies 7 +45 25 25 7 +45 13 +30 13 +30 Worse solution will have no copies Other solutions will have two, one or zero copies

21 Roulette wheel and proportionate selection Parents are selected according to their fitness values The better chromosomes have more chances to be selected Chrom # Fitness 1 50 2 6 3 36 4 30 5 36 6 28 186 6Roulet wheel 16% % of RW 26.88 3.47 20.81 17.34 20.81 16.18 100.00 1 21% EC 1.61 0.19 1.16 0.97 1.16 0.90 6 AC 2 0 1 1 1 1 6 5 21% 2 3% 4 18% 3 21%

Rank selection 22 Chrom # Fitness 1 37 2 6 3 36 4 30 5 36 6 28 Sort according to fitness Chrom # Fitness 1 37 3 36 5 36 4 30 6 28 2 6 Assign raking Chrom # 1 3 5 4 6 2 Rank 6 5 4 3 2 1 Chrom # 1 3 5 4 6 2 % of RW 29 24 19 14 10 5 Roulette wheel 6 5 4 3 2 1 Chrom # 1 3 5 4 6 2 EC AC 1.714 2 1.429 1 1.143 1 0.857 1 0.571 1 0.286 0

Steady state selection 23 In this method, a few good chromosomes are used for creating new offspring in every iteration. Then some bad chromosomes are removed and the new offspring is placed in their places The rest of population migrates to the next generation without going through the selection process. Good New offspring Good Bad New offspring

How to implement crossover 24 The crossover operator is used to create new solutions from the existing solutions available in the mating pool after applying selection operator. This operator exchanges the gene information between the solutions in the mating pool. 0 1 0 0 1 1 0 1 1 0 Encoding of solution is necessary so that our solutions look like a chromosome Source: http://www.biologycorner.com/bio1/celldivision-chromosomes.html

Encoding 25 The process of representing a solution in the form of a string that conveys the necessary information. Just as in a chromosome, each gene controls a particular characteristic of the individual, similarly, each bit in the string represents a characteristic of the solution.

Encoding Methods 26 Most common method of encoding is binary coded. Chromosomes are strings of 1 and 0 and each position in the chromosome represents a particular characteristic of the problem Decoded value 52 26 Mapping between decimal and binary value

Encoding Methods 27 Defining a string [0100001010] d h h (d,h) = (8,10) cm Chromosome = [0100001010] d

Crossover operator 28 The most popular crossover selects any two solutions strings randomly from the mating pool and some portion of the strings is exchanged between the strings. Solution 1 The selection point is selected randomly. A probability of crossover is also introduced in order to give freedom to an individual solution string to determine whether the solution would go for crossover or not. Solution 2 Child 1 Child 2

Binary Crossover 29 Source: Deb 1999

Mutation operator 30 Mutation is the occasional introduction of new features in to the solution strings of the population pool to maintain diversity in the population. Though crossover has the main responsibility to search for the optimal solution, mutation is also used for this purpose. Before mutation After mutation

Binary Mutation 31 Mutation operator changes a 1 to 0 or vise versa, with a mutation probability of. The mutation probability is generally kept low for steady convergence. A high value of mutation probability would search here and there like a random search technique. Source: Deb 1999

Elitism 32 Crossover and mutation may destroy the best solution of the population pool Elitism is the preservation of few best solutions of the population pool Elitism is defined in percentage or in number

Nature to Computer Mapping 33 Nature Population Individual Fitness Chromosome Gene Computer Set of solutions Solution to a problem Quality of a solution Encoding for a solution Part of the encoding solution

An example problem 34 Consider 6 bit string to represent the solution, then 000000 = 0 and 111111 = Assume population size of 4 Let us solve this problem by hand calculation

An example problem 35 Initialize population Calculate decoded value Calculate real value Calculate objective function value Calculate actual count Calculate expected count Calculate relative fitness value Calculate fitness value Initial population Sol No Binary String Decoding DV x value Fitness calculation f F Selection: Proportionate selection Relative Fitness Expected count Actual count 1 100101 37 0.587 0.96 0.96 0.38 1.53 2 2 001100 12 0.19 0.56 0.56 0.22 0.89 1 3 111010 58 0.921 0.25 0.25 0.10 0.39 0 4 101110 46 0.73 0.75 Avg Max 0.75 0.563 0.96 0.30 1.19 1

An example problem: Crossover 36 Matting pool Random generation of crossover site New population Crossover: Single point Sol No Matting pool CS New Binary String DV x value f F 1 100101 3 100100 36 0.57 0.97 0.97 2 001100 3 100101 4 101110 3 2 2 001101 101110 100101 13 46 37 0.21 0.73 0.59 0.60 0.60 0.75 0.75 0.96 0.96 Avg 0.8223 Max 0.97

An example problem: Mutation 37 Mutation Sol No Population after crossover Population after mutation DV x value f F 1 100100 100000 32 0.51 1.00 1.00 2 001101 101101 45 0.71 0.78 0.78 3 101110 100110 38 0.60 0.95 0.95 4 100101 101101 45 0.71 0.78 0.78 Avg 0.878 Max 1.00

38 THANKS