Genetic Algorithm. Outline

Similar documents
CSC 4510 Machine Learning

Lecture 9 Evolutionary Computation: Genetic algorithms

DETECTING THE FAULT FROM SPECTROGRAMS BY USING GENETIC ALGORITHM TECHNIQUES

Evolutionary Computation

GENETIC ALGORITHM FOR CELL DESIGN UNDER SINGLE AND MULTIPLE PERIODS

Zebo Peng Embedded Systems Laboratory IDA, Linköping University

Search. Search is a key component of intelligent problem solving. Get closer to the goal if time is not enough

Lecture 22. Introduction to Genetic Algorithms

An Effective Chromosome Representation for Evolving Flexible Job Shop Schedules

Department of Mathematics, Graphic Era University, Dehradun, Uttarakhand, India

Fundamentals of Genetic Algorithms

Chapter 8: Introduction to Evolutionary Computation

Evolutionary computation

Lecture 15: Genetic Algorithms

Genetic Algorithm approach to Solve Shortest Path and Travelling Salesman Problem

Analysis of Algorithms. Unit 5 - Intractable Problems

Determination of Optimal Tightened Normal Tightened Plan Using a Genetic Algorithm

Scaling Up. So far, we have considered methods that systematically explore the full search space, possibly using principled pruning (A* etc.).

Shortening Picking Distance by using Rank-Order Clustering and Genetic Algorithm for Distribution Centers

Exercises NP-completeness

An artificial chemical reaction optimization algorithm for. multiple-choice; knapsack problem.

The Role of Crossover in Genetic Algorithms to Solve Optimization of a Function Problem Falih Hassan

Evolutionary Functional Link Interval Type-2 Fuzzy Neural System for Exchange Rate Prediction

V. Evolutionary Computing. Read Flake, ch. 20. Assumptions. Genetic Algorithms. Fitness-Biased Selection. Outline of Simplified GA

V. Evolutionary Computing. Read Flake, ch. 20. Genetic Algorithms. Part 5A: Genetic Algorithms 4/10/17. A. Genetic Algorithms

IV. Evolutionary Computing. Read Flake, ch. 20. Assumptions. Genetic Algorithms. Fitness-Biased Selection. Outline of Simplified GA

Genetic Algorithms & Modeling

Introduction to Evolutionary Computation

Local Search & Optimization

Evolutionary Algorithms: Introduction. The Czech Institute of Informatics, Robotics and Cybernetics CTU Prague

Adaptive Generalized Crowding for Genetic Algorithms

Optimal Operation of Large Power System by GA Method

Intelligens Számítási Módszerek Genetikus algoritmusok, gradiens mentes optimálási módszerek

Stochastic Search: Part 2. Genetic Algorithms. Vincent A. Cicirello. Robotics Institute. Carnegie Mellon University

Crossover Techniques in GAs

Genetic Algorithms and Genetic Programming Lecture 17

Using Evolutionary Techniques to Hunt for Snakes and Coils

CSC 421: Algorithm Design & Analysis. Spring 2018

A GA Mechanism for Optimizing the Design of attribute-double-sampling-plan

OPTIMIZED RESOURCE IN SATELLITE NETWORK BASED ON GENETIC ALGORITHM. Received June 2011; revised December 2011

Totally unimodular matrices. Introduction to integer programming III: Network Flow, Interval Scheduling, and Vehicle Routing Problems

Interplanetary Trajectory Optimization using a Genetic Algorithm

Havrda and Charvat Entropy Based Genetic Algorithm for Traveling Salesman Problem

Genetic Algorithms. Seth Bacon. 4/25/2005 Seth Bacon 1

CHAPTER 4 INTRODUCTION TO DISCRETE VARIABLE OPTIMIZATION

Overview. Optimization. Easy optimization problems. Monte Carlo for Optimization. 1. Survey MC ideas for optimization: (a) Multistart

What is an integer program? Modelling with Integer Variables. Mixed Integer Program. Let us start with a linear program: max cx s.t.

Mohammad Saidi-Mehrabad a, Samira Bairamzadeh b,*

Local Search & Optimization

Introduction to integer programming III:

This means that we can assume each list ) is

Computational statistics

Approximating the step change point of the process fraction nonconforming using genetic algorithm to optimize the likelihood function

Parallel Genetic Algorithms

Structure Design of Neural Networks Using Genetic Algorithms

Probability (Phi) Proportion BBs (Pbb) 1. Proportion BBs (Pbb) Pop Size (n) Pop Size (n)

Differential Evolution: a stochastic nonlinear optimization algorithm by Storn and Price, 1996

