A Simple Example The Traveling Salesman Problem: Find a tour of a given set of cities so that each city is visited only once the total distance traveled.

Slides:



Advertisements
Similar presentations
CS6800 Advanced Theory of Computation
Advertisements

Multi-Objective Optimization NP-Hard Conflicting objectives – Flow shop with both minimum makespan and tardiness objective – TSP problem with minimum distance,
Tabu Search Strategy Hachemi Bennaceur 5/1/ iroboapp project, 2013.
CSM6120 Introduction to Intelligent Systems Evolutionary and Genetic Algorithms.
CPSC 322, Lecture 16Slide 1 Stochastic Local Search Variants Computer Science cpsc322, Lecture 16 (Textbook Chpt 4.8) February, 9, 2009.
1 Wendy Williams Metaheuristic Algorithms Genetic Algorithms: A Tutorial “Genetic Algorithms are good at taking large, potentially huge search spaces and.
Optimization via Search CPSC 315 – Programming Studio Spring 2009 Project 2, Lecture 4 Adapted from slides of Yoonsuck Choe.
Nature’s Algorithms David C. Uhrig Tiffany Sharrard CS 477R – Fall 2007 Dr. George Bebis.
Iterative Improvement Algorithms
Genetic Algorithms (GAs)
Imagine that I am in a good mood Imagine that I am going to give you some money ! In particular I am going to give you z dollars, after you tell me the.
EAs for Combinatorial Optimization Problems BLG 602E.
Ant Colony Optimization Optimisation Methods. Overview.
Optimization via Search CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 4 Adapted from slides of Yoonsuck Choe.
Ch. 11: Optimization and Search Stephen Marsland, Machine Learning: An Algorithmic Perspective. CRC 2009 some slides from Stephen Marsland, some images.
Metaheuristics The idea: search the solution space directly. No math models, only a set of algorithmic steps, iterative method. Find a feasible solution.
Elements of the Heuristic Approach
Informed Search Methods
Genetic Algorithms: A Tutorial
Introduction to Genetic Algorithms. 2 Abstract An introduction to emulating the problem solving according to nature's method: via evolution, selective.
Randomized Algorithm. NP-Complete Problem  A problem that, right now, we need exhaustive search  Example:  SAT  TSP  Vertex Cover  Etc.
1 Local search and optimization Local search= use single current state and move to neighboring states. Advantages: –Use very little memory –Find often.
Design & Analysis of Algorithms Combinatory optimization SCHOOL OF COMPUTING Pasi Fränti
Optimization Problems - Optimization: In the real world, there are many problems (e.g. Traveling Salesman Problem, Playing Chess ) that have numerous possible.
1 Chapter 5 Advanced Search. 2 Chapter 5 Contents l Constraint satisfaction problems l Heuristic repair l The eight queens problem l Combinatorial optimization.
1 Simulated Annealing Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations.
1 Genetic Algorithms “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations.
Local Search: walksat, ant colonies, and genetic algorithms.
1 “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations of things, solutions.
Doshisha Univ., Kyoto, Japan CEC2003 Adaptive Temperature Schedule Determined by Genetic Algorithm for Parallel Simulated Annealing Doshisha University,
Thursday, May 9 Heuristic Search: methods for solving difficult optimization problems Handouts: Lecture Notes See the introduction to the paper.
Exact and heuristics algorithms
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Introduction to Artificial Intelligence Evolutionary Computing Henry Kautz.
G5BAIM Artificial Intelligence Methods
Single-solution based metaheuristics. Outline Local Search Simulated annealing Tabu search …
Voicu Groza, 2008 SITE, HARDWARE/SOFTWARE CODESIGN OF EMBEDDED SYSTEMS 1 Hardware/Software Codesign of Embedded Systems OPTIMIZATION Voicu Groza.
Hardware Accelerator for Combinatorial Optimization Fujian Li Advisor: Dr. Areibi.
Genetic Algorithms. 2 Overview Introduction To Genetic Algorithms (GAs) GA Operators and Parameters Genetic Algorithms To Solve The Traveling Salesman.
Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing.
Presenter: Leo, Shih-Chang, Lin Advisor: Frank, Yeong-Sung, Lin /12/16.
Optimization Problems
Heuristic Methods for the Single- Machine Problem Chapter 4 Elements of Sequencing and Scheduling by Kenneth R. Baker Byung-Hyun Ha R2.
Chapter 5. Advanced Search Fall 2011 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
CPSC 322, Lecture 16Slide 1 Stochastic Local Search Variants Computer Science cpsc322, Lecture 16 (Textbook Chpt 4.8) Oct, 11, 2013.
© J. Christopher Beck Lecture 16: Local Search.
Escaping Local Optima. Where are we? Optimization methods Complete solutions Partial solutions Exhaustive search Hill climbing Exhaustive search Hill.
Genetic Algorithms. Solution Search in Problem Space.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
Optimization Problems
Optimization via Search
School of Computer Science & Engineering
Local Search Algorithms
Subject Name: Operation Research Subject Code: 10CS661 Prepared By:Mrs
Comparing Genetic Algorithm and Guided Local Search Methods
Neuro-Computing Lecture 6
metaheuristic methods and their applications
Study Guide for ES205 Yu-Chi Ho Jonathan T. Lee Nov. 7, 2000
Genetic Algorithms: A Tutorial
Optimization Problems
Metaheuristic methods and their applications. Optimization Problems Strategies for Solving NP-hard Optimization Problems What is a Metaheuristic Method?
Multi-Objective Optimization
School of Computer Science & Engineering
Design & Analysis of Algorithms Combinatorial optimization
More on Search: A* and Optimization
Topic 15 Job Shop Scheduling.
Traveling Salesman Problem by Genetic Algorithm
Genetic Algorithms: A Tutorial
Presentation transcript:

A Simple Example The Traveling Salesman Problem: Find a tour of a given set of cities so that each city is visited only once the total distance traveled is minimized

Representation Representation is an ordered list of city numbers known as an order-based GA. 1) London 3) Dunedin 5) Beijing 7) Tokyo 2) Venice 4) Singapore 6) Phoenix 8) Victoria CityList1 ( ) CityList2 ( )

Crossover Crossover combines inversion and recombination: * * Parent1 ( ) Parent2 ( ) Child ( ) This operator is called the Order1 crossover.

Mutation involves reordering of the list: * Before: ( ) After: ( ) Mutation

TSP Example: 30 Cities

Solution i (Distance = 941)

Solution j (Distance = 800)

Solution k (Distance = 652)

Best Solution (Distance = 420)

Overview of Performance

Considering the GA Technology “Almost eight years ago... people at Microsoft wrote a program [that] uses some genetic things for finding short code sequences. Windows 2.0 and 3.2, NT, and almost all Microsoft applications products have shipped with pieces of code created by that system.” - Nathan Myhrvold, Microsoft Advanced Technology Group, Wired, September 1995

Benefits of Genetic Algorithms Concept is easy to understand Modular, separate from application Supports multi-objective optimization Good for “noisy” environments Always an answer; answer gets better with time Inherently parallel; easily distributed

Benefits of Genetic Algorithms (cont.) Many ways to speed up and improve a GA- based application as knowledge about problem domain is gained Easy to exploit previous or alternate solutions Flexible building blocks for hybrid applications Substantial history and range of use

When to Use a GA Alternate solutions are too slow or overly complicated Need an exploratory tool to examine new approaches Problem is similar to one that has already been successfully solved by using a GA Want to hybridize with an existing solution Benefits of the GA technology meet key problem requirements

Some GA Application Types

Applications Decision Making Data Mining Scheduling Computer games Stock Market Trading Medical Information Systems Applications Finance Applications

Simulated Annealing This is an idea from the manufacture of steel.... Atoms move around randomly, sticking together, breaking apart The bonds that are strong have a better chance of lasting... So, heat the steel, then cool it slowly

Simulated Annealing Start temperature, end temperature, and cooling schedule are all problem-dependant, cost function dependant,.... About as scientific as picking lotto numbers At the start of the run, you want to accept most moves; at the end, you'll want to reject most moves that don't improve. What numbers should you use? Try playing around with them, and find out for yourself!

Simulated Annealing for TSP Pick two random (or adjacent) cities; how much do we save (or pay) if we swap their order? If we improve, do it; otherwise check the probability If you want to try this, play around with temperature and cooling schedules to see what works

Simulated Annealing for Restaurant Pick a random pair of tables and swap them (or rotate, shift,....) If it’s better, keep it If it’s worse, maybe keep it

Simulated Annealing While we’re not out of time Pick a random change If things get better, keep it If (Random from 0 to 1) < e^(- delta Cost/temp), keep it Maybe reduce the temperature

We Can’t Get The Optimal Answer for All Problems And simulated annealing doesn’t really get us any guaranteed solution. Maybe it’s good. Maybe it’s bad. If we lower our objective, for some problems we can guarantee that our solution is within some factor of optimal....

Approximation Algorithms Some problems we can solve: MST, shortest path, bitonic TSP, maximum flow, sorting..... But for others, we can use approximation algorithms: Steiner tree heuristics, general TSP, job scheduling, vertex cover, set cover,.... Sometimes this is better than things like simulated annealing. Sometimes not.

Tabu Search Like Hill Climbing but requires less memory. We remember the last N places that we “visited” and avoid them. Iterative procedure for solving discrete combinotorial optimization developed by GLOVER A move from one solution to another results in best available solution. To escape from local optima & to prevent cycling, some moves are classified as Tabu moves.

A local search algorithm starts from some initial solution and moves from neighbor to neighbor as long as possible while decreasing the objective function value. The neighborhood function N The starting solution s N(s) N(s,k) = N(s) - T(s,k) ‘t’ tabu moves Let Mk={D1, D2,…, D t} denote the set of the last t moves; T(s,k) = {D1-1(s),…, Dt-1(s)} Di-1(s) is the solution obtained from s by restoring some of the attributes that changed when move Di was applied

Basic Tabu Search Algorithm k := 1. generate initial solution WHILE the stopping condition is not met DO Identify N(s). (Neighbourhood set) Identify T(s,k). (Tabu set) Identify A(s,k). (Aspirant set) Choose the best s’ N(s,k) = {N(s) - T(s,k)} U A(s,k). Memorize s’ if it improves the previous best known solution s := s’. k := k+1. END WHILE

29 Example: Flexible Job Shop Problem n jobs m machines Alternative machines for each operation one operation -- one machine (no preemption) Assign each operation to a machine (routing problem) Order the operations on the machines (sequencing problem) Goal: minimize the make span

30 The neighborhood function used based on moving operations

31 Example: tabu list size

Conclusions Question:‘If GAs are so smart, why ain’t they rich?’ Answer:‘Genetic algorithms are rich - rich in application across a large and growing number of disciplines.’ - David E. Goldberg, Genetic Algorithms in Search, Optimization and Machine Learning

T HANKYOU