Derivative-based Optimization (chapter 6)

Similar documents
Evolutionary Computation. Lecture 3. Evolutionary Computation. X 2 example: crossover. x 2 example: selection

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

Evolutionary Computation. Lecture 1 January, 2007 Ivan Garibay

Introduction To Genetic Algorithms

Evolutionary Computation

2. Genetic Algorithms - An Overview

Part 1: Motivation, Basic Concepts, Algorithms

Evolutionary Algorithms

College of information technology Department of software

Introduction to Artificial Intelligence. Prof. Inkyu Moon Dept. of Robotics Engineering, DGIST

Using Multi-chromosomes to Solve. Hans J. Pierrot and Robert Hinterding. Victoria University of Technology

Optimisation and Operations Research

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

Genetic Algorithms for Optimizations

Genetic Algorithm: An Optimization Technique Concept

Machine Learning: Algorithms and Applications

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

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

Selecting Genetic Algorithm Operators for CEM Problems

Introduction To Genetic Algorithms

10. Lecture Stochastic Optimization

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

CSE /CSE6602E - Soft Computing Winter Lecture 9. Genetic Algorithms & Evolution Strategies. Guest lecturer: Xiangdong An

CapSel GA Genetic Algorithms.

Machine Learning. Genetic Algorithms

Machine Learning. Genetic Algorithms

From Genetics to Genetic Algorithms

9/17/14 LOCAL SEARCH. Today. Reading. Read AIMA Ch Objectives. Simulated Annealing Genetic algorithms Gradient ascent

Intelligent Techniques Lesson 4 (Examples about Genetic Algorithm)

Genetic Algorithms. Part 3: The Component of Genetic Algorithms. Spring 2009 Instructor: Dr. Masoud Yaghini

Genetic Algorithm: A Search of Complex Spaces

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

Evolutionary Algorithms

Introduction to Genetic Algorithm (GA) Presented By: Rabiya Khalid Department of Computer Science

Plan for today GENETIC ALGORITHMS. Randomised search. Terminology: The GA cycle. Decoding genotypes

Genetic Algorithms and Genetic Programming Lecture 13

Use of Genetic Algorithms in Discrete Optimalization Problems

EVOLUTIONARY ALGORITHMS AT CHOICE: FROM GA TO GP EVOLŪCIJAS ALGORITMI PĒC IZVĒLES: NO GA UZ GP

Evolutionary Algorithms - Population management and popular algorithms Kai Olav Ellefsen

Keywords Genetic Algorithm (GA), Evolutionary, Representation, Binary, Floating Point, Operator

IMPLEMENTATION OF AN OPTIMIZATION TECHNIQUE: GENETIC ALGORITHM

Energy management using genetic algorithms

Performance Analysis of Multi Clustered Parallel Genetic Algorithm with Gray Value

Generational and steady state genetic algorithms for generator maintenance scheduling problems

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

Genetic Algorithm and Application in training Multilayer Perceptron Model

CHAPTER 4 LINEAR ANTENNA ARRAY SYNTHESIS USING GENETIC ALGORITHM

Assoc. Prof. Rustem Popa, PhD

Genetic Algorithms. Moreno Marzolla Dip. di Informatica Scienza e Ingegneria (DISI) Università di Bologna.

Genetic algorithms and code optimization. A quiet revolution

What is an Evolutionary Algorithm? Presented by: Faramarz Safi (Ph.D.) Faculty of Computer Engineering Islamic Azad University, Najafabad Branch

COMPARATIVE STUDY OF SELECTION METHODS IN GENETIC ALGORITHM

Design and Implementation of Genetic Algorithm as a Stimulus Generator for Memory Verification

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

CHAPTER 4 MAINTENANCE OPTIMIZATION USING GENETIC ALGORITHM

GENETIC ALGORITHM A NOBLE APPROACH FOR ECONOMIC LOAD DISPATCH

Computational Intelligence Lecture 20:Intorcution to Genetic Algorithm

An introduction to genetic algorithms for neural networks

TIMETABLING EXPERIMENTS USING GENETIC ALGORITHMS. Liviu Lalescu, Costin Badica

FacePrints, Maze Solver and Genetic algorithms

initial set of random solutions called population satisfying boundary and/or system

PARALLEL LINE AND MACHINE JOB SCHEDULING USING GENETIC ALGORITHM

Genetic'Algorithms'::' ::'Algoritmi'Genetici'1

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

