Local Search and Optimization Presented by Collin Kanaley.

Slides:



Advertisements
Similar presentations
Informed search algorithms
Advertisements

Local Search Algorithms
LOCAL SEARCH AND CONTINUOUS SEARCH. Local search algorithms  In many optimization problems, the path to the goal is irrelevant ; the goal state itself.
For Friday Finish chapter 5 Program 1, Milestone 1 due.
CPSC 322, Lecture 16Slide 1 Stochastic Local Search Variants Computer Science cpsc322, Lecture 16 (Textbook Chpt 4.8) February, 9, 2009.
CSC344: AI for Games Lecture 5 Advanced heuristic search Patrick Olivier
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 1 Ryan Kinworthy CSCE Advanced Constraint Processing.
Intelligent Agents What is the basic framework we use to construct intelligent programs?
Trading optimality for speed…
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.
CSC344: AI for Games Lecture 4: Informed search
Informed Search Chapter 4 Adapted from materials by Tim Finin, Marie desJardins, and Charles R. Dyer CS 63.
D Nagesh Kumar, IIScOptimization Methods: M1L4 1 Introduction and Basic Concepts Classical and Advanced Techniques for Optimization.
Informed Search Next time: Search Application Reading: Machine Translation paper under Links Username and password will be mailed to class.
Optimization via Search CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 4 Adapted from slides of Yoonsuck Choe.
1 CS 2710, ISSP 2610 R&N Chapter 4.1 Local Search and Optimization.
D Goforth - COSC 4117, fall Note to 4 th year students  students interested in doing masters degree and those who intend to apply for OGS/NSERC.
Local Search and Optimization
Vilalta&Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
1 Local search and optimization Local search= use single current state and move to neighboring states. Advantages: –Use very little memory –Find often.
Search CSE When you can’t use A* Hill-climbing Simulated Annealing Other strategies 2 person- games.
An Introduction to Artificial Life Lecture 4b: Informed Search and Exploration Ramin Halavati In which we see how information.
Informed Search Uninformed searches easy but very inefficient in most cases of huge search tree Informed searches uses problem-specific information to.
Local Search Algorithms This lecture topic Chapter Next lecture topic Chapter 5 (Please read lecture topic material before and after each lecture.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
Informed search algorithms
Informed search algorithms Chapter 4. Best-first search Idea: use an evaluation function f(n) for each node –estimate of "desirability"  Expand most.
Informed Search Include specific knowledge to efficiently conduct the search and find the solution.
2005MEE Software Engineering Lecture 11 – Optimisation Techniques.
Iterative Improvement Algorithm 2012/03/20. Outline Local Search Algorithms Hill-Climbing Search Simulated Annealing Search Local Beam Search Genetic.
Artificial Intelligence for Games Online and local search
Local Search Algorithms
Local Search Pat Riddle 2012 Semester 2 Patricia J Riddle Adapted from slides by Stuart Russell,
For Friday Finish chapter 6 Program 1, Milestone 1 due.
For Wednesday Read chapter 6, sections 1-3 Homework: –Chapter 4, exercise 1.
For Wednesday Read chapter 5, sections 1-4 Homework: –Chapter 3, exercise 23. Then do the exercise again, but use greedy heuristic search instead of A*
Princess Nora University Artificial Intelligence Chapter (4) Informed search algorithms 1.
When A* doesn’t work CIS 391 – Intro to Artificial Intelligence A few slides adapted from CS 471, Fall 2004, UBMC (which were adapted from notes by Charles.
4/11/2005EE562 EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 4, 4/11/2005 University of Washington, Department of Electrical Engineering Spring 2005.
Feng Zhiyong Tianjin University Fall  Best-first search  Greedy best-first search  A * search  Heuristics  Local search algorithms  Hill-climbing.
Local search algorithms In many optimization problems, the state space is the space of all possible complete solutions We have an objective function that.
Announcement "A note taker is being recruited for this class. No extra time outside of class is required. If you take clear, well-organized notes, this.
Local Search. Systematic versus local search u Systematic search  Breadth-first, depth-first, IDDFS, A*, IDA*, etc  Keep one or more paths in memory.
Chapter 4 (Section 4.3, …) 2 nd Edition or Chapter 4 (3 rd Edition) Local Search and Optimization.
Lecture 6 – Local Search Dr. Muhammad Adnan Hashmi 1 24 February 2016.
Local Search Algorithms and Optimization Problems
CPSC 322, Lecture 16Slide 1 Stochastic Local Search Variants Computer Science cpsc322, Lecture 16 (Textbook Chpt 4.8) Oct, 11, 2013.
CPSC 420 – Artificial Intelligence Texas A & M University Lecture 5 Lecturer: Laurie webster II, M.S.S.E., M.S.E.e., M.S.BME, Ph.D., P.E.
Department of Computer Science Lecture 5: Local Search
Local Search and Optimization Chapter 4 Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld…) 1.
Local Search Algorithms CMPT 463. When: Tuesday, April 5 3:30PM Where: RLC 105 Team based: one, two or three people per team Languages: Python, C++ and.
CMPT 463. What will be covered A* search Local search Game tree Constraint satisfaction problems (CSP)
Constraints Satisfaction Edmondo Trentin, DIISM. Constraint Satisfaction Problems: Local Search In many optimization problems, the path to the goal is.
Local search algorithms In many optimization problems, the path to the goal is irrelevant; the goal state itself is the solution State space = set of "complete"
1 Intro to AI Local Search. 2 Intro to AI Local search and optimization Local search: –use single current state & move to neighboring states Idea: –start.
Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
Informed Search Uninformed searches Informed searches easy
CSCI 4310 Lecture 10: Local Search Algorithms
Department of Computer Science
For Monday Chapter 6 Homework: Chapter 3, exercise 7.
Local Search Algorithms
Artificial Intelligence (CS 370D)
Local Search and Optimization
Informed search algorithms
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.
First Exam 18/10/2010.
Local Search Algorithms
Local Search Algorithms
Presentation transcript:

Local Search and Optimization Presented by Collin Kanaley

Local Search Algorithms and Optimization Problems

Local Search Algorithms -Local search algorithms are useful when the path to the goal does not matter; for example, in the eight- queens problem, what matters is the configuration of the queens, not the order in which they are added to the board. -This class of problems includes many important applications such as integrated-circuit design, factory-floor layout, job-shop scheduling, automatic programming, telecommunications network optimization, vehicle routing, and portfolio management.

-Local search algorithms operate using a single current state (rather than multiple paths)‏ -Paths followed are typically not retained -Local search algorithms have two key advantages: 1. They use very little memory 2. They can often find reasonable solutions in large or infinite state spaces for which systematic algorithms are not suitable -Local search algorithms are also useful for solving pure optimization problems, which aim to find the best state according to an objective function

-The state space landscape is useful for understanding local search; a landscape has both “location” (defined by the state) and “elevation” (defined by the value of the heuristic cost function or objective function)‏

State Space Landscape (continued)‏ -If elevation corresponds to cost, then the aim is to find the lowest valley, called a global minimum -If elevation corresponds to an objective function, then the aim is to find the highest peak, called a global maximum

State Space Landscape (continued)‏ In a state space landscape: -A complete local search algorithm always finds a goal if one exists -An optimal algorithm always finds a global maximum/minimum

Hill-Climbing Search -The hill-climbing search is a loop that continually moves uphill in the direction of increasing value -It terminates when it reaches a “peak” where no neighbour has a higher value -It does not maintain a search tree -This algorithm does not look beyond the immediate neighbours of the current state -Hill climbing is sometimes called “greedy local search” because it grabs a good neighbour state without thinking ahead about where to go next

-While hill-climbing searches often perform quite well, they also often get stuck due to: 1. Local maxima – a peak that is higher than each of its neighbouring states, but lower than the global maximum. Hill-climbing algorithms that reach the vicinity of a local maximum will be drawn upwards towards the peak, but then be stuck with now where else to go. 2. Ridges – a sequence of local maxima 3. Plateaux – an area of the state space landscape where the evaluation function is flat

Hill-climbing variations -Stochastic hill climbing chooses at random from among the uphill moves; the probability of selection can vary with the steepness of the uphill move -First-choice hill climbing implements stochastic hill climbing by generating successors randomly until one is generated that is better than the current state. This is good when a state has many (e.g., thousands) of successors -Random-restart hill climbing conducts a series of hill-climbing searches from randomly generated initial states, stopping when a goal is found -Simulated annealing combines hill climbing with a random walk; this yields both efficiency and completeness

Local Beam Search -Local beam search - this algorithm keeps track of multiple states as opposed to just one. It begins with k randomly generated states. At each step, all the successors of all k states are generated, and if any is a goal the algorithm halts; otherwise it selects the k best successors from the complete list and repeats. This is different from a random-restart search in that useful information is passed among the k parallel search threads. Therefore, unfruitful searches are quickly abandoned and resources are moved to where the most progress is being made

Stochastic beam search -Stochastic beam search – this variant of the local beam search chooses k successors at random, as opposed to choosing k from a pool of candidate successors, with the probability of choosing a given successor being an increasing function of its value. -This helps alleviate the problem local beam search algorithms can have when they become too concentrated in a small region of the state space

Genetic Algorithms -A genetic algorithm is a variant of stochastic beam search in which successor states are generated by combining two parent states, rather than by just modifying a single state.

Genetic Algorithms (continued)‏ -Genetic algorithm's begin with a set of k randomly generated states, called the population -Each state, or individual, is represented as a string over a finite alphabet (most commonly a string of 0s and 1s)‏ -Each state is evaluated by the fitness function, which rates better states more highly

Local Search in Continuous Spaces

None of the previously described algorithms can handle continuous state spaces. Introduced here are some local search techniques for finding optimal solutions in continuous spaces. Basically, anything that deals with the real world is in such a space.

Problems from local maxima, ridges, and plateaux are just as prevalent in continuous state spaces as they are in local search methods.

-One way to avoid continuous problems is to simply discretize the neighbourhood of each state. This means changing continuous models into discrete models. -The gradient of the landscape can be used to find a maximum -When the objective function is not available in a differential form at all, an empirical gradient can be determined by evaluating the response to small increments and decrements in each coordinate. (Empirical gradient search is the same as steepest- ascent hill climbing in a discretized version of the state space.)‏

Newton-Raphson method -Newton-Raphson method – for may problems this algorithm is the most effective; this is a general technique for finding roots of functions, a.k.a. Solving equations of the form g(x)=0

-The Newton-Raphson method works by computing a new estimate for the root x according to Newton's formula x <- x – g(x)/g 1 (x)‏ -x must be found so that the gradient is zero. Thus g(x) in Newton's formula becomes ▼f(x) and the updated equation can be written as x <- x – H f -1 (x)▼f(x)‏ where H f (x) is the Hessian matrix of second derivatives

Constrained optimization -An optimization problem is constrained if solutions must satisfy some hard constraints on the values of each variable. -The difficulty of constrained optimization problems depends upon the nature of the constraints and the objective function

Sources -Textbook -Wikipedia