Evolutionary Design I

Programmers A B C D Solution:

Evolutionary Computation: introduction

Abstract In this paper we consider a parallel and distributed computation of genetic algorithms on loosely-coupled multiprocessor systems. Genetic Alg

CHAPTER 3 FUNDAMENTALS OF COMPUTATIONAL COMPLEXITY. E. Amaldi Foundations of Operations Research Politecnico di Milano 1

Tabu Search. Biological inspiration is memory the ability to use past experiences to improve current decision making.

how should the GA proceed?

In complexity theory, algorithms and problems are classified by the growth order of computation time as a function of instance size.

Q = Set of states, IE661: Scheduling Theory (Fall 2003) Primer to Complexity Theory Satyaki Ghosh Dastidar

Polynomial-time reductions. We have seen several reductions:

TUTORIAL: HYPER-HEURISTICS AND COMPUTATIONAL INTELLIGENCE

ARTIFICIAL NEURAL NETWORK WITH HYBRID TAGUCHI-GENETIC ALGORITHM FOR NONLINEAR MIMO MODEL OF MACHINING PROCESSES

Matt Heavner CSE710 Fall 2009

Data Warehousing & Data Mining

Evolutionary computation

Binary Particle Swarm Optimization with Crossover Operation for Discrete Optimization

Evolutionary Computation. DEIS-Cesena Alma Mater Studiorum Università di Bologna Cesena (Italia)

Algorithms. Outline! Approximation Algorithms. The class APX. The intelligence behind the hardware. ! Based on

OPTIMAL CAPACITORS PLACEMENT IN DISTRIBUTION NETWORKS USING GENETIC ALGORITHM: A DIMENSION REDUCING APPROACH

4/12/2011. Chapter 8. NP and Computational Intractability. Directed Hamiltonian Cycle. Traveling Salesman Problem. Directed Hamiltonian Cycle

Genetic Algorithm for Solving the Economic Load Dispatch

Evolutionary Computation Theory. Jun He School of Computer Science University of Birmingham Web: jxh

Genetic Algorithms: Basic Principles and Applications

The Genetic Algorithm is Useful to Fitting Input Probability Distributions for Simulation Models

Transportation Problem

Multi-objective approaches in a single-objective optimization environment

An Analysis of Diploidy and Dominance in Genetic Algorithms

Towards Automatic Design of Adaptive Evolutionary Algorithms. Ayman Srour - Patrick De Causmaecker

Computational intelligence methods

Performance Evaluation of Best-Worst Selection Criteria for Genetic Algorithm

A Comparison of GAs Penalizing Infeasible Solutions and Repairing Infeasible Solutions on the 0-1 Knapsack Problem

Evolutionary Algorithms: Introduction. Department of Cybernetics, CTU Prague.

Centric Selection: a Way to Tune the Exploration/Exploitation Trade-off

Contents Economic dispatch of thermal units

Design Optimization of an Electronic Component with an Evolutionary Algorithm Using the COMSOL-MATLAB LiveLink

Section #2: Linear and Integer Programming

AUTOMATED CREATION AND SELECTION OF CRYPTOGRAPHIC PRIMITIVES

Representation and Hidden Bias II: Eliminating Defining Length Bias in Genetic Search via Shuffle Crossover

Heuristics for airport operations

Local search algorithms. Chapter 4, Sections 3 4 1

A Genetic Algorithm Approach for Doing Misuse Detection in Audit Trail Files

TOPOLOGY STRUCTURAL OPTIMIZATION USING A HYBRID OF GA AND ESO METHODS

A Genetic Algorithm for Optimization Design of Thermoacoustic Refrigerators

Transcription:

Genetic Algorithm 056: 166 Production Systems Shital Shah SPRING 2004 Outline Genetic Algorithm (GA) Applications Search space Step-by-step GA Mechanism Examples GA performance Other GA examples 1

Genetic Algorithm (GA) GA s are search algorithms based on the mechanics of natural genetics GA s are a class of computer programs that use simulated evolution to solve problems Developed by John Holland David Goldberg Basic operations of GA Selection Crossover Mutation GA Search Space Best Solutions Feasible Search Space Good Solutions Feasible Solutions 2

Nonlinear Function Optimization Nonlinear Function 12 10 Global Optimal Function Local Optimal Function Value 8 6 4 2 0 0 5 10 15 20 25 30 35 40 45 Observations When to Apply GA Search space is large, complex or poorly understood Domain knowledge is scarce or expert knowledge is difficult to encode to narrow the search space No mathematical analysis is available Traditional search methods fail Optimization of NP-hard problems Complex nonlinear optimization Planning and scheduling problems Resource allocation problems Traveling salesman problem (TSP) Layouts 3

