State Transition Systems  linear planning  bounded model checking  conditional planning  model checking  state transition description languages: oPDDL.

Slides:



Advertisements
Similar presentations
Planning.
Advertisements

Complexity. P=NP? Who knows? Who cares? Lets revisit some questions from last time – How many pairwise comparisons do I need to do to check if a sequence.
Part VI NP-Hardness. Lecture 23 Whats NP? Hard Problems.
In the name of God An Application of Planning An Application of PlanningJSHOP BY: M. Eftekhari and G. Yaghoobi.
Planning
1 Planning Chapter CMSC 471 Adapted from slides by Tim Finin and Marie desJardins. Some material adopted from notes by Andreas Geyer-Schulz,
Complexity Classes: P and NP
Problem Solving Well-formed predicate calculus expressions provide a means of describing objects and relations in a problem domain and inference rule.
Satisfiability Modulo Theories (An introduction)
Projection Global Consistency: Application in AI Planning Pavel Surynek Charles University, Prague Czech Republic.
Planning Chapter 11 Yet another popular formulation for AI – Logic-based language – One of the most structured formulations Can be translate into less.
CLASSICAL PLANNING What is planning ?  Planning is an AI approach to control  It is deliberation about actions  Key ideas  We have a model of the.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Plan Generation & Causal-Link Planning 1 José Luis Ambite.
1 Complexity of domain-independent planning José Luis Ambite.
Hybrid Systems Presented by: Arnab De Anand S. An Intuitive Introduction to Hybrid Systems Discrete program with an analog environment. What does it mean?
Timed Automata.
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.
02/01/11CMPUT 671 Lecture 11 CMPUT 671 Hard Problems Winter 2002 Joseph Culberson Home Page.
Complexity 15-1 Complexity Andrei Bulatov Hierarchy Theorem.
CSE 5731 Lecture 19 Reasoning about Time and Change CSE 573 Artificial Intelligence I Henry Kautz Fall 2001 Salvador Dali, Persistence of Memory.
CSE 5731 Lecture 21 State-Space Search vs. Constraint- Based Planning CSE 573 Artificial Intelligence I Henry Kautz Fall 2001.
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.
Research Related to Real-Time Strategy Games Robert Holte November 8, 2002.
1 BLACKBOX: A New Paradigm for Planning Bart Selman Cornell University.
© P. Pongcharoen ISA/1 Applying Designed Experiments to Optimise the Performance of Genetic Algorithms for Scheduling Capital Products P. Pongcharoen,
1 Completeness and Complexity of Bounded Model Checking.
Planning II CSE 573. © Daniel S. Weld 2 Logistics Reading for Wed Ch 18 thru 18.3 Office Hours No Office Hour Today.
HW6: Planning. PDDL Planning Domain Description Language Based on STRIPS with various extensions Originally defined by Drew McDermott (Yale) and others.
Classical Planning Chapter 10.
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
Lecture 6: Problem Solving Dr John Levine Algorithms and Complexity February 10th 2006.
Planning, page 1 CSI 4106, Winter 2005 Planning Points Elements of a planning problem Planning as resolution Conditional plans Actions as preconditions.
Cost-Optimal Symbolic Pattern Database Planning with State Trajectory and Preference Constraints Stefan Edelkamp University of Dortmund.
Lecture 7: Uninformed Search Dr John Levine Algorithms and Complexity February 13th 2006.
CSCI 3160 Design and Analysis of Algorithms Tutorial 10 Chengyu Lin.
Lazy Annotation for Program Testing and Verification Speaker: Chen-Hsuan Adonis Lin Advisor: Jie-Hong Roland Jiang November 26,
Conformant Probabilistic Planning via CSPs ICAPS-2003 Nathanael Hyafil & Fahiem Bacchus University of Toronto.
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.
Lecture 6 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
Introduction to Artificial Intelligence Class 1 Planning & Search Henry Kautz Winter 2007.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Complexity & Computability. Limitations of computer science  Major reasons useful calculations cannot be done:  execution time of program is too long.
Planning as Satisfiability (SAT-Plan). SAT-Plan Translate the planning problem into a satisfiability problem for length n of Plan garb 0 (proposition)present.
Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri CS 440 / ECE 448 Introduction to Artificial Intelligence.
Lecture 25 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
NP-Completeness  For convenience, the theory of NP - Completeness is designed for decision problems (i.e. whose solution is either yes or no).  Abstractly,
NPC.
1 Alan Mishchenko Research Update June-September 2008.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
REU 2007-ParSat: A Parallel SAT Solver Christopher Earl, Mentor: Dr. Hao Zheng Department of Computer Science & Engineering Introduction Results and Conclusions.
HW5: Planning. PDDL Planning Domain Description Language Based on STRIPS with various extensions Originally defined by Drew McDermott (Yale) and others.
Solving problems by searching
Planning as Satisfiability
Planning as Search State Space Plan Space Algorihtm Progression
Lecture 2-2 NP Class.
Part VI NP-Hardness.
HW3: Planning.
HW5: Planning.
Local Search Strategies: From N-Queens to Walksat
Review for the Midterm Exam
CSE P573 Introduction to Artificial Intelligence Class 1 Planning & Search INTRODUCE MYSELF Relative new faculty member, but 20 years in AI research.
Planning as Satisfiability with Blackbox
LPSAT: A Unified Approach to RTL Satisfiability
Planning José Luis Ambite.
Graph-based Planning Slides based on material from: Prof. Maria Fox
Over-Approximating Boolean Programs with Unbounded Thread Creation
Chapter 4 . Trajectory planning and Inverse kinematics
Presentation transcript:

