Simulated Annealing. Difficulty in Searching Global Optima starting point descend direction local minima global minima barrier to local search.

Slides:



Advertisements
Similar presentations
Decision Support Andry Pinto Hugo Alves Inês Domingues Luís Rocha Susana Cruz.
Advertisements

G5BAIM Artificial Intelligence Methods
Neural and Evolutionary Computing - Lecture 4 1 Random Search Algorithms. Simulated Annealing Motivation Simple Random Search Algorithms Simulated Annealing.
Simulated Annealing Premchand Akella. Agenda Motivation The algorithm Its applications Examples Conclusion.
Simulated Annealing General Idea: Start with an initial solution
CHAPTER 8 A NNEALING- T YPE A LGORITHMS Organization of chapter in ISSO –Introduction to simulated annealing –Simulated annealing algorithm Basic algorithm.
Spie98-1 Evolutionary Algorithms, Simulated Annealing, and Tabu Search: A Comparative Study H. Youssef, S. M. Sait, H. Adiche
Tabu Search for Model Selection in Multiple Regression Zvi Drezner California State University Fullerton.
MAE 552 – Heuristic Optimization Lecture 8 February 8, 2002.
Optimization via Search CPSC 315 – Programming Studio Spring 2009 Project 2, Lecture 4 Adapted from slides of Yoonsuck Choe.
MAE 552 – Heuristic Optimization Lecture 6 February 6, 2002.
Simulated Annealing 10/7/2005.
Review Best-first search uses an evaluation function f(n) to select the next node for expansion. Greedy best-first search uses f(n) = h(n). Greedy best.
1 Simulated Annealing Terrance O ’ Regan. 2 Outline Motivation The algorithm Its applications Examples Conclusion.
Simulated Annealing Van Laarhoven, Aarts Version 1, October 2000.
MAE 552 – Heuristic Optimization Lecture 10 February 13, 2002.
CS 561, Session 7 1 Recall: breadth-first search, step by step.
Stochastic Relaxation, Simulating Annealing, Global Minimizers.
MAE 552 – Heuristic Optimization Lecture 6 February 4, 2002.
Introduction to Simulated Annealing 22c:145 Simulated Annealing  Motivated by the physical annealing process  Material is heated and slowly cooled.
Optimization via Search CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 4 Adapted from slides of Yoonsuck Choe.
By Rohit Ray ESE 251.  Most minimization (maximization) strategies work to find the nearest local minimum  Trapped at local minimums (maxima)  Standard.
Elements of the Heuristic Approach
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
1 IE 607 Heuristic Optimization Simulated Annealing.
The Basics and Pseudo Code
Optimization in Engineering Design Georgia Institute of Technology Systems Realization Laboratory Mixed Integer Problems Most optimization algorithms deal.
Simulated Annealing.
Thursday, May 9 Heuristic Search: methods for solving difficult optimization problems Handouts: Lecture Notes See the introduction to the paper.
Iterative Improvement Algorithm 2012/03/20. Outline Local Search Algorithms Hill-Climbing Search Simulated Annealing Search Local Beam Search Genetic.
Local Search Pat Riddle 2012 Semester 2 Patricia J Riddle Adapted from slides by Stuart Russell,
Single-solution based metaheuristics. Outline Local Search Simulated annealing Tabu search …
B. Stochastic Neural Networks
Simulated Annealing G.Anuradha.
Introduction to Simulated Annealing Study Guide for ES205 Yu-Chi Ho Xiaocang Lin Aug. 22, 2000.
Introduction to Simulated Annealing Study Guide for ES205 Xiaocang Lin & Yu-Chi Ho August 22, 2000.
Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing.
Optimization Problems
Ramakrishna Lecture#2 CAD for VLSI Ramakrishna
An Introduction to Simulated Annealing Kevin Cannons November 24, 2005.
Lecture 6 – Local Search Dr. Muhammad Adnan Hashmi 1 24 February 2016.
Local Search Algorithms and Optimization Problems
Escaping Local Optima. Where are we? Optimization methods Complete solutions Partial solutions Exhaustive search Hill climbing Exhaustive search Hill.
Optimization Problems
Scientific Research Group in Egypt (SRGE)
Optimization via Search
Informed Search Chapter 4 (b)
Recall: breadth-first search, step by step
Simulated Annealing Premchand Akella.
Department of Computer Science
Informed Search Chapter 4 (b)
Heuristic Optimization Methods
Van Laarhoven, Aarts Version 1, October 2000
By Rohit Ray ESE 251 Simulated Annealing.
G5BAIM Artificial Intelligence Methods
Artificial Intelligence (CS 370D)
Subject Name: Operation Research Subject Code: 10CS661 Prepared By:Mrs
Optimization Problems
Informed Search Chapter 4 (b)
School of Computer Science & Engineering
Introduction to Simulated Annealing
5.2.3 Optimization, Search and
More on Search: A* and Optimization
Xin-She Yang, Nature-Inspired Optimization Algorithms, Elsevier, 2014
Artificial Intelligence
More on HW 2 (due Jan 26) Again, it must be in Python 2.7.
More on HW 2 (due Jan 26) Again, it must be in Python 2.7.
Greg Knowles ECE Fall 2004 Professor Yu Hu Hen
Simulated Annealing & Boltzmann Machines
Stochastic Methods.
Presentation transcript:

Simulated Annealing

Difficulty in Searching Global Optima starting point descend direction local minima global minima barrier to local search

Simulated Annealing Origin: The annealing process of heated solids. Intuition: By allowing occasional ascent in the search process, we might be able to escape the trap of local minima.

Consequences of the Occasional Ascents Help escaping the local optima. desired effect Might pass global optima after reaching it adverse effect

Simulated Annealing Inspired from ancient process of forging iron Annealing refers to the fast heating of a metal and then cooling it slowly The method was first proposed by Metropolis (1953) Kirkpatrick et al. (1982) later improved the SA method and applied it to optimization problems

Heat the solid state metal to a high temperature. Cool it down very slowly according to a specific schedule. If the heating temperature is sufficiently high to ensure random state and the cooling process is slow enough to ensure thermal equilibrium, then the atoms will place themselves in a pattern that corresponds to the global energy minimum of a perfect crystal. Simulated Annealing

SA differs from hill climbing in such a way that a move is selected at random and then it is decided whether to accept it. In SA, better moves are always accepted. Worse moves are accepted probabilistically.

Simulated Annealing The probability of accepting a worse state is a function of both the temperature of the system and the change in the cost function As the temperature decreases, the probability of accepting worse moves decreases If T=0, no worse moves are accepted (i.e. hill climbing)

Control of Annealing Process Acceptance of a search step (Metropolis Criterion): Assume the performance change in the search direction is. Accept a ascending step only if it pass a random test, Always accept a descending step, i.e.

At each temperature, search is allowed to proceed for a certain number of steps, L(k). Control of Annealing Process Cooling Schedule: T, the annealing temperature, is the parameter that control the frequency of acceptance of ascending steps. We gradually reduce temperature T(k). The choice of parameters is called the cooling schedule.

SA Glossary Solution: An answer to a problem without respect to its apparent “value” Neighbor: A solution which is “next” to a given solution in the solution space (or neighborhood) Fitness: The “value” of a solution Temperature: The current average rate at which less fit solutions are accepted Annealing Schedule: The function which lowers (or raises) the temperature the algorithm uses during its search

SA (Pseudo Code) Algorithm SIMULATED-ANNEALING Begin temp = INIT-TEMP; place = INIT-PLACEMENT; while (temp > FINAL-TEMP) do while (inner_loop_criterion = FALSE) do new_place = PERTURB(place); ΔC = COST(new_place) - COST(place); if (ΔC < 0) then place = new_place; else if (RANDOM(0,1) < e -(ΔC/temp) ) then place = new_place; temp = SCHEDULE(temp); End.

What Annealing Schedule? This is a complicated question! There are linear schedules, geometric schedules, oscillating schedules, schedules based on the rate of improvement Some SA algorithms use a GA to design their annealing schedule! A very basic, yet effective, annealing schedule is one that is geometric, but stepped T = T * However, this is only done every M iterations, which is either determined by the rate of improvement or by a hard figure (say every 1000 iterations) Quantitative analysis is the only way to determine the most effective schedule

Cooling Schedule Speed at which temperature is reduced has an effect Too fast and the optima are not found Too slow and time is wasted

1) A beginning temperature. 2) An ending temperature. 3) An assumption of the number of iterations per temperature. 4) A cooling rate. SA Parameters

Starting Temperature Must be hot enough to allow moves to almost every neighborhood state Must not be so hot that we conduct a random search for a long period of time Problem is finding a suitable starting temperature

Implementation of Simulated Annealing  Select a local search scheme  Determine the cooling schedule For example: Set L = n, the number of variables in the problem. Set T(0) such that exp(-/T(0))  1. Set T(k+1) = T(k), where  is a constant smaller but close to 1.