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

Similar documents
Evolutionary Algorithms

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

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

Evolutionary Algorithms - Introduction and representation Jim Tørresen

Intelligent Techniques Lesson 4 (Examples about Genetic Algorithm)

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

EFFECT OF CROSS OVER OPERATOR IN GENETIC ALGORITHMS ON ANTICIPATORY SCHEDULING

Evolutionary Algorithms - Population management and popular algorithms Kai Olav Ellefsen

Genetic Algorithm: A Search of Complex Spaces

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

A Genetic Algorithm on Inventory Routing Problem

TIMETABLING EXPERIMENTS USING GENETIC ALGORITHMS. Liviu Lalescu, Costin Badica

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

Genetic Algorithms in Matrix Representation and Its Application in Synthetic Data

FacePrints, Maze Solver and Genetic algorithms

Genetically Evolved Solution to Timetable Scheduling Problem

Energy management using genetic algorithms

Deterministic Crowding, Recombination And Self-Similarity

Evolutionary Algorithms:

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

Evolutionary Computation

CEng 713 Evolutionary Computation, Lecture Notes

Derivative-based Optimization (chapter 6)

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

AP BIOLOGY Population Genetics and Evolution Lab

Chapter 6: SELECTION. 6.1 Introduction

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

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

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

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

A Viral Systems Algorithm for the Traveling Salesman Problem

Keywords Genetic, pseudorandom numbers, cryptosystems, optimal solution.

Improvement of Control System Responses Using GAs PID Controller

Public Key Cryptography Using Genetic Algorithm

Economic Design of Control Chart

POPULATION GENETICS. Evolution Lectures 4

Permutation Free Encoding Technique for Evolving Neural Networks

Using evolutionary techniques to improve the multisensor fusion of environmental measurements

9 Genetic Algorithms. 9.1 Introduction

Genetic Algorithm with Upgrading Operator

Metaheuristics and Cognitive Models for Autonomous Robot Navigation

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

Population and Community Dynamics. The Hardy-Weinberg Principle

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

LAB ACTIVITY ONE POPULATION GENETICS AND EVOLUTION 2017

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

OPTIMIZATION OF SUSTAINABLE OFFICE BUILDINGS IN STEEL USING GENETIC ALGORITHMS

Changing Mutation Operator of Genetic Algorithms for optimizing Multiple Sequence Alignment

Optimization of Riser in Casting Using Genetic Algorithm

Artificial Life Lecture 14 EASy. Genetic Programming. EASy. GP EASy. GP solution to to problem 1. EASy. Picturing a Lisp program EASy

Improved Crossover and Mutation Operators for Genetic- Algorithm Project Scheduling

Routing Optimization of Fourth Party Logistics with Reliability Constraints based on Messy GA

A Particle Swarm Optimization Algorithm for Multi-depot Vehicle Routing problem with Pickup and Delivery Requests

OPTIMIZATION OF A THREE-PHASE INDUCTION MACHINE USING GENETIC ALGORITHM

Genetic drift. 1. The Nature of Genetic Drift

Epistatic Genetic Algorithm for Test Case Prioritization

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

Evolutionary Computation

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

LAB. POPULATION GENETICS. 1. Explain what is meant by a population being in Hardy-Weinberg equilibrium.

An Improved Genetic Algorithm for Generation Expansion Planning

An evolutionary algorithm for a real vehicle routing problem

Genetic Algorithms using Populations based on Multisets

Hours of service regulations in road freight transport: an optimization-based international assessment. Thibaut Vidal

Linkage & Genetic Mapping in Eukaryotes. Ch. 6

Modeling and optimization of ATM cash replenishment

Chapter 23: The Evolution of Populations. 1. Populations & Gene Pools. Populations & Gene Pools 12/2/ Populations and Gene Pools

Forecasting Euro United States Dollar Exchange Rate with Gene Expression Programming

Study Guide A. Answer Key. The Evolution of Populations

Optimizations and Placements with the Genetic Workbench

Parameter identification in the activated sludge process

Adapting Operator Settings in Genetic Algorithms

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

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

Population Genetics. Lab Exercise 14. Introduction. Contents. Objectives

GENETIC ALGORITHMS FOR DESIGN OF PIPE NETWORK SYSTEMS

Summary Genes and Variation Evolution as Genetic Change. Name Class Date

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

11.1. A population shares a common gene pool. The Evolution of Populations CHAPTER 11. Fill in the concept map below.

