Heuristic Optimization Introduction and Simple Heuristics

Similar documents
Outline of the module

TABU search and Iterated Local Search classical OR methods

Outline. TABU search and Iterated Local Search classical OR methods. Traveling Salesman Problem (TSP) 2-opt

Algorithms & Complexity

Non-deterministic Search techniques. Emma Hart

Pre-requisite Material for Course Heuristics and Approximation Algorithms

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

Optimization Techniques for Design Space Exploration

n Informally: n How to form solutions n How to traverse the search space n Systematic: guarantee completeness

Parallel Computing in Combinatorial Optimization

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

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 )

Outline of the talk. Local search meta-heuristics for combinatorial problems. Constraint Satisfaction Problems. The n-queens problem

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

Outline. Informed Search. Recall: Uninformed Search. An Idea. Heuristics Informed search techniques More on heuristics Iterative improvement

Algorithm Design (4) Metaheuristics

Introduction to Optimization Using Metaheuristics. The Lecturer: Thomas Stidsen. Outline. Name: Thomas Stidsen: Nationality: Danish.

Heuristic Optimisation

Machine Learning for Software Engineering

ARTIFICIAL INTELLIGENCE (CSCU9YE ) LECTURE 5: EVOLUTIONARY ALGORITHMS

Heuristis for Combinatorial Optimization

Methods and Models for Combinatorial Optimization Heuristis for Combinatorial Optimization

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

Evolutionary Computation Algorithms for Cryptanalysis: A Study

Heuristis for Combinatorial Optimization

SPATIAL OPTIMIZATION METHODS

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

Introduction to Optimization Using Metaheuristics. Thomas J. K. Stidsen

ACO and other (meta)heuristics for CO

Local Search for CSPs

Escaping Local Optima: Genetic Algorithm

Introduction to Optimization

Metaheuristics : from Design to Implementation

Hybridization EVOLUTIONARY COMPUTING. Reasons for Hybridization - 1. Naming. Reasons for Hybridization - 3. Reasons for Hybridization - 2

Introduction to Optimization

Beyond Classical Search: Local Search. CMPSCI 383 September 23, 2011

6. Tabu Search. 6.3 Minimum k-tree Problem. Fall 2010 Instructor: Dr. Masoud Yaghini

Simple mechanisms for escaping from local optima:

INF Biologically inspired computing Lecture 1: Marsland chapter 9.1, Optimization and Search Jim Tørresen

Artificial Intelligence

Note: In physical process (e.g., annealing of metals), perfect ground states are achieved by very slow lowering of temperature.

Overview of Tabu Search

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

Single Candidate Methods

CMU-Q Lecture 8: Optimization I: Optimization for CSP Local Search. Teacher: Gianni A. Di Caro

4 INFORMED SEARCH AND EXPLORATION. 4.1 Heuristic Search Strategies

PROBLEM SOLVING AND SEARCH IN ARTIFICIAL INTELLIGENCE

(Stochastic) Local Search Algorithms

Job Shop Scheduling Problem (JSSP) Genetic Algorithms Critical Block and DG distance Neighbourhood Search

Outline. Best-first search. Greedy best-first search A* search Heuristics Local search algorithms

Travelling Salesman Problem: Tabu Search

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

An Improved Hybrid Genetic Algorithm for the Generalized Assignment Problem

An Overview of Search Algorithms With a Focus in Simulated Annealing

IMPLEMENTATION OF A FIXING STRATEGY AND PARALLELIZATION IN A RECENT GLOBAL OPTIMIZATION METHOD

Machine Learning for Software Engineering

A Course on Meta-Heuristic Search Methods for Combinatorial Optimization Problems

A Firework Algorithm for Solving Capacitated Vehicle Routing Problem

Administrative. Local Search!

Introduction to Design Optimization: Search Methods

N-Queens problem. Administrative. Local Search

3.6.2 Generating admissible heuristics from relaxed problems

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

Heuristic Optimisation

Design and Analysis of Algorithms

Metaheuristics: a quick overview

a local optimum is encountered in such a way that further improvement steps become possible.

APPLIED OPTIMIZATION WITH MATLAB PROGRAMMING

Artificial Intelligence

PARALLEL STRATEGIES FOR META-HEURISTICS

Artificial Intelligence

Informed Search and Exploration

Artificial Intelligence

Ar#ficial)Intelligence!!

Open Vehicle Routing Problem Optimization under Realistic Assumptions

PARALLEL STRATEGIES FOR META-HEURISTICS

Solving the C sum Permutation Flowshop Scheduling Problem by Genetic Local Search

Solving Problems: Intelligent Search

Artificial Intelligence Methods (G52AIM)

Test Cost Optimization Using Tabu Search

A Two-Dimensional Mapping for the Traveling Salesman Problem

BEYOND CLASSICAL SEARCH

Massively Parallel Approximation Algorithms for the Traveling Salesman Problem

MVE165/MMG630, Applied Optimization Lecture 8 Integer linear programming algorithms. Ann-Brith Strömberg

PROBLEM SOLVING AND SEARCH IN ARTIFICIAL INTELLIGENCE

Research Incubator: Combinatorial Optimization. Dr. Lixin Tao December 9, 2003

Artificial Intelligence

Algorithms for Integer Programming

Two approaches. Local Search TSP. Examples of algorithms using local search. Local search heuristics - To do list