Timetabling with Genetic Algorithms

Implementation of CSP Cross Over in Solving Travelling Salesman Problem Using Genetic Algorithms

A Gene Based Adaptive Mutation Strategy for Genetic Algorithms

A Study on Transportation Algorithm of Bi-Level Logistics Nodes Based on Genetic Algorithm

PERFORMANCE EVALUATION OF GENETIC ALGORITHMS ON LOADING PATTERN OPTIMIZATION OF PWRS

Fig Flowchart of bacterial evolutionary algorithm

A Genetic Algorithm on Inventory Routing Problem

An introduction to evolutionary computation

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

Air Pollutants Monitoring Data Recovery of Henhouse Based on QGSA-SVM

A HYBRID ALGORITHM TO MINIMIZE THE NUMBER OF TARDY JOBS IN SINGLE MACHINE SCHEDULING

CHAPTER 3 RESEARCH METHODOLOGY

Genetic Algorithms and Genetic Programming Lecture 14

Genetic Algorithms in Matrix Representation and Its Application in Synthetic Data

Evolutionary Computation for Minimizing Makespan on Identical Machines with Mold Constraints

Genetic approach to solve non-fractional knapsack problem S. M Farooq 1, G. Madhavi 2 and S. Kiran 3

Hybridization of Genetic Algorithm and Neural Network for Optimization Problem

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

Deterministic Crowding, Recombination And Self-Similarity

Introduction Evolutionary Algorithm Implementation

Structured System Analysis Methodology for Developing a Production Planning Model

Selecting an Optimal Compound of a University Research Team by Using Genetic Algorithms

DEVELOPMENT OF MULTI-OBJECTIVE SIMULATION-BASED GENETIC ALGORITHM FOR SUPPLY CHAIN CYCLIC PLANNING AND OPTIMISATION

Feature Selection for Predictive Modelling - a Needle in a Haystack Problem

Genetic algorithms. History

PCG: Search Revisited, Evolution, and More

Genetic Programming for Symbolic Regression

CHAPTER 3 STOCK PRICE PREDICTION USING MODIFIED GENETIC ALGORITHM AND SIMULATED ANNEALING

Comp215: Genetic Algorithms - Part 1

GENETIC ALGORITHMS. Introduction to Genetic Algorithms

Research and Solution for the Shortest Routing Problem of Logistics Vehicle Based on Genetic Algorithm

Minimizing Makespan for Machine Scheduling and Worker Assignment Problem in Identical Parallel Machine Models Using GA

ESQUIVEL S.C., LEIVA H. A., GALLARD, R.H.

Optimizing Maintenance Activities Using HGA and Monte Carlo Simulation

AP BIOLOGY Population Genetics and Evolution Lab

Evolutionary Computation

Transcription:

Soft Computing: Derivative-base Optimization Derivative-based Optimization (chapter 6) Bill Cheetham cheetham@cs.rpi.edu Kai Goebel goebel@cs.rpi.edu used for neural network learning used for multidimensional input spaces Soft Computing: Derivative-based Optimization Steepest Descent Determine search direction according to an objective function s derivative information find locally steepest direction find best point on line repeat o 2 Page 1 1

Soft Computing: Derivative-based Optimization Newton s method Determine search direction according to an objective function s second derivative find Newton direction find best point on line repeat x x Steepest descent Newton s method both 3 Circular Contours Elliptical Contours Soft Computing: Derivative-based Optimization Peaks Function Issues with Derivative-based Optimization Assumes there is an objective function Only finds local minima/maxima Newton only works when close to minima/maxima Calculating derivatives could be difficult Example: Find the max. of the peaks function z = f(x, y) = 3*(1-x)^2*exp(-(x^2) - (y+1)^2) - 10*(x/5 - x^3 - y^5)*exp(- x^2-y^2) -1/3*exp(-(x+1)^2 - y^2). 4 Page 2 2