Genetic Algorithm and Neural Network

The Making of the Fittest: Natural Selection in Humans

Genotype Editing and the Evolution of Regulation and Memory

Chapter 8. An Introduction to Population Genetics

A New Approach to Solve Multiple Traveling Salesmen Problem by Clonal Selection Algorithm

Optimal Operator Assignment In An Assembly Line Using Genetic Algorithm

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

Genetic Algorithms and Sensitivity Analysis in Production Planning Optimization

Implementation of Genetic Algorithm for Agriculture System

Evolutionary Computation Applied to. Combinatorial Optimisation Problems

Research and Applications of Shop Scheduling Based on Genetic Algorithms

A Grouping Genetic Algorithm for the Pickup and Delivery Problem with Time Windows

REVIEW 5: EVOLUTION UNIT. A. Top 10 If you learned anything from this unit, you should have learned:

Proceeding, Seminar of Intelligent Technology and Its Applications (SITIA 2000) Graha Institut Teknologi Sepuluh Nopember, Surabaya, 19 April 2000

Lab 8: Population Genetics and Evolution. This may leave a bad taste in your mouth

Evolving Bidding Strategies for Multiple Auctions

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

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

Chapter 14: Genes in Action

A Fast Genetic Algorithm with Novel Chromosome Structure for Solving University Scheduling Problems

Package DNABarcodes. March 1, 2018

Transcription:

Genetic Algorithms Sesi 14 Optimization Techniques Mathematical Programming Network Analysis Branch & Bound Simulated Annealing Tabu Search Classes of Search Techniques Calculus Base Techniqes Fibonacci Tabu Search Sort Search Techniqes Guided random search techniqes Hill Climbing Simulated Anealing Genetic Programming DFS Enumerative Techniqes Dynamic Programming Evolutionary Algorithms Genetic Algorithms BFS IF-UTAMA 1 The Metaphor The Metaphor (cont) Based on Darwinian Paradigm Reproduction Competition Optimization problem Environment Nature A set of feasible solutions Nature A population of organisms (species) Survive Selection Intrinsically a robust search and optimization mechanism Feasible solutions Solutions quality (fitness function) Individuals living in that environment Individual s degree of adaptation to its surrounding environment Stochastic operators Iteratively applying a set of stochastic operators on a set of feasible solutions Selection, recombination and mutation in nature s evolutionary process Evolution of populations to suit their environment IF-UTAMA 6 IF-UTAMA 1

Conceptual Algorithm initiate & evaluate The Evolutionary Cycle selection population parents evaluated offspring modification evaluation discard modified offspring deleted members Introduction 1 Inspired by natural evolution Population of individuals Individual is feasible solution to problem Each individual is characterized by a Fitness function Higher fitness is better solution Based on their fitness, parents are selected to reproduce offspring for a new generation Fitter individuals have more chance to reproduce New generation has same size as old generation; old generation dies Offspring has combination of properties of two parents If well designed, population will converge to optimal solution Algorithm BEGIN Generate initial population; Compute fitness of each individual; REPEAT /* New generation /* FOR population_size / 2 DO Select two parents from old generation; /* biased to the fitter ones */ Recombine parents for two offspring; Compute fitness of offspring; Insert offspring in new generation END FOR UNTIL population has converged END Example of convergence Introduction 2 Reproduction mechanisms have no knowledge of the problem to be solved Link between genetic algorithm and problem: Coding Fitness function IF-UTAMA 2

Basic principles 1 Basic principles 2 Coding Coding or Representation String with all parameters Fitness function Parent selection Reproduction Crossover Mutation Convergence When to stop An individual is characterized by a set of parameters: Genes The genes are joined into a string: Chromosome The chromosome forms the genotype The genotype contains all information to construct an organism: the phenotype Reproduction is a dumb process on the chromosome of the genotype Fitness is measured in the real world ( struggle for life ) of the phenotype Parameters of the solution (genes) are concatenated to form a string (chromosome) All kind of alphabets can be used for a chromosome (numbers, characters), but generally a binary alphabet is used Order of genes on chromosome can be important Generally many different codings for the parameters of a solution are possible Good coding is probably the most important factor for the performance of a GA In many cases many possible chromosomes do not code for feasible solutions Representation Possible individual s encoding Bit strings (0101... 1100) Real numbers (43.2-33.1... 0.0 89.2) Permutations of element (E11 E3 E7... E1 E15) Lists of rules (R1 R2 R3... R22 R23) Program elements (genetic programming)... any data structure... Representation (cont) When choosing an encoding method rely on the following key ideas Use a data structure as close as possible to the natural representation Write appropriate genetic operators as needed If possible, ensure that all genotypes correspond to feasible solutions If possible, ensure that genetic operators preserve feasibility Encoding Fitness Evaluation Reproduction Survivor Selection IF-UTAMA 3

