Scientific Research Group in Egypt (SRGE)

Slides:



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

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 Student (PhD): Umut R. ERTÜRK Lecturer : Nazlı İkizler Cinbiş
1 Chapter 5 Advanced Search. 2 Chapter 5 Contents l Constraint satisfaction problems l Heuristic repair l The eight queens problem l Combinatorial optimization.
MAE 552 – Heuristic Optimization Lecture 8 February 8, 2002.
MAE 552 – Heuristic Optimization Lecture 6 February 6, 2002.
1 Approximate Solution to an Exam Timetabling Problem Adam White Dept of Computing Science University of Alberta Adam White Dept of Computing Science University.
1 Chapter 5 Advanced Search. 2 l
Simulated Annealing 10/7/2005.
Ant Colony Optimization Optimisation Methods. Overview.
1 Simulated Annealing Terrance O ’ Regan. 2 Outline Motivation The algorithm Its applications Examples Conclusion.
Simulated Annealing Van Laarhoven, Aarts Version 1, October 2000.
1 IOE/MFG 543 Chapter 14: General purpose procedures for scheduling in practice Section 14.4: Local search (Simulated annealing and tabu search)
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.
Ant Colony Optimization: an introduction
Elements of the Heuristic Approach
1 IE 607 Heuristic Optimization Simulated Annealing.
Boltzmann Machine (BM) (§6.4) Hopfield model + hidden nodes + simulated annealing BM Architecture –a set of visible nodes: nodes can be accessed from outside.
CS 484 – Artificial Intelligence1 Announcements Homework 2 due today Lab 1 due Thursday, 9/20 Homework 3 has been posted Autumn – Current Event Tuesday.
1 Chapter 5 Advanced Search. 2 Chapter 5 Contents l Constraint satisfaction problems l Heuristic repair l The eight queens problem l Combinatorial optimization.
Simulated Annealing.
Thursday, May 9 Heuristic Search: methods for solving difficult optimization problems Handouts: Lecture Notes See the introduction to the paper.
Single-solution based metaheuristics. Outline Local Search Simulated annealing Tabu search …
B. Stochastic Neural Networks
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.
Simulated Annealing. Difficulty in Searching Global Optima starting point descend direction local minima global minima barrier to local search.
Heuristic Methods for the Single- Machine Problem Chapter 4 Elements of Sequencing and Scheduling by Kenneth R. Baker Byung-Hyun Ha R2.
Ramakrishna Lecture#2 CAD for VLSI Ramakrishna
An Introduction to Simulated Annealing Kevin Cannons November 24, 2005.
Intro. ANN & Fuzzy Systems Lecture 37 Genetic and Random Search Algorithms (2)
1 Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations Simulated Annealing (SA)
General Purpose Procedures Applied to Scheduling
Optimization Problems
Optimization via Search
Scientific Research Group in Egypt (SRGE)
Simulated Annealing Chapter
Scientific Research Group in Egypt (SRGE)
Scientific Research Group in Egypt (SRGE)
Scientific Research Group in Egypt (SRGE)
Scientific Research Group in Egypt (SRGE)
Heuristic Optimization Methods
Van Laarhoven, Aarts Version 1, October 2000
Scientific Research Group in Egypt (SRGE)
Scientific Research Group in Egypt (SRGE)
Scientific Research Group in Egypt (SRGE)
Scientific Research Group in Egypt (SRGE)
Optimization Techniques Gang Quan Van Laarhoven, Aarts Sources used.
Whale Optimization Algorithm
Artificial Intelligence (CS 370D)
Subject Name: Operation Research Subject Code: 10CS661 Prepared By:Mrs
Maria Okuniewski Nuclear Engineering Dept.
Heuristic search INT 404.
Optimization Problems
CSE 589 Applied Algorithms Spring 1999
Optimization with Meta-Heuristics
Metaheuristic methods and their applications. Optimization Problems Strategies for Solving NP-hard Optimization Problems What is a Metaheuristic Method?
School of Computer Science & Engineering
Subset of Slides from Lei Li, HongRui Liu, Roberto Lu
Introduction to Simulated Annealing
More on Search: A* and Optimization
Boltzmann Machine (BM) (§6.4)
Xin-She Yang, Nature-Inspired Optimization Algorithms, Elsevier, 2014
Artificial Intelligence
Md. Tanveer Anwar University of Arkansas
Greg Knowles ECE Fall 2004 Professor Yu Hu Hen
CSC 380: Design and Analysis of Algorithms
Simulated Annealing & Boltzmann Machines
Presentation transcript:

Scientific Research Group in Egypt (SRGE) Meta-heuristics techniques (II) Simulated annealing Scientific Research Group in Egypt (SRGE) Dr. Ahmed Fouad Ali Suez Canal University, Dept. of Computer Science, Faculty of Computers and informatics Member of the Scientific Research Group in Egypt

Scientific Research Group in Egypt www.egyptscience.net

Meta-heuristics techniques