GA Applications All optimization problems Design problems (e.g. Gear designs) Maintenance and replacement policies Designing new musical tunes Development of control signatures Industry applications Manufacturing Airline and defense Business and finance Medical and pharmaceuticals Power plants GA Example Maximize number of 1 s in a binary search space of n = 5 Binary search space is B1 B2 B3 B4 B5 Possible solutions 1 0 0 0 0, 1 0 1 0 0, 1 0 0 1 1, and so on The best solution is 1 1 1 1 1 4

Feasible Search Space GA Example Best Solutions Good Solutions Feasible Solutions GA Flow Chart Problem Specific Inputs for the GA Coding Scheme Initial Population Objective Function Old Generation Mutation New Generation Objective Function GA Operators GA Operators Selection Cross Over No Termination Condition Yes Termination 5

Coding Scheme Important step in GA formulation Problem specific Contain information in some form about the solution Forms Chromosomes Potential solutions Search space with n bit positions Binary bit position Either 0 or 1 Coding scheme Bit1 Bit2 Bit3 Bit4 Bit5 Chromosome Possible solutions 1 0 0 0 0, 1 0 1 0 0, 1 0 0 1 1, and so on Initial Population Initial population Randomly created Each bit is randomly chosen {0,1} User defined population size (10 1000) Initial Population B1 B2 B3 B4 B5 0 0 0 1 0 1 1 0 1 0 0 1 0 1 0 1 0 1 0 1 1 0 0 0 0 1 1 0 0 0 0 1 0 0 0 0 1 0 0 1 1 0 0 1 1 1 1 0 0 1 6

GA Objective Function Most important step in GA formulation Problem specific Domain knowledge used Provides a means to measure the quality of the generated solutions Can optimize complex nonlinear function Maximize number of 1 s in a binary search space of n = 5 Objective function = Σ B i i = 1...5 GA Objective Function Generation B1 B2 B3 B4 B5 Sum (Bi) Obj Function 0 0 0 1 0 0+0+0+1+0 1 1 1 0 1 0 1+1+0+1+0 3 0 1 0 1 0 0+1+0+1+0 2 1 0 1 0 1 1+0+1+0+1 3 1 0 0 0 0 1+0+0+0+0 1 1 1 0 0 0 1+1+0+0+0 2 0 1 0 0 0 0+1+0+0+0 1 0 1 0 0 1 0+1+0+0+1 2 1 0 0 1 1 1+0+0+1+1 3 1 1 0 0 1 1+1+0+0+1 3 7

GA Selection Preference to better individuals to survive Exploitation of knowledge Better objective function Better individuals Various schemes Roulette wheel selection Tournament selection Provides two better chromosomes for other GA operators GA Crossover Prime distinguishing factor of GA from other optimization techniques Exploitation of knowledge Various Schemes Single and double point crossover Specialized crossover TSP problem Single point crossover Select two chromosomes Randomly select a bit position Slice the chromosomes at that position Exchange the slice 2 of chromosome 1 with slice 2 of chromosome 2 and vice versa Perform crossover with a probability (80%) 8

GA Cross Over Selection B1 B2 B3 B4 B5 Obj Function 1 1 0 0 0 2 0 1 0 1 0 2 Chromosome 1 Chromosome 2 Crossover Site B1 B2 B3 B4 B5 Obj Function 1 1 0 0 0 2 0 1 0 1 0 2 Slice 1 Slice 2 Crossover B1 B2 B3 B4 B5 Obj Function 1 1 0 1 0 3 0 1 0 0 0 1 Crossover site = 3 Feasible Search Space GA Search Space Best Solutions Good Solutions Feasible Solutions 9

GA Mutation Maintains diversity within the population Inhibits premature convergence Provides mechanism for exploration of search space Special mutation operator needed for TSP Mutation operator Select a chromosome after crossover At each bit decide, with a probability, to change the bit value Probability is generally low (0.001) GA Mutation After Crossover B1 B2 B3 B4 B5 Obj Function 1 1 0 1 0 3 0 1 0 0 0 1 Mutation Site B1 B2 B3 B4 B5 Obj Function 1 1 0 1 0 3 0 1 0 0 0 1 Mutation B1 B2 B3 B4 B5 Obj Function 1 1 1 1 0 4 0 0 0 0 0 0 Bit positions chosen for mutation 10