Soft Computing: Derivative-based Optimization Peaks Derivative 5 Derivatives of the peaks function dz/dx = -6*(1-x)*exp(-x^2-(y+1)^2) - 6*(1-x)^2*x*exp(-x^2- (y+1)^2) - 10*(1/5-3*x^2)*exp(-x^2-y^2) + 20*(1/5*x-x^3- y^5)*x*exp(-x^2-y^2) - 1/3*(-2*x-2)*exp(-(x+1)^2-y^2) dz/dy = 3*(1-x)^2*(-2*y-2)*exp(-x^2-(y+1)^2) + 50*y^4*exp(-x^2- y^2) + 20*(1/5*x-x^3-y^5)*y*exp(-x^2-y^2) + 2/3*y*exp(-(x+1)^2- y^2) d(dz/dx)/dx = 36*x*exp(-x^2-(y+1)^2) - 18*x^2*exp(-x^2- (y+1)^2) - 24*x^3*exp(-x^2-(y+1)^2) + 12*x^4*exp(-x^2-(y+1)^2) + 72*x*exp(-x^2-y^2) - 148*x^3*exp(-x^2-y^2) - 20*y^5*exp(- x^2-y^2) + 40*x^5*exp(-x^2-y^2) + 40*x^2*exp(-x^2-y^2)*y^5-2/3*exp(-(x+1)^2-y^2) - 4/3*exp(-(x+1)^2-y^2)*x^2-8/3*exp(- (x+1)^2-y^2)*x d(dz/dy)/dy = -6*(1-x)^2*exp(-x^2-(y+1)^2) + 3*(1-x)^2*(-2*y- 2)^2*exp(-x^2-(y+1)^2) + 200*y^3*exp(-x^2-y^2)-200*y^5*exp(- x^2-y^2) + 20*(1/5*x-x^3-y^5)*exp(-x^2-y^2) - 40*(1/5*x-x^3- y^5)*y^2*exp(-x^2-y^2) + 2/3*exp(-(x+1)^2-y^2)-4/3*y^2*exp(- (x+1)^2-y^2) Derivative-Free Optimization (chapter 7) Bill Cheetham cheetham@cs.rpi.edu Kai Goebel goebel@cs.rpi.edu 6 Page 3 3

Derivative-Free Optimization Genetic algorithms (GAs) Simulated annealing (SA) 7 Genetic Algorithms Motivation Look at what evolution brings us? - Vision - Hearing - Smell - Taste - Touch - Learning and reasoning Can we emulate the evolutionary process with today's fast computers? 8 Page 4 4

Genetic Algorithms Terminology: Population - a set of possible solutions to a problem Fitness function - how to evaluate the quality of a member of the population Encoding schemes - a binary representation for a member of the population Selection - how to determine which members of the population will survive to the next generation Crossover - combining two members of the population Mutation - changing a single member of the population Elitism - allowing the best members to pass to the next generation 9 Genetic Algorithms Binary encoding Chromosome (11, 6, 9) 1011 0110 1001 Crossover 1 0 0 1 1 1 1 0 Gene 1 0 0 1 0 0 1 0 1 0 1 1 0 0 1 0 1 0 1 1 1 1 1 0 Mutation Crossover point 1 0 0 1 1 1 1 0 1 0 0 1 1 0 1 0 10 Mutation bit Page 5 5

Genetic Algorithms Flowchart 10010110 01100010 10100100 10011001 01111101 Current generation Selection Elitism Crossover Mutation 10010110 01100010 10100100 10011101 01111001 Next generation 11 Genetic Algorithms Plotting the function 12 Page 6 6

Genetic Algorithms GA process: Initial population 5th generation 10th generation 13 Genetic Algorithms Performance profile 14 Page 7 7

Example Let us consider the equation: a+2b+3c+4d=30, where a,b,c,d are positive integers given the constraints 1 =< a,b,c,d =< 30 GA systems allow for a solution to be reached quicker since "better" solutions have a better chance of surviving and procreating, as opposed to random search 15 Example First we will choose 5 random initial solution sets Chrom (a,b,c,d) bit representation 1 (1,28,15,3) (00001 11100 01111 00011) 2 (14,9,2,4) (01110 01001 00010 00100) 3 (13,5,7,3) (01101 00101 00111 00011) 4 (23,8,16,19) (10111 01000 10000 10011) 5 (9,13,5,2) (01001 01101 00101 00010) 16 Page 8 8

Example fitness function a+2b+3c+4d - 30 Chromosome Fitness Value 1 114-30 =84 2 54-30 =24 3 58-30 =28 4 163-30 =133 5 58-30 =28 17 Example more desirable fitness values are more likely to be chosen as parents Chromosome Likelihood 1 (1/84)/0.135266 = 8.80% 2 (1/24)/0.135266 = 30.8% 3 (1/28)/0.135266 = 26.4% 4 (1/133)/0.135266 = 5.56% 5 (1/28)/0.135266 = 26.4% 18 Page 9 9

