Derivative-Free Optimization

Similar documents
Introduction (7.1) Genetic Algorithms (GA) (7.2) Simulated Annealing (SA) (7.3) Random Search (7.4) Downhill Simplex Search (DSS) (7.

Algoritmi di Ottimizzazione: Parte A Aspetti generali e algoritmi classici

DERIVATIVE-FREE OPTIMIZATION

CS:4420 Artificial Intelligence

METAHEURISTICS. Introduction. Introduction. Nature of metaheuristics. Local improvement procedure. Example: objective function

Chapter 14 Global Search Algorithms

Local Search and Optimization Chapter 4. Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld )

Local Search and Optimization Chapter 4. Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld )

Genetic Algorithms Variations and Implementation Issues

AI Programming CS S-08 Local Search / Genetic Algorithms

Local Search (Ch )

Algorithms & Complexity

Introduction to Design Optimization: Search Methods

Heuristic Optimisation

Encoding Techniques in Genetic Algorithms

An evolutionary annealing-simplex algorithm for global optimisation of water resource systems

Local Search and Optimization Chapter 4. Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld )

SIMULATED ANNEALING TECHNIQUES AND OVERVIEW. Daniel Kitchener Young Scholars Program Florida State University Tallahassee, Florida, USA

Genetic Algorithms. PHY 604: Computational Methods in Physics and Astrophysics II


Solving Traveling Salesman Problem Using Parallel Genetic. Algorithm and Simulated Annealing

Artificial Intelligence

Suppose you have a problem You don t know how to solve it What can you do? Can you use a computer to somehow find a solution for you?

GENETIC ALGORITHM with Hands-On exercise

Comparative Analysis of Genetic Algorithm Implementations

Predicting Diabetes using Neural Networks and Randomized Optimization

Escaping Local Optima: Genetic Algorithm

Introduction to Artificial Intelligence 2 nd semester 2016/2017. Chapter 4: Beyond Classical Search

ARTIFICIAL INTELLIGENCE (CSCU9YE ) LECTURE 5: EVOLUTIONARY ALGORITHMS

Evolutionary Methods for State-based Testing

What is GOSET? GOSET stands for Genetic Optimization System Engineering Tool

Mutations for Permutations

An Improved Genetic Algorithm for the Traveling Salesman Problem with Multi-Relations

Lecture 6: Genetic Algorithm. An Introduction to Meta-Heuristics, Produced by Qiangfu Zhao (Since 2012), All rights reserved

Introduction to Genetic Algorithms

Comparison of TSP Algorithms

Optimization Techniques for Design Space Exploration

Genetic Algorithms. Genetic Algorithms

Non-deterministic Search techniques. Emma Hart

Introduction to Genetic Algorithms. Based on Chapter 10 of Marsland Chapter 9 of Mitchell

Using Genetic Algorithms to optimize ACS-TSP

Crew Scheduling Problem: A Column Generation Approach Improved by a Genetic Algorithm. Santos and Mateus (2007)

Outline. Motivation. Introduction of GAs. Genetic Algorithm 9/7/2017. Motivation Genetic algorithms An illustrative example Hypothesis space search

REAL-CODED GENETIC ALGORITHMS CONSTRAINED OPTIMIZATION. Nedim TUTKUN

Evolutionary Computation. Chao Lan

Global Optimization. for practical engineering applications. Harry Lee 4/9/2018 CEE 696

Evolutionary Computation Algorithms for Cryptanalysis: A Study

Heuristic Optimisation

Introduction to Genetic Algorithms. Genetic Algorithms

Artificial Intelligence

Artificial Intelligence Application (Genetic Algorithm)

Genetic Algorithms for Vision and Pattern Recognition

Genetic Algorithm. Dr. Rajesh Kumar

A Genetic Algorithm for Graph Matching using Graph Node Characteristics 1 2

Topological Machining Fixture Layout Synthesis Using Genetic Algorithms

Lecture 4. Convexity Robust cost functions Optimizing non-convex functions. 3B1B Optimization Michaelmas 2017 A. Zisserman

Adaptive Crossover in Genetic Algorithms Using Statistics Mechanism

Homework 2: Search and Optimization

TDT4136 Logic and Reasoning Systems

Evolutionary Algorithms. CS Evolutionary Algorithms 1

Time Complexity Analysis of the Genetic Algorithm Clustering Method

CHAPTER 4 GENETIC ALGORITHM

Advanced Search Genetic algorithm

Global optimisation techniques in water resources management

Monte Carlo for Optimization

A New Selection Operator - CSM in Genetic Algorithms for Solving the TSP

Research Article Path Planning Using a Hybrid Evolutionary Algorithm Based on Tree Structure Encoding

March 19, Heuristics for Optimization. Outline. Problem formulation. Genetic algorithms

Computational Intelligence

Genetic Algorithms. Kang Zheng Karl Schober

Genetic Algorithms: Setting Parmeters and Incorporating Constraints OUTLINE OF TOPICS: 1. Setting GA parameters. 2. Constraint Handling (two methods)

Using Genetic Algorithm with Triple Crossover to Solve Travelling Salesman Problem

ET-based Test Data Generation for Multiple-path Testing

Communication and Wall clock time

Solving Optimization Problems with MATLAB Loren Shure

Genetic Algorithms for EQ-algebras Automatic Generation

DETERMINING MAXIMUM/MINIMUM VALUES FOR TWO- DIMENTIONAL MATHMATICLE FUNCTIONS USING RANDOM CREOSSOVER TECHNIQUES

4/22/2014. Genetic Algorithms. Diwakar Yagyasen Department of Computer Science BBDNITM. Introduction