GA New Population Repeat the selection, crossover, and mutation process till new population is formed New Population Objective B1 B2 B3 B4 B5 Function 0 1 0 1 0 2 1 0 0 1 0 2 0 1 0 1 0 2 1 0 1 0 0 2 1 0 0 0 1 2 1 1 0 1 0 3 0 1 0 0 0 1 1 1 1 1 0 4 1 0 0 0 1 2 1 1 0 1 1 4 GA Flow Chart Coding Scheme Mutation Initial Population Objective Function Old Generation Selection Cross Over No New Generation Objective Function Termination Condition Yes Termination 11

GA Performance Measures On-line performance measure Cumulative average of all objective function values of all chromosomes that have occurred in the evolution Off-line performance measure Cumulative average of all objective function values of the best chromosomes that have occurred in each generation of the evolution GA Performance GA Generations Generation p Obj B1 B2 B3 B4 B5 Function 0 1 0 0 1 2 1 0 1 0 1 3 0 1 0 1 0 2 1 1 1 0 1 4 1 0 0 0 1 2 1 1 1 1 0 4 1 1 0 0 0 2 1 1 1 1 0 4 1 0 0 0 1 2 1 0 0 0 1 2 Min 2 Average Max 2.7 4 Generation n Obj B1 B2 B3 B4 B5 Function 1 0 0 1 1 3 1 1 0 1 1 4 0 1 0 1 0 2 1 1 1 1 1 5 1 0 1 0 1 3 1 0 1 1 1 4 0 1 1 1 0 3 1 1 1 1 1 5 1 0 0 0 1 2 0 1 1 1 1 4 Min 2 Average Max 3.5 5 Final Generation Obj B1 B2 B3 B4 B5 Function 1 1 1 1 1 5 1 1 1 1 1 5 0 1 1 1 0 3 1 1 1 1 1 5 1 0 1 1 1 4 1 1 1 1 1 5 1 1 1 1 0 4 1 1 1 1 1 5 1 0 1 1 1 4 1 1 1 1 1 5 Min 3 Average Max 4.5 5 12

GA Performance GA Performance 6 5 Objective Function 4 3 2 1 Max Objective Function Min Objective Function Average Objective Function 0 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 Generation Assignment Problem Assignment Problem 5 machine 5 jobs/parts Minimize the total cost of assignment Jobs / Parts Machines M1 M2 M3 M4 M5 J1 25 20 24 28 5 J2 27 10 20 17 7 J3 18 25 23 2 8 J4 18 12 12 19 14 J5 15 13 14 11 19 Cij C13 = 24 13

Assignment Problem Min = i j X ij X X ij ij C ij * X = 1 j = 1,2,..., n = 1 i = 1,2,..., n = Binary {0,1} ij GA Coding Scheme Machines Sequence Fixed M1 M2 M3 M4 M5 Chromosome 1 1 2 3 4 5 Feasible Chromosome 2 1 1 2 2 3 Infeasible Jobs / Chromosome 3 1 3 4 4 5 Infeasible Parts Chromosome 4 5 3 2 4 1 Feasible Chromosome 5 2 4 5 1 3 Feasible Population 14

GA Objective Function Minimize the total cost of assignment Take into account the infeasibility of the solutions Apply special crossover and mutation operators Replaces infeasible solutions with ONLY feasible solutions Allow infeasibility in the population but apply a heavy penalty for each kind of infeasibility Discourages infeasibility in the population Min = C K = 10000 GA Objective Function ij * X ij + K * Infeasibility Machines M1 M2 M3 M4 M5 J1 25 20 24 28 5 Jobs J2 27 10 20 17 7 / J3 18 25 23 2 8 Parts J4 18 12 12 19 14 J5 15 13 14 11 19 Cij C13 = 24 M1 M2 M3 M4 M5 Obj Function Chromosome 1 1 2 3 4 5 25+10+23+19+19+1000*0 96 Feasible Chromosome 2 1 1 2 2 3 25+20+20+17+8+1000*2 2090 Infeasible Chromosome 3 1 3 4 4 5 25+25+12+19+19+1000*1 1100 Infeasible Chromosome 4 5 3 2 4 1 15+25+20+19+5+1000*0 84 Feasible Chromosome 5 2 4 5 1 3 27+12+14+28+8+1000*0 89 Feasible Chromosome 6 2 4 5 3 1 27+12+14+2+5+1000*0 60 Feasible 15

Other GA Examples http://cs.felk.cvut.cz/~xobitko/ga/ http://www.crhc.uiuc.edu/igate/ga_example/g a_example.html http://www4.ncsu.edu/eos/users/d/dhloughl/pu blic/stable.htm http://www.doc.ic.ac.uk/~nd/surprise_96/journal /vol4/tcw2/report.html Questions 16