Metaheuristic – Threshold Acceptance (TA). 2 Outlines ▪ Measuring Computational Efficiency ▪ Construction Heuristics ▪ Local Search Algorithms ▪ Metaheuristic.

Slides:



Advertisements
Similar presentations
Vehicle Routing: Coincident Origin and Destination Points
Advertisements

CS6800 Advanced Theory of Computation
Carthagène A brief introduction to combinatorial optimization: The Traveling Salesman Problem Simon de Givry.
1 Optimization Algorithms on a Quantum Computer A New Paradigm for Technical Computing Richard H. Warren, PhD Optimization.
S. J. Shyu Chap. 1 Introduction 1 The Design and Analysis of Algorithms Chapter 1 Introduction S. J. Shyu.
© The McGraw-Hill Companies, Inc., Chapter 2 The Complexity of Algorithms and the Lower Bounds of Problems.
Vehicle Routing & Scheduling: Part 1
2 -1 Chapter 2 The Complexity of Algorithms and the Lower Bounds of Problems.
Math443/543 Mathematical Modeling and Optimization
Chapter 3 Brute Force Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
1 Traveling Salesman Problem (TSP) Given n £ n positive distance matrix (d ij ) find permutation  on {0,1,2,..,n-1} minimizing  i=0 n-1 d  (i),  (i+1.
Vehicle Routing & Scheduling
Travelling Salesman Problem an unfinished story...
EAs for Combinatorial Optimization Problems BLG 602E.
2 -1 Chapter 2 The Complexity of Algorithms and the Lower Bounds of Problems.
1 Efficiency of Algorithms. 2  Two main issues related to the efficiency of algorithms:  Speed of algorithm  Efficient memory allocation  We will.
The Complexity of Algorithms and the Lower Bounds of Problems
Solution methods for Discrete Optimization Problems.
Algorithm/Running Time Analysis. Running Time Why do we need to analyze the running time of a program? Option 1: Run the program and time it –Why is this.
Carl Bro a|s - Route 2000 Solving real life vehicle routing problems Carl Bro a|s International consulting engineering company 2100 employees worldwide.
Chapter 1 Introduction Definition of Algorithm An algorithm is a finite sequence of precise instructions for performing a computation or for solving.
1 IE 607 Heuristic Optimization Introduction to Optimization.
Ch. 11: Optimization and Search Stephen Marsland, Machine Learning: An Algorithmic Perspective. CRC 2009 some slides from Stephen Marsland, some images.
Ant Colony Optimization: an introduction
Metaheuristics The idea: search the solution space directly. No math models, only a set of algorithmic steps, iterative method. Find a feasible solution.
1 1 1-to-Many Distribution Vehicle Routing John H. Vande Vate Spring, 2005.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
Combinatorial Optimization Chapter 1. Problems and Algorithms  1.1 Two Problems (representative problems)  The Traveling Salesman Problem 47 drilling.
Heuristic Optimization Methods
All-Pairs Shortest Paths & Essential Subgraph 01/25/2005 Jinil Han.
5-1-1 CSC401 – Analysis of Algorithms Chapter 5--1 The Greedy Method Objectives Introduce the Brute Force method and the Greedy Method Compare the solutions.
The Traveling Salesman Problem Over Seventy Years of Research, and a Million in Cash Presented by Vladimir Coxall.
Data Structure Introduction.
Thursday, May 9 Heuristic Search: methods for solving difficult optimization problems Handouts: Lecture Notes See the introduction to the paper.
Mobile Agent Migration Problem Yingyue Xu. Energy efficiency requirement of sensor networks Mobile agent computing paradigm Data fusion, distributed processing.
Antonio Augusto Chaves - Luiz Antonio Nogueira Lorena National Institute for Space Research - INPE São José dos Campos, Brazil
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Data Structures Using C++ 2E Chapter 1 Software Engineering Principles and C++ Classes.
Chapter 3 Brute Force. A straightforward approach, usually based directly on the problem’s statement and definitions of the concepts involved Examples:
Traveling Salesman Problem (TSP)
Presenter: Leo, Shih-Chang, Lin Advisor: Frank, Yeong-Sung, Lin /12/16.
Foundations of Algorithms, Fourth Edition
Ramakrishna Lecture#2 CAD for VLSI Ramakrishna
Vehicle Routing & Scheduling Cluster Algorithms Improvement Heuristics Time Windows.
Genetic Algorithms and TSP Thomas Jefferson Computer Research Project by Karl Leswing.
Intro. ANN & Fuzzy Systems Lecture 37 Genetic and Random Search Algorithms (2)
Management Science 461 Lecture 7 – Routing (TSP) October 28, 2008.
Chapter 3 Brute Force Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
Retail Distribution Inside a City or small Region.
Discrete Optimization MA2827 Fondements de l’optimisation discrète Approximate methods: local search Material based.
Exhaustive search Exhaustive search is simply a brute- force approach to combinatorial problems. It suggests generating each and every element of the problem.
A MapReduced Based Hybrid Genetic Algorithm Using Island Approach for Solving Large Scale Time Dependent Vehicle Routing Problem Rohit Kondekar BT08CSE053.
Routing Through Networks - 1
Subject Name: Operation Research Subject Code: 10CS661 Prepared By:Mrs
The Complexity of Algorithms and the Lower Bounds of Problems
Heuristics Definition – a heuristic is an inexact algorithm that is based on intuitive and plausible arguments which are “likely” to lead to reasonable.
Heuristic Algorithms via VBA
Chapter 3 Brute Force Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
3. Brute Force Selection sort Brute-Force string matching
traveling salesman problem
Integer Programming (정수계획법)
Generating and Solving Very Large-Scale Vehicle Routing Problems
3. Brute Force Selection sort Brute-Force string matching
ICS 353: Design and Analysis of Algorithms
Heuristic Algorithms via VBA
Heuristic Algorithms via VBA
Algorithm/Running Time Analysis
Vehicle Routing John H. Vande Vate Fall,
3. Brute Force Selection sort Brute-Force string matching
Presentation transcript:

Metaheuristic – Threshold Acceptance (TA)

2 Outlines ▪ Measuring Computational Efficiency ▪ Construction Heuristics ▪ Local Search Algorithms ▪ Metaheuristic – Threshold Accepting Algorithm (TA) ▪ Traveling Salesman Problem (TSP)

3 Measuring Computational Efficiency Consider the following algorithm for(i=0; i<n; i++) { for(j=0;j<m;j++) { c[i][j] = a[i][j] + b[i][j]; } Total number of operations: Addition: (+) m*n + (++) m*n + (++) n => (2m+1)*n*C 1 Assignments: (=) m*n + (=) n + (=) 1 => (m+1)*n +1*C 2 Comparisons: ( (m+1)*n*C 3

4 Measuring Computational Efficiency Which one is faster? (a) (b)

5 Measuring Computational Efficiency ▪ Running Time log(n) < n < n 2 < n 3 < 2 n < 3 n

6 Measuring Computational Efficiency ▪ Big-O notation f(n) is O(g(n)) : if there is a real number c > 0 and an integer constant n 0 ≥ 1, such that f(n) ≤ cg(n) for every integer n ≥ n 0. ▪ Examples 7n-2 is O(n) 20n 3 +10nlogn+5 is O(n 3 ) is O(1)

7 Measuring Computational Efficiency ▪ Big-O notation O(log(n)) < O(n) < O(n log(n)) <O(n 2 ) < O(n 3 ) <O(2 n ) <O(3 n ) logarithmiclinearpolynomialexponential O(log n)O(n)O(n k ), k ≥1O(a n ), a ≥1

8 Traveling Salesman Problem (TSP) The TSP can be described as the problem of finding the minimum distance route that begins at a given node of the network, visits all the members of a specified set of nodes exactly once, and returns eventually to the initial node

9 Construction Heuristics ▪ Greedy Algorithms: ▪Using an index to fix the priority for solving the problem ▪Less flexibility to reach optimal solution ▪Constructing an initial solution for improvement algorithms ▪ Example: ▪Northwest corner and minimum cost matrix for transportation problem

10 Construction Heuristics ▪ Nearest neighbor procedure – O(n 2 ) ▪ Nearest insertion – O(n 2 ) ▪ Furthest insertion – O(n 2 ) ▪ Cheapest insertion – O(n 3 ) or – O(n 2 logn) (using heap)

11 Construction Heuristics ▪ Nearest insertion for TSP 1.Start with a subgraph consisting of node i only 2.Find node k such that c ik is minimal and form the subtour i-k-i 3.Given a subtour, find node k not in the subtour closest to any node in the tour. (selection) 4.Find the arc(i, j) in the subtour which minimizes c ik +c kj -c ij. Insert k between i and j. (Insertion) 5.Go to step3 unless we have a Hamiltonian cycle

12 Construction Heuristics ▪ Nearest insertion for TSP Step 1: Suppose node 1 is chose as beginning. Step 2: The node 4 is selected such that subtour with minimal cost 2c

13 Construction Heuristics ▪ Nearest insertion for TSP Step 3: Node 3 is selected and inserted into the subtour in order to derive minimal cost : 3+2= : 2+4= : 3+5=

14 Construction Heuristics ▪ Nearest insertion for TSP Step 4: : Node 2 is selected and inserted into the subtour in order to derive minimal cost : 2+4-2= : 2+3-3= : 3+4-2= : 3+5-2= : 3+4-3= : 4+5-2=

15 Construction Heuristics ▪ Nearest insertion for TSP Step 4: : Node 5 is inserted into the subtour and total cost is = : 3+5-2= : 1+4-5= : 3+1-2= : 4+5-2=

16 Local Search Algorithms ▪ Simplex method ▪ Convex ▪ Concave

17 Local Search Algorithms ▪ Integer linear programming ▪ Combinatorial optimization: ▪Knapsack Problem ▪TSP ▪Vehicle routing problem (VRP)

18 Local Search Algorithms ▪ Neighborhood ▪ Swap The neighborhood size of swap-based loacl search is n(n-1)/

19 Local Search Algorithms Local Search ▪Local search starts from a initial solution and then move to neighbor solution iteratively. ▪ First improvement. ▪ Best improvement.

20 Local Search Algorithms Local Search for TSP ▪ 2-opt ▪ k-opt ▪ OR-opt

21 Local Search Algorithms Two-exchange local Search for TSP – 2-opt ▪The neighborhood size of 2-opt is n (n-1)/2 - n

22 Local Search Algorithms Implementation of 2-opt with array

23 Threshold Accepting Algorithm (TA) ▪ Metaheuristic( 巨集啟發式演算法 ) ▪ Threshold Accepting was proposed by Deuck and Scheuer (1990). Ref: G. Dueck, T. Scheuer, “Threshold accepting. A generalpurpose optimization algorithm appearing superior tosimulated annealing”, Journal of Computational Physics 90 (1990) 161–175.

24 Threshold Accepting Algorithm (TA) ▪ Metaheuristic( 巨集啟發式演算法 ) solutions objective Local optima globe otima

25 Threshold Accepting Algorithm (TA) TA refined local search algorithms overcome the problem of getting tuck in a local optimal solution by admitting a temporary worsening of the objective function during the iteration process. Accepting probability