Introduction to Stochastic Optimization Methods (meta-heuristics) Modern optimization methods 1

Machine Evolution. Machine Evolution. Let s look at. Machine Evolution. Machine Evolution. Machine Evolution. Machine Evolution

MAXIMUM LIKELIHOOD ESTIMATION USING ACCELERATED GENETIC ALGORITHMS

Today. Golden section, discussion of error Newton s method. Newton s method, steepest descent, conjugate gradient

Aero-engine PID parameters Optimization based on Adaptive Genetic Algorithm. Yinling Wang, Huacong Li

Introduction to Design Optimization: Search Methods

Informed Search. Dr. Richard J. Povinelli. Copyright Richard J. Povinelli Page 1

Solving Traveling Salesman Problem for Large Spaces using Modified Meta- Optimization Genetic Algorithm

Khushboo Arora, Samiksha Agarwal, Rohit Tanwar

Biology in Computation: Evolving Intelligent Controllers

An Evolutionary Algorithm for the Multi-objective Shortest Path Problem

Optimization of Constrained Function Using Genetic Algorithm

A Study on the Traveling Salesman Problem using Genetic Algorithms

ATI Material Do Not Duplicate ATI Material. www. ATIcourses.com. www. ATIcourses.com

CS 331: Artificial Intelligence Local Search 1. Tough real-world problems

5. Computational Geometry, Benchmarks and Algorithms for Rectangular and Irregular Packing. 6. Meta-heuristic Algorithms and Rectangular Packing

Sparse Matrices Reordering using Evolutionary Algorithms: A Seeded Approach

Data Mining Chapter 8: Search and Optimization Methods Fall 2011 Ming Li Department of Computer Science and Technology Nanjing University

Random Search Report An objective look at random search performance for 4 problem sets

Traveling Salesman Problem. Java Genetic Algorithm Solution

Chapter 9: Genetic Algorithms

HST.582J / 6.555J / J Biomedical Signal and Image Processing Spring 2007

Transcription:

Derivative-Free Optimization Chapter 7 from Jang

Outline Simulated Annealing (SA) Downhill simplex search Random search Genetic algorithms (GA) 2

The Big Picture Model space Adaptive networks Neural networks Fuzzy inf. systems Approach space Derivative-free optim. Soft Computing Derivative-based optim. 3

Simulated Annealing Analogy 4

Simulated Annealing Terminology: Objective function E(x): function to be optiimized 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 5

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 6

Simulated Annealing Example: Travel Salesperson Problem (TSP) How to transverse n cities once and only once with a minimal total distance? 7

Simulated Annealing Move sets for TSP 12 10 3 1 6 1 Inversion 2 7 2 7 11 8 9 11 8 9 4 5 4 5 12 3 10 6 Translation 1-2-3-4-5-6-7-8-9-10-11-12 1-2-3-4-5-9-8-7-6-10-11-12 8 12 12 10 10 3 3 1 Switching 6 1 6 2 7 2 7 11 9 11 9 8 8 4 5 4 5 1-2-11-4-8-7-5-9-6-10-3-12 1-2-3-4-8-7-5-9-6-10-11-12

Simulated Annealing A 100-city TSP using SA Initial random path During SA process Final path 9 MATLAB file: tsp.m

Simulated Annealing 100-city TSP with penalities when crossing the circle Penalty = 0 Penalty = 0.5 Penalty = -0.3 10

Random Search Properties: Intuitive Simple Analogy: Get down to a valley blindfolded Two heuristics: Reverse step Bias direction 11

Random Search Flowchart: Select a random dx f(x+b+dx)<f(x)? no yes x = x + b + dx b = 0.2 b + 0.4 dx f(x+b-dx)<f(x)? no yes x = x + b - dx b = b - 0.4 dx b = 0.5 b 12

Random Search Example: Find the min. 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). 13 MATLAB file: go_rand.m

Downhill Simplex Search Simplex: a set of n+1 points in n-dim. space A triangle in a 2D space A tetrahedron in a 3D space Concept of downhill simplex search Repeatedly replaces the highest points with a lower one Consecutive successful replacements lead to the enlargement of the simplex Consecutive unsucessful replacements lead to the shrinkage of the simplex 14

Downhill Simplex Search Flowchart Figure 7.9 in page 188 Behavior The simplex can adapt itself to the objective function landscape (just like an amoeba), and eventually converges to a nearby local minimum. Program The search procedure is implemented as a function fmins.m that comes with MATLAB. 15

Downhill Simplex Search Example: Find the min. 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). 16 MATLAB file: go_simp.m

Genetic Algorithms Motivation Look at what evolution brings us? -Vision - Hearing - Smelling -Taste - Touch - Learning and reasoning Can we emulate the evolutionary process with today's fast computers? 17

Genetic Algorithms Terminology: Fitness function Population Encoding schemes Selection Crossover Mutation Elitism 18

Genetic Algorithms Binary encoding Chromosome (11, 6, 9) 1011 0110 1001 Crossover Gene 1 0 0 1 1 1 1 0 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 19 Mutation bit

Genetic Algorithms Flowchart 10010110 01100010 10100100 10011001 01111101............ Current generation Selection Elitism Crossover Mutation 10010110 01100010 10100100 10011101 01111001............ Next generation 20

Genetic Algorithms 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). 21

Genetic Algorithms 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) 22

Genetic Algorithms GA process: Initial population 5th generation 10th generation MATLAB file: go_ga.m 23

Genetic Algorithms Performance profile 24 MATLAB file: go_ga.m