Encoding Design alternative individual (chromosome) Single design choice gene Design objectives fitness Problem Example Schedule n jobs on m processors such that the maximum span is minimized. Design alternative: job i ( i=1,2, n) is assigned to processor j (j=1,2,,m) Individual: A n-vector x such that x i = 1,,or m Design objective: minimize the maximal span Fitness: the maximal span for each processor Reproduction Reproduction operators Crossover Mutation Crossover Reproduction Two parents produce two offspring There is a chance that the chromosomes of the two parents are copied unmodified as offspring There is a chance that the chromosomes of the two parents are randomly recombined (crossover) to form offspring Generally the chance of crossover is between 0.6 and 1.0 Mutation There is a chance that a gene of a child is changed randomly Generally the chance of mutation is low (e.g. 0.001) Reproduction Operators Crossover Generating offspring from two selected parents Single point crossover Two point crossover (Multi point crossover) Uniform crossover One-point crossover 1 Randomly one position in the chromosomes is chosen Child 1 is head of chromosome of parent 1 with tail of chromosome of parent 2 Child 2 is head of 2 with tail of 1 Randomly chosen position Parents: 1010001110 0011010010 Offspring: 0101010010 0011001110 IF-UTAMA 4

Two-point crossover Reproduction Operators comparison Uniform crossover Randomly two positions in the chromosomes are chosen Avoids that genes at the head and genes at the tail of a chromosome are always split when recombined Randomly chosen positions Parents: 1010001110 0011010010 Single point crossover Cross point Two point crossover (Multi point crossover) A random mask is generated The mask determines which bits are copied from one parent and which from the other parent Bit density in mask determines how much material is taken from the other parent (takeover parameter) Mask: 0110011000 (Randomly generated) Parents: 1010001110 0011010010 Offspring: 0101010010 0011001110 Offspring: 0011001010 1010010110 Reproduction Operators Uniform crossover Is uniform crossover better than single crossover point? Trade off between Exploration: introduction of new combination of features Exploitation: keep the good features in the existing solution Problems with crossover Depending on coding, simple crossovers can have high chance to produce illegal offspring E.g. in TSP with simple binary or path coding, most offspring will be illegal because not all cities will be in the offspring and some cities will be there more than once Uniform crossover can often be modified to avoid this problem E.g. in TSP with simple path coding: Where mask is 1, copy cities from one parent Where mask is 0, choose the remaining cities in the order of the other parent Reproduction Operators Mutation Generating new offspring from single parent Maintaining the diversity of the individuals Crossover can only explore the combinations of the current gene pool Mutation can generate new genes IF-UTAMA 5