State Transition Systems  linear planning  bounded model checking  conditional planning  model checking  state transition description languages: oPDDL – named transitions, automatic creation of frame axioms, [arithmetic] ox,x’ notation- unnamed transitions, requires explicit frame axioms oSMV – unnamed transitions (by non-deterministic assignment operator), automatic creation of frame axioms, arithmetic

Computational Considerations  Features of a problem that influence the choice of algorithm: oSize of state space oNumber of transitions to a relevant state (possibly  ) oType of result required:  Can a state be reached where some property holds?  Will states where some property holds be reached infinitely often?  What is a sequence of transition labels to reach such a state? (sequential plan)  Does some property hold in every reachable state?  What is a control function (mapping from states to transition labels) that guarantees that some property holds in every reachable state? (conditional plan; policy)

Towers of Hanoi  For towers of Hanoi, the length of the solution is about the same as the number of states o2 n -1 steps and 3 n states oEach state can be reached in many ways.  It can be solved by explicitly computing the entire set of states, and using some caching scheme so states are only recorded once. oE.g.: (non-symbolic) model checking; state-space linear planner with caching oThis could work up to about 12 disks (3 12  500,000)  Graphplan / SATPLAN / bounded model checking are not well suited to towers of Hanoi, because they do not use caching.

Towers of Hanoi: Domain (define (domain hanoi) (:predicates (on ?disk1 ?disk2) (smaller ?disk1 ?disk2) (clear ?disk)) (:action MOVE :parameters(?disk ?source ?dest) :precondition (and (clear ?disk) (on ?disk ?source) (clear ?dest) (smaller ?disk ?dest)) :effect (and (on ?disk ?dest) (not (on ?disk ?source)) (not (clear ?dest)) (clear ?source))))

Problem Instance: 4 Disks (define (problem hanoi4) (:domain hanoi) (:length (:parallel 15)) (:objects D1 D2 D3 D4 P1 P2 P3) (:init (on D1 D2) (on D2 D3) (on D3 D4) (on D4 P1) (clear D1) (clear P2) (clear P3) (smaller D1 D2) (smaller D1 D3) (smaller D1 D4) (smaller D1 P1) etc. (:goal (and (on D1 D2) (on D2 D3) (on D3 D4) (on D4 P3))))

Solution Time  SAT Solver: Chaff  Solution length given as input DisksSolVarsClausesTime 4151,84733, sec 5316,174183,3431 min 14 sec 66318,528807,178timeout

Blocks World  Standard benchmark domain for search algorithms  Robot arm(s) can pick up blocks and stack them on other blocks  Straight stack constraint: at most one block can be on a block; any number can be on the table  Multiple arms operate synchronously in parallel

Complexity  Large state space: #blocks !  Plan existence is trivial  NP-complete to find a solution of minimum length oSingle-arm: number of actions oMultiple-arm: number of parallel steps (makespan)

State of the Art  Optimal planning: opre-1996: Prodigy, UCPOP, TWEAK: 5 blocks o1996: Graphplan, Satplan: 11 blocks  Blocks world has not been included in the ICAPS planning competition to date o“It is a toy problem, BW does not have the complexity of real world planning.” o“It is too hard, real world problems do not have such complex interactions between goals.”

Blocks World in PDDL (:predicates (on ?x ?y) (on-table ?x) (clear ?x) (arm-empty ?a) (holding ?a ?x)) (:action pick-up :parameters (?a ?obj) :precondition (and (clear ?obj) (on-table ?obj) (arm-empty ?a)) :effect (and (not (on-table ?obj)) (not (clear ?obj)) (not (arm-empty ?a)) (holding ?a ?obj)))

Blocks World in PDDL (:action put-down :parameters (?a ?obj) :precondition (holding ?a ?obj) :effect (and (not (holding ?a ?obj) (clear ?ob) (arm-empty ?a) (on-table ?obj)))

Blocks World in PDDL (:action stack :parameters (?a ?obj ?underobj) :precondition (and (holding ?a ?obj) (clear ?underobj)) :effect (and (not (holding ?a ?obj)) (not (clear ?underobj)) (clear ?obj) (arm-empty ?a) (on ?obj ?underobj)))

Blocks World in PDDL (:action unstack :parameters (?a ?sob ?underobj) :precondition (and (on ?obj ?underobj) (clear ?obj) (arm-empty ?a)) :effect (and (holding ?a ?obj) (clear ?underobj) (not (clear ?obj)) (not (arm-empty ?a)) (not (on ?obj ?underobj)))))

Problems in PDDL ;;; bw-large-a ;;; ;;; Initial: 3/2/1 5/4 9/8/7/6 ;;; Goal: 1/5 8/9/4 2/3/7/6 (define (problem bw-large-a) (:domain prodigy-bw) (:objects a1 a2) (:init (arm-empty a1) (arm-empty a2) (on 3 2) (on 2 1) etc

Results probblocksarmsmax var max clause sol length time a acts 0.5s b112 3,992102, acts 16s c153 13,884472, acts 1m 12s

Results  Solver was not given optimal time length  Results include time to create & search all shorter plans, thus proving solution is optimal oProblem A was solved by graph search alone, thus no SAT encoding created  Planner: blackbox version 4.1 oSolver: graphplan for 20 sec, then chaff oHardware: 1.6 GHz Pentium laptop