AI Automated Planning In A Nutshell Vitaly Mirkis March 4, 2013 Netanya Academic College Acknowledgments: Some slides are based slides of Prof. Carmel.

Slides:



Advertisements
Similar presentations
REVIEW : Planning To make your thinking more concrete, use a real problem to ground your discussion. –Develop a plan for a person who is getting out of.
Advertisements

Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
11 Human Competitive Results of Evolutionary Computation Presenter: Mati Bot Course: Advance Seminar in Algorithms (Prof. Yefim Dinitz)
Plan Generation & Causal-Link Planning 1 José Luis Ambite.
CALTECH CS137 Winter DeHon CS137: Electronic Design Automation Day 14: March 3, 2004 Scheduling Heuristics and Approximation.
1 Appendix B: Solving TSP by Dynamic Programming Course: Algorithm Design and Analysis.
Best-First Search: Agendas
1 Classical STRIPS Planning Alan Fern * * Based in part on slides by Daniel Weld.
Applications of Single and Multiple UAV for Patrol and Target Search. Pinsky Simyon. Supervisor: Dr. Mark Moulin.
A Hybridized Planner for Stochastic Domains Mausam and Daniel S. Weld University of Washington, Seattle Piergiorgio Bertoli ITC-IRST, Trento.
1 Chapter 16 Planning Methods. 2 Chapter 16 Contents (1) l STRIPS l STRIPS Implementation l Partial Order Planning l The Principle of Least Commitment.
Planning under Uncertainty
Technical Advisor : Mr. Roni Stern Academic Advisor : Dr. Meir Kalech Team members :  Amit Ofer  Liron Katav Project Homepage :
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Algorithms and Problem Solving-1 Algorithms and Problem Solving.
1 Optimisation Although Constraint Logic Programming is somehow focussed in constraint satisfaction (closer to a “logical” view), constraint optimisation.
Knowledge Acquisitioning. Definition The transfer and transformation of potential problem solving expertise from some knowledge source to a program.
1 Planning. R. Dearden 2007/8 Exam Format  4 questions You must do all questions There is choice within some of the questions  Learning Outcomes: 1.Explain.
Algorithms and Problem Solving. Learn about problem solving skills Explore the algorithmic approach for problem solving Learn about algorithm development.
Search Heuristic Search vs. Evolutionary Search Prepared by Kirque Leung 18 Mar 05.
Nov 14 th  Homework 4 due  Project 4 due 11/26.
Uninformed Search Reading: Chapter 3 by today, Chapter by Wednesday, 9/12 Homework #2 will be given out on Wednesday DID YOU TURN IN YOUR SURVEY?
Optimization Methods One-Dimensional Unconstrained Optimization
PLANNING Partial order regression planning Temporal representation 1 Deductive planning in Logic Temporal representation 2.
Chapter 12: Simulation and Modeling
Distributed Constraint Optimization Michal Jakob Agent Technology Center, Dept. of Computer Science and Engineering, FEE, Czech Technical University A4M33MAS.
1 State Space of a Problem Lecture 03 ITS033 – Programming & Algorithms Asst. Prof.
General Polynomial Time Algorithm for Near-Optimal Reinforcement Learning Duke University Machine Learning Group Discussion Leader: Kai Ni June 17, 2005.
Swarm Computing Applications in Software Engineering By Chaitanya.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
CALTECH CS137 Winter DeHon CS137: Electronic Design Automation Day 12: February 13, 2002 Scheduling Heuristics and Approximation.
Major objective of this course is: Design and analysis of modern algorithms Different variants Accuracy Efficiency Comparing efficiencies Motivation thinking.
Lecture 11 Data Structures, Algorithms & Complexity Introduction Dr Kevin Casey BSc, MSc, PhD GRIFFITH COLLEGE DUBLIN.
Conformant Probabilistic Planning via CSPs ICAPS-2003 Nathanael Hyafil & Fahiem Bacchus University of Toronto.
Xusheng Xiao North Carolina State University CSC 720 Project Presentation 1.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
1 Chapter 16 Planning Methods. 2 Chapter 16 Contents (1) l STRIPS l STRIPS Implementation l Partial Order Planning l The Principle of Least Commitment.
CSE473 Winter /04/98 State-Space Search Administrative –Next topic: Planning. Reading, Chapter 7, skip 7.3 through 7.5 –Office hours/review after.
Introduction to Artificial Intelligence CS 438 Spring 2008 Today –AIMA, Ch. 25 –Robotics Thursday –Robotics continued Home Work due next Tuesday –Ch. 13:
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
Computer Science, Algorithms, Abstractions, & Information CSC 2001.
CS Introduction to AI Tutorial 5 Automatic Generation of Heuristic Functions Tutorial 5 Automatic Generation of Heuristic Functions.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Ames Research Center Planning with Uncertainty in Continuous Domains Richard Dearden No fixed abode Joint work with: Zhengzhu Feng U. Mass Amherst Nicolas.
CES 592 Theory of Software Systems B. Ravikumar (Ravi) Office: 124 Darwin Hall.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
1 An infrastructure for context-awareness based on first order logic 송지수 ISI LAB.
Onlinedeeneislam.blogspot.com1 Design and Analysis of Algorithms Slide # 1 Download From
CS382 Introduction to Artificial Intelligence Lecture 1: The Foundations of AI and Intelligent Agents 24 January 2012 Instructor: Kostas Bekris Computer.
Reinforcement Learning Guest Lecturer: Chengxiang Zhai Machine Learning December 6, 2001.
Lecture 2: Problem Solving using State Space Representation CS 271: Fall, 2008.
Advanced Algorithms Analysis and Design
Algorithms and Problem Solving
Topic: Programming Languages and their Evolution + Intro to Scratch
Extending wireless Ad-Hoc
Introduction Contents Sungwook Yoon, Postdoctoral Research Associate
Class #17 – Thursday, October 27
Planning José Luis Ambite.
Objective of This Course
Graphplan/ SATPlan Chapter
L11. Planning Agents and STRIPS
Heuristic Algorithms via VBA
Class #19 – Monday, November 3
Algorithms and Problem Solving
Heuristic Algorithms via VBA
Heuristic Algorithms via VBA
Graphplan/ SATPlan Chapter
Graphplan/ SATPlan Chapter
Introduction to Artificial Intelligence Instructor: Dr. Eduardo Urbina
Presentation transcript:

AI Automated Planning In A Nutshell Vitaly Mirkis March 4, 2013 Netanya Academic College Acknowledgments: Some slides are based slides of Prof. Carmel Domshlak and of Dr. Michael Katz Technion – Israel Institute of Technology Industrial Engineering & Management

Abstract During the past two decades the focus on AI Domain Independent Planning (planning) research has led to a noticeable theoretical progress and planning systems started demonstrating leading performance. A practical impact are the planning systems growing use in different industrial areas and the worldwide increasing popularity of planning academic courses. The lecture will present the basic principles of modern planning.

Planning “Adventure is just bad planning” Roald Amundsen “Planning is the art and practice of thinking before acting: of reviewing the courses of action one has available and predicting their expected (and unexpected) results to be able to choose the most beneficial course of action, with respect to ones goals.” Patrik Haslum

Planning in today’s industry Planning in today’s Industry: NASA’s mars rover, Hubble Space Telescope etc.

UAV Cooperative Mission x 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 y1y2y3y4 y5y6y1y2y3y4 y5y6 An UAV is able to move to some of its neighbor cells. An UAV is able to photograph a object in current cell. The goal is to photograph all colored objects and return to its initial position.

UAV Cooperative Mission x 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 y1y2y3y4 y5y6y1y2y3y4 y5y6

Planning software principle A Planning software (planner) execution flow description: – A given task is translated (compiled) to a planning problem . – Planning problem  supplied to a solver (planner). – The solution λ is also a solution for the task (or can be easily translated to such). TranslatorTranslatorPlannerPlanner task  λ

Planning software principle A Planning software (planner) execution flow description: – A given task is translated (compiled) to a planning problem . – Planning problem  supplied to a solver (planner). – A solution λ is also a solution for the task (or can be easily translated to such). – Hence, it is sufficient to consider any convenient task, for planning principles introduction. TranslatorTranslatorPlannerPlanner task  λ x 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 y1y2y3y4 y5y6y1y2y3y4 y5y6 ’’ ’’ Solution λ ’

Planning in blocks world Initial state Goal state Game rules: -No two blocks can be on top of the same block -Block can’t be on top of two blocks -Exact location on table or on block doesn’t matter ? ? B YG YG B