Outline 1. What is annealing? 2. Motivation 3. Simulated annealing (SA)(Background) 4. SA (main concepts) 5. SA algorithm 6. SA control parameters 7. SA example 8. SA applications

What is annealing? Annealing is a physical process used to harden metals, glass, etc. Starts at a high temperature and cools slowly. Lower temperature of the glass slowly so that at each temperature the atoms can move just enough to begin adopting the most stable orientation.

What is annealing? The temperature determines how much mobility the atoms have. How slowly you cool glass is critical. If the glass is cooled slowly enough, the atoms are able to "relax" into the most stable orientation. For example, the glass surrounding a hockey rink.

Motivation ? barrier to local search starting point descend direction local minima global minima

Simulated annealing (SA)(Background) The method was independently described by Scott Kirkpatrick, C. Daniel Gelatt and Mario P. Vecchi in 1983, and by Vlado Černý in 1985. SA is probably the most widely used meta-heuristic in combinatorial optimization problem. It was motivated by the analogy between the physical annealing of metals and the process of searching for the optimal solution in a combinatorial optimization problem. The main objective of SA method is to escape from local optima and so to delay the convergence.

Simulated annealing (main concepts) SA proceeds in several iterations from an initial solution x0. At each iteration, a random neighbor solution x' is generated. The neighbor solution that improves the cost function is always accepted. Otherwise, the neighbor solution is selected with a given probability that depends on the current temperature T and the amount of degradation E of the objective function. E represents the difference in the objective value between the current solution x and the generated neighboring solution x'.

Simulated annealing (main concepts) The probability follows, in general, the Boltzmann distribution as shown in the following equation Many trial solutions are generated as an exploration process at a particular level of temperature. The temperature is updated until stopping criteria satisfied.

Simulated annealing algorithm Outer loop Inner loop

SA control parameters Initial temperature Choosing too high temperature will cost computation time expensively. Too low temperature will exclude the possibility of ascent steps, thus losing the global optimization feature of the method. We have to balance between these two extreme procedures.

SA control parameters Choice of the temperature reduction strategy If the temperature is decreased slowly, better solutions are obtained but with a more significant computation time. A fast decrement rule causes increasing the probability of being trapped in a local minimum.

SA control parameters Equilibrium State. In order to reach an equilibrium state at each temperature, a number of sufficient transitions (moves) must be applied. The number of iterations must be set according to the size of the problem instance and particularly proportional to the neighborhood size.

SA control parameters Stopping criterion Concerning the stopping condition, theory suggests a final temperature equal to 0. In practice, one can stop the search when the probability of accepting a move is negligible, or reaching a final temperature TF.

1||SwjTj SA examples Jobs 1 2 3 4 wj 5 pj 12 8 15 9 dj 16 26 25 27

Iteration 1 SA examples Step 1. S0=S1=(1,3,2,4). G(S1)=136. Let T=10 and a=0.9 => b1=9 Step 2. Select randomly which jobs to swap, suppose a Uniform(0,1) random number is V1= 0.24 => swap first two jobs Sc=(3,1,2,4), G(Sc)=174, P(Sk,Sc)=1.5% U1=0.91 => Reject Sc Step 3. Let k=2

SA examples Iteration 2 Step 2. Select randomly which jobs to swap, suppose a Uniform(0,1) random number is V2= 0.46 => swap 2nd and 3rd jobs Sc=(1,2,3,4), G(Sc)=115 S3=S0=Sc Step 3. Let k=3

SA examples Iteration 3 Step 2. V3= 0.88 => swap jobs in 3rd and 4th position Sc=(1,2,4,3), G(Sc)=67 S4=S0=Sc Step 3. Let k=4

SA examples Iteration 4 Step 2. V4= 0.49 => swap jobs in 2nd and 3rd position Sc=(1,4,2,3), G(Sc)=72, b4=10(0.9)4=6.6 P(Sk,Sc)=47%, U4=.90 => S5=S4 Step 3. Let k=5

Iteration 5 SA examples Step 2. V5= 0.11 => swap 1st and 2nd jobs Sc=(2,1,4,3), G(Sc)=83, b5=10(0.9)5=5.9 P(Sk,Sc)=7%, U5=0.61 => S6=S5 Step 3. Let k=6

SA Applications Scheduling Quadratic assignment Frequency assignment Car pooling Capacitated p-median, Resource constrained project scheduling (RCPSP) Vehicle routing problems Graph coloring Retrieval Layout Problem Maximum Clique Problem, Traveling Salesman Problems Database systems Nurse Rostering Problem Neural Nets Grammatical inference, Knapsack problems SAT Constraint Satisfaction Problems Network design Telecomunication Network Global Optimization

References Metaheuristics From design to implementation, El-Ghazali Talbi, University of Lille – CNRS – INRIA. S. Kirkpatrick, C. Gelatt, M. Vecchi, Optimization by simulated annealing, Science 220 (1983), 671-680.

Thank you Ahmed_fouad@ci.suez.edu.eg http://www.egyptscience.net