Example Crossover Father Mother Offspring (13 5,7,3) (1 28,15,3) (13,28,15,3) (9,13 5,2) (14,9 2,4) (9,13,2,4) (13,5,7 3) (9,13,5 2) (13,5,7,2) (14 9,2,4) (9 13,5,2) (14,13,5,2) (13,5 7, 3) (9,13 5, 2) (13,5,5,2) 19 Example Mutation Before-Mutation After Mutation (1,28,15,3) (1,29,15,3) (14,9,2,4) (14,25,2,4) (00001 11100 01111 00011) (00001 11101 01111 00011) (01110 01001 00010 00100) (01110 11001 00010 00100) 20 Page 10 10

Example Now we can calculate the fitness values for the new generation of offspring. Offspring Fitness Value (13,28,15,3) 126-30 =96 (9,13,2,4) 57-30 =27 (13,5,7,2) 57-30 =22 (14,13,5,2) 63-30 =33 (13,5,5,2) 46-30 =16 21 Last GA Slide 22 Page 11 11

Break up into groups of 3 or 4 Design a GA to determine the maximum of the peaks function in the range 2 < x < 3, -2 < y < 3 23 1) Design a binary chromosome that can represent the possible solutions accurate to two digits after the decimal point. Give an example of an (x, y) pair represented by the chromosome. 2) How do you decode your chromosome to evaluate the peaks function? 3) How do you determine the probability of selection? 4) What values do you use for population size, generations, elitism, crossover rate, mutation rate? Why did you pick these values? 2) How do you decode your chromosome to evaluate the peaks function? function num = bit2num(bit, range) % % bit2num([1 1 0 1], [0, 15]) % bit2num([0 1 1 0 0 0 1], [0, 127]) % Roger Jang, 12-24-94 integer = polyval(bit, 2); num = integer*((range(2)-range(1))/(2^length(bit)-1)) + range(1); 24 Page 12 12

3) How do you determine the probability of selection? % rescaling the fitness fitness = fitness - min(fitness); % keep it positive total = sum(fitness); if total == 0, fprintf(' Warning: converge to a single point\n'); fitness = ones(popu_s, 1)/popu_s; % sum is 1 else fitness = fitness/sum(fitness); % sum is 1 end cum_prob = cumsum(fitness); 25 GA Summary 26 Page 13 13

Genetic Algorithms Flowchart 10010110 01100010 10100100 10011001 01111101 Current generation Selection Elitism Crossover Mutation 10010110 01100010 10100100 10011101 01111001 Next generation 27 GA Issues 1) How to design the chromosome Chrom (a,b,c,d) (00001 11100 01111 00011) 2) How to create fitness function numerical ranking for best of population 3) How to set parameters population, generations, crossover, mutation GA s are good for Optimization 28 Page 14 14

Last GA Slide 29 Simulated Annealing Analogy 30 College is where your thoughts anneal - entertainment weekly magazine Page 15 15

Simulated Annealing Terminology: Objective function E(x): function to be optimized Move set: set of next points to explore Generating function: to select next point Acceptance function h( E, T): to determine if the selected point should be accept or not. Usually h( E, T) = 1/(1+exp( E/(cT)). Annealing (cooling) schedule: schedule for reducing the temperature T 31 Simulated Annealing Flowchart Select a new point xnew in the move sets via generating function Compute the obj. function E(xnew) Set x to xnew with prob. determined by h( E, T) Reduce temperature T 32 Page 16 16

Simulated Annealing Example: Travel Salesperson Problem (TSP) How to transverse n cities once and only once with a minimal total distance? 33 Simulated Annealing Move sets for TSP 12 1 2 11 10 3 6 7 8 9 4 5 1-2-3-4-5-6-7-8-9-10-11-12 Inversion 12 1 2 11 10 3 6 7 8 9 4 5 1-2-3-4-5-9-8-7-6-10-11-12 Translation 1 12 3 10 6 Switching 1 12 3 10 6 34 2 7 11 9 8 4 5 1-2-11-4-8-7-5-9-6-10-3-12 2 7 11 9 8 4 5 1-2-3-4-8-7-5-9-6-10-11-12 Page 17 17

Simulated Annealing A 100-city TSP using SA Initial random path During SA process Final path 35 Simulated Annealing 100-city TSP with penalties when crossing the circle Penalty = 0 Penalty = 0.5 Penalty = -0.3 36 Page 18 18