Planning in blocks world Initial state on-table(Y), clear(Y), on-table(G), on(R, G), on(B, R), clear(B) Goal state on-table(G), clear(G), on-table(Y), clear(Y), clear(R), on(R, B), on-table(B) on(i,j), on-table(i), clear(i)

Planning in blocks world Initial state Goal state Actions defined with: Move-Block( i )-from-Block(j)-to-Table Move-Block( i )-from-Table-to-Block(j) Move-Block( i )-from-Block(j)-to-Block(k) ? ?

Planning in blocks world B

Initial state Goal state Planning in blocks world B B G G Y Y R R G G Y Y R R B B G G R R

G R B Y GBY R

Optimal plan as shortest graph path: Optimal plan as shortest graph path: Planning in blocks world: states space How to solve (= find a plan) the described problem? G R YB G R B Y G R Y B GRYB G R B Y GYB R YB R G G R B Y Partial transition graph for 4 blocks: Plan as graph path: Plan as graph path:

How to find an optimal solution? – Use Dijkstra’s to find optimal solution. – The problem has 73 states For the general case? The traversing time for all problem’s states is growing very fast with problem size (planning is hard, both satisficing and optimal) – State space of 100 blocks problem have more states than number of atoms in the universe (> )  visiting all states is infeasible approach. Yet, these problems are solved somehow. How? How hard Planning is? G R B Y G R YB G R B Y G R Y B GRYB G R B Y GYB R GYB R YB R G G R B Y

Planning Evolution

Heuristic search Since the beginning of the century, heuristic search planning solvers outperformed all other approaches. Thus, during the last decade, planning via heuristic search had a massive research focus and played one of the major roles in the vast progress of the entire field. Important property of a heuristic search is the practical ability to solve large problems, i.e., problems unsolvable using other algorithms.

The intuition behind heuristic search h : An oracle estimation of the coast of reaching the goal from a given state. Partial transition graph for 4 blocks: h = 2? ? ? h = 3 h = 1 G R YB G R B Y G R Y B GRYB G R B Y GYB R YB R G G R B Y h = 2

Heuristic search basic model Heuristic search composed of two major, (usually) independent, parts: I.State search algorithm II.Heuristic evaluation function ( h ) – Search dynamics: The search algorithm uses a heuristic function to evaluate state to decide which state visit next. Each part developed independently.

Heuristic function Heuristic function ( h )

The intuition behind heuristic search h : The coast of reaching the goal from the current state is no less than h ( h  real cost). G R YB G R B Y G R Y B GRYB G R B Y GYB R YB R G G R B Y Partial transition graph for 4 blocks: h = 2? ? ? h = 3 h = 1

Constructing a heuristic function The most common method to find a “good” heuristic is via a solution to an “easier” version of the problem. Such easier problem can be obtained from the given problem, via two common techniques: 1.Relaxation: ignoring some constrains of the given problem. The outcome often called relaxed problem. 2.Abstraction: use a smaller version of the given problem, small enough to traverse all its states. Practically, an “easy to compute” heuristics are preferable.

Relaxed Planning in blocks world B B

Initial state Goal state Game rules: -No two blocks can be on top of the same block -Block can’t be on top of two blocks -Exact location on table or on block doesn’t matter ? ? B YG YG B

Delete free (relaxation) One such relaxation technique named delete free. – Once fact achieved, it can’t be deleted: Initial state Goal G R Y R B RR B R B  Satisficing / parallel plan can be found in polynomial time (finding an optimal plan is still hard)

Ignore all but the goals (abstraction) One method can be to achieve an abstraction by choosing only the goal blocks: – Initial state: – Goal state:  But, how can it be utilized? R B

State of the art heuristics

Beyond classical planning Planning variations: Oversubscription planning – Given a plan cost limitation, achieve the most valuable goals. Probabilistic planning – Some of the action’s effects are stochastic. Planning with partial observability – The initial state is non-deterministic.

Summary Planning is a model-based approach to a machine autonomous behavior, Task independent problem solver, Wide researchers interest, Continue grow in usage in industrial applications.

The end Thank you Thank you

Appendix Appendix

Planning Model

STRIPS: A Formal Planning Language

From Language to Model