Reproduction Operators Control parameters: population size, crossover/mutation probability Problem specific Increase population size Increase diversity and computation time for each generation Increase crossover probability Increase the opportunity for recombination but also disruption of good combination Increase mutation probability Closer to randomly search Help to introduce new gene or reintroduce the lost gene Varies the population Usually using crossover operators to recombine the genes to generate the new population, then using mutation operators on the new population Example Example: the MAXONE problem Suppose we want to maximize the number of ones in a string of l binary digits Is it a trivial problem? It may seem so because we know the answer in advance However, we can think of it as maximizing the number of correct answers, each encoded by 1, to l yes/no difficult questions` Example (cont) An individual is encoded (naturally) as a string of l binary digits The fitness f of a candidate solution to the MAXONE problem is the number of ones in its genetic code We start with a population of n random strings. Suppose that l = 10 and n = 6 Example (initialization) We toss a fair coin 60 times and get the following initial population: s 1 = 1111010101 f (s 1 ) = 7 s 2 = 0111000101 f (s 2 ) = 5 s 3 = 1110110101 f (s 3 ) = 7 s 4 = 0100010011 f (s 4 ) = 4 s 5 = 1110111101 f (s 5 ) = 8 s 6 = 0100110000 f (s 6 ) = 3 Example (selection1) Next we apply fitness proportionate selection with the roulette wheel method: f ( i) Individual i will have a f ( i) We repeat the extraction as many times as the number of individuals we need to have the same parent population size (6 in our case) probability to be chosen n 1 4 2 3 i Area is Proportio nal to fitness value IF-UTAMA 6

Example (selection2) Suppose that, after performing selection, we get the following population: s 1` = 1111010101 (s 1 ) s 2` = 1110110101 (s 3 ) s 3` = 1110111101 (s 5 ) s 4` = 0111000101 (s 2 ) s 5` = 0100010011 (s 4 ) s 6` = 1110111101 (s 5 ) Example (crossover1) Next we mate strings for crossover. For each couple we decide according to crossover probability (for instance 0.6) whether to actually perform crossover or not Suppose that we decide to actually perform crossover only for couples (s 1`, s 2`) and (s 5`, s 6`). For each couple, we randomly extract a crossover point, for instance 2 for the first and 5 for the second Example (crossover2) Before crossover: s 1` = 1111010101 s 2` = 1110110101 After crossover: s 1`` = 1110110101 s 2`` = 1111010101 s 5` = 0100010011 s 6` = 1110111101 s 5`` = 0100011101 s 6`` = 1110110011 Example (mutation1) The final step is to apply random mutation: for each bit that we are to copy to the new population we allow a small probability of error (for instance 0.1) Before applying mutation: s 1`` = 1110110101 s 2`` = 1111010101 s 3`` = 1110111101 s 4`` = 0111000101 s 5`` = 0100011101 s 6`` = 1110110011 Example (mutation2) After applying mutation: s 1``` = 1110100101 f (s 1``` ) = 6 s 2``` = 1111110100 f (s 2``` ) = 7 s 3``` = 1110101111 f (s 3``` ) = 8 s 4``` = 0111000101 f (s 4``` ) = 5 s 5``` = 0100011101 f (s 5``` ) = 5 s 6``` = 1110110001 f (s 6``` ) = 6 Example (end) In one generation, the total population fitness changed from 34 to 37, thus improved by ~9% At this point, we go through the same process all over again, until a stopping criterion is met IF-UTAMA 7

Another Example: The Traveling Salesman Problem (TSP) The traveling salesman must visit every city in his territory exactly once and then return to the starting point; given the cost of travel between all cities, how should he plan his itinerary for minimum total cost of the entire tour? TSP NP-Complete Note: we shall discuss a single possible approach to approximate the TSP by GAs TSP (Representation, Evaluation, Initialization and Selection) A vector v = (i 1 i 2 i n ) represents a tour (v is a permutation of {1,2,,n}) Fitness f of a solution is the inverse cost of the corresponding tour Initialization: use either some heuristics, or a random sample of permutations of {1,2,,n} We shall use the fitness proportionate selection TSP (Crossover1) OX builds offspring by choosing a sub-sequence of a tour from one parent and preserving the relative order of cities from the other parent and feasibility Example: p 1 = (1 2 3 4 5 6 7 8 9) and p 2 = (4 5 2 1 8 7 6 9 3) First, the segments between cut points are copied into offspring o 1 = (x x x 4 5 6 7 x x) and o 2 = (x x x 1 8 7 6 x x) TSP (Crossover2) Next, starting from the second cut point of one parent, the cities from the other parent are copied in the same order The sequence of the cities in the second parent is 9 3 4 5 2 1 8 7 6 After removal of cities from the first offspring we get 9 3 2 1 8 This sequence is placed in the first offspring o 1 = (2 1 8 4 5 6 7 9 3), and similarly in the second o 2 = (3 4 5 1 8 7 6 9 2) TSP (Inversion) The sub-string between two randomly selected points in the path is reversed Example: (1 2 3 4 5 6 7 8 9) is changed into (1 2 7 6 5 4 3 8 9) Such simple inversion guarantees that the resulting offspring is a legal tour Referensi 1. Jaap Hofstede, Beasly, Bull, Martin.2000. Genetic Algorithms And other approaches for similar applications [online] url : http://web.cecs.pdx.edu/~mperkows/temp/0101.genetic- Algorithm.ppt Tanggal akses: 21 Mei 2011 2. Assaf Zaritsky.-. Introduction to s[online] url : http://www.cs.bgu.ac.il/~sipper/courses/ecal051/assafga.ppt Tanggal Akses:21 Mei 2011 IF-UTAMA 8