Attractor of Local Search Space in the Traveling Salesman Problem

Outline. Informed Search. Recall: Uninformed Search. An Idea. Heuristics Informed search techniques More on heuristics Iterative improvement

MIC 99. III Metaheuristics International Conference. PUC-Rio - Catholic University of Rio de Janeiro. Angra dos Reis, Brazil.

CHAPTER 6 ORTHOGONAL PARTICLE SWARM OPTIMIZATION

Research Incubator: Combinatorial Optimization

Complete Local Search with Memory

Foundations of AI. 4. Informed Search Methods. Heuristics, Local Search Methods, Genetic Algorithms. Wolfram Burgard & Bernhard Nebel

underlying iterative best improvement procedure based on tabu attributes. Heuristic Optimization

Hardware-Software Codesign

GRASP. Greedy Randomized Adaptive. Search Procedure

Transcription:

Heuristic Optimization Introduction and Simple Heuristics José M PEÑA (jmpena@fi.upm.es) (Universidad Politécnica de Madrid) 1

Outline 1. What are optimization problems? 2. Exhaustive vs. Heuristic approaches 3. Typical problems 2

Optimization Search for the best configuration of a set of variables to achieve some goals Two categories: Discrete variables Real-valued variables Each optimization problem is specified defining Possible solutions (states) Objective 3

Optimization A optimization problem is a pair (X, f ) being X the search space (all the possible solutions), and f a function f : X R The solution x opt X is optime if f (x ) f (x opt ), x X 4

Optimization Methods Search techniques Calculus-based techniques Guided random search techniques Enumerative techniques Direct methods Indirect methods Evolutionary algorithms Simulated annealing Dynamic programming Finonacci Newton Evolutionary strategies Genetic algorithms Parallel Sequential Centralized Distributed Steady-state Generational 5 W. Williams, 99

Heuristics vs Meta-Heuristics Heuristic derives from the greek verb heuriskein (ενρισκειν) which means to find Faster than mathematical optimization (branch & bound, simplex, etc) Meta means beyond, in an upper lever Meta-heuristics are strategies that guide the search process The goal is to explore the search space in order to find (near-)optimal solutions Meta-heuristics are not problem-specific The basic concepts of meta-heuristics permit an abstract level description They may incorporate mechanisms to avoid getting trapped in confined areas of the search space 7

Classification 8 Heuristic Constructive algorithms (greedy) Local search algorithms (hill-climbing ) Meta-heuristic Trajectory methods: Describe a trajectory in the search space during the search process Variable Neighbourhood Search Iterated Local Search Simulated Annealing Tabu Search Population-based: Perform search processes which describe the evolution of a set of points in the search space Evolutionary computation (Genetic Algorithms)

Greedy Generate solutions from scratch by adding (to an initially empty partial solution) components, until the solution is complete A greedy algorithm works in phases. At each phase: You take the best you can get right now, without regard for future consequences You hope that by choosing a local optimum at each step, you will end up at a global optimum Example (Scheduling): 3 processors 9 jobs (3, 5, 6, 10, 11, 14, 15, 18 and 20 minutes) 9

Local Search 10 Iterative algorithm: Start from some initial solution Explore the neighbourhood of the current solution Replace the current solution by a better solution Different procedures depending on choice criteria and termination criteria Stochastic: choose at random Hill climbing: only permit moves to neighbours that improve the current Greedy the best neighbour Anxious the first neighbour improving Sideways moves allows moves with same fitness

Local Search: Problems 11 Success of hill-climbing depends on shape of landscape Shape of landscape depends on problem formulation and fitness function Landscapes for realistic problems often look like a worst-case scenario NP-hard problems typically have exponential number of localminima Failing on neighbourhood search Propensity to deliver solutions which are only local optima Solutions depend on the initial solution

Local Search: Solutions Applies local search to an initial solution until it finds the local optimum; then it perturbs the solution and it restarts local search 12

Local Search: Solutions Strategy based on dynamically changing neighborhood structure. VNS: Different coding schemas represent different neighborhood relations 13

Tabu Search 14 Steepest descent with memory Moves through solution space Uses memory techniques to avoid cycling The overall approach is to avoid entrainment in cycles by forbidding or penalizing moves which take the solution, in the next iteration, to points in the solution space previously visited (Fred Glover, Computers and Operations Research, 1986)

Tabu Search To avoid revelsal moves the last moves are maked as Tabu Change value of x from false to true: [x = false] is tabu Swap elements i and j: [Change j,i] is tabu Drop i and add j: [add i] and [drop j] are tabu 15

Tabu Search: Pros and cons 16 Pros: Tabu Search yields relatively good solutions to previously intractable problems Tabu Search provides comparable or superior solutions to other optimization techniques Cons: Tabu Search does not guarantee optimality Tabu Search is awkward for problems with continuous variables Tabu Search assumes fast performance evaluation The construction of tabu list is heuristic

Simulated Annealing Based on the cooling of material in a heat bath Local Search but we allow moves resulting in solutions of worse quality than the current solution Avoid from local solutions 17

Simulated Annealing 18 s=generateinitialsolution() e=energy(s) t=t(0) while Termination criteria not met s =PickAtRandom( N(x) ); e =Energy(s ); If random(0,1) < P(e,e,T) then s=s Endif Update(T) end while If e >e (worse) e f ( s') f ( s) T P(e,e,T)>0 When T 0 P(e,e,T) 0