1 The LPSAT Engine and its Application to Metric Planning Steve Wolfman University of Washington CS&E Advisor: Dan Weld.

Slides:



Advertisements
Similar presentations
SMELS: Sat Modulo Equality with Lazy Superposition Christopher Lynch – Clarkson Duc-Khanh Tran - MPI.
Advertisements

Exploiting SAT solvers in unbounded model checking
Constraint Satisfaction Problems
Hybrid BDD and All-SAT Method for Model Checking Orna Grumberg Joint work with Assaf Schuster and Avi Yadgar Technion – Israel Institute of Technology.
Satisfiability Modulo Theories (An introduction)
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
1 Finite Constraint Domains. 2 u Constraint satisfaction problems (CSP) u A backtracking solver u Node and arc consistency u Bounds consistency u Generalized.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Propositional and First Order Reasoning. Terminology Propositional variable: boolean variable (p) Literal: propositional variable or its negation p 
Proofs from SAT Solvers Yeting Ge ACSys NYU Nov
Counting the bits Analysis of Algorithms Will it run on a larger problem? When will it fail?
Planning with Constraints Graphplan & SATplan Yongmei Shi.
4 th Nov, Oct 23 rd Happy Deepavali!. 10/23 SAT & CSP.
4 Feb 2004CS Constraint Satisfaction1 Constraint Satisfaction Problems Chapter 5 Section 1 – 3.
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 1 Ryan Kinworthy CSCE Advanced Constraint Processing.
1 Quantified Formulas Acknowledgement: QBF slides borrowed from S. Malik.
Search in the semantic domain. Some definitions atomic formula: smallest formula possible (no sub- formulas) literal: atomic formula or negation of an.
Integer Programming Difference from linear programming –Variables x i must take on integral values, not real values Lots of interesting problems can be.
1 BLACKBOX: A New Approach to the Application of Theorem Proving to Problem Solving Bart Selman Cornell University Joint work with Henry Kautz AT&T Labs.
Knowledge Representation II (Inference in Propositional Logic) CSE 473 Continued…
Planning as Satisfiability CSE 574 April 8, 2003 Dan Weld.
1 Planning as Logic: Why logic? zFlexible language yRange of expressive power/tractability yClear semantics and syntax zGood solution processes yMature.
On Solving Presburger and Linear Arithmetic with SAT Ofer Strichman Carnegie Mellon University.
Constraint Satisfaction Problems
START EXCEL BUILD OR RETRIEVE YOUR OPTIMIZATION MODEL SAVE YOUR WORKBOOK!! CHOOSE “Solver…” IN THE “Tools” MENU SPECIFY IN SOLVER DIALOG BOX: 1.CELL TO.
Chapter 19 Linear Programming McGraw-Hill/Irwin
3/11/2002copyright Brian Williams1 Propositional Logic and Satisfiability Brian C. Williams /6.834 October 7 th, 2002.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
1 Agenda Modeling problems in Propositional Logic SAT basics Decision heuristics Non-chronological Backtracking Learning with Conflict Clauses SAT and.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module Logic Representations.
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
On the Relation between SAT and BDDs for Equivalence Checking Sherief Reda Rolf Drechsler Alex Orailoglu Computer Science & Engineering Dept. University.
First-Order Logic and Inductive Logic Programming.
Chapter 5 Constraint Satisfaction Problems
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Oct, 30, 2015 Slide credit: some slides adapted from Stuart.
CHAPTER 5 SECTION 1 – 3 4 Feb 2004 CS Constraint Satisfaction 1 Constraint Satisfaction Problems.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Supplement 6 Linear Programming.
Planning as Satisfiability (SAT-Plan). SAT-Plan Translate the planning problem into a satisfiability problem for length n of Plan garb 0 (proposition)present.
AAAI of 20 Deconstructing Planning as Satisfiability Henry Kautz University of Rochester in collaboration with Bart Selman and Jöerg Hoffmann.
Inference in Propositional Logic (and Intro to SAT) CSE 473.
SAT Encodings for Sudoku Bug Catching in 2006 Fall Sep. 26, 2006 Gi-Hwon Kwon.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Satisfiability Modulo Theories and DPLL(T) Andrew Reynolds March 18, 2015.
Inference in Propositional Logic (and Intro to SAT)
Hybrid BDD and All-SAT Method for Model Checking
Hardware Acceleration of A Boolean Satisfiability Solver
Inference and search for the propositional satisfiability problem
Richard Anderson Lecture 26 NP-Completeness
Planning as Satisfiability
Richard Anderson Lecture 26 NP-Completeness
First-Order Logic and Inductive Logic Programming
LPSAT: A Unified Approach to RTL Satisfiability
Richard Anderson Lecture 25 NP-Completeness
SAT-Based Area Recovery in Technology Mapping
Graphplan/ SATPlan Chapter
Class #19 – Monday, November 3
Resolution Proofs for Combinational Equivalence
NP-Completeness Yin Tat Lee
Graphplan/ SATPlan Chapter
Graphplan/ SATPlan Chapter
CS 8520: Artificial Intelligence
Constraint Satisfaction Problems
Presentation transcript:

1 The LPSAT Engine and its Application to Metric Planning Steve Wolfman University of Washington CS&E Advisor: Dan Weld

2 Background: Planning Problem Given –Domain: a set of actions –Problem: an initial state and a set of goal states Produce a list of actions which leads from the initial state to the goal Metric planners reason about real-valued variables (mappings from preconditions to effects) (usually a partially specified state)

3 Metric Planning Metric planning –Incorporate metric quantities; e.g. y  2 + x –Important for modeling expendable resources Fast back end metric solver will help –Shown effective with SAT solvers for planning [Kautz&Selman] –Compile from planning to simple intermediate language –Solve problems in simple language Steve Wolfman: Note MAJSAT success Steve Wolfman: Note MAJSAT success

4 Sample Metric Planning Problem Ship RedVines from one location to another –Fuel used by moving –Maximum fuel level in truck –Maximum load for truck –Limited amount of available RedVines

5 Contributions Architecture –Intermediate language with metric values –Efficient propositional logic + metric constraints solver –Proof of concept in metric planning domain System –LCNF intermediate language –LPSAT solver –Metric planning compiler/decoder extended SAT solver to work with metric constraints and Cassowary. Extended Cassowary to discover minimal conflict sets. Designed LCNF language. Designed minimal conflict set discovery technique. Wrote LiPSyNC’s translator from planning to LCNF and the decoder from LCNF solution to plan. extended SAT solver to work with metric constraints and Cassowary. Extended Cassowary to discover minimal conflict sets. Designed LCNF language. Designed minimal conflict set discovery technique. Wrote LiPSyNC’s translator from planning to LCNF and the decoder from LCNF solution to plan.

6 Outline Motivation Planning System LCNF LPSAT Experimental Results Conclusions planning compiler LPSAT solver planning decoder input planning language LCNF intermediate language value assignment solution plan

7 Metric Planning Compiler/Decoder Compiler –inputs planning problems in LPDDL –accepts constraints over operators +, -, *, and  –outputs LCNF problem and mapping tables Decoder –inputs solution to LCNF problem and mapping tables –outputs plan with instantiated metric values So non-linear OK, so far Extension of McDermott’s PDDL (truth assignment and constraint variable values)

8 Sample Metric Planning Domain Action: MOVE-TRUCK(load) preconditions: load  45 ; max. avail. RedVines fuel  7 + load / 2 ; min. required fuel fuel  15 ; fuel capacity load  30 ; load capacity effects: (deliver) if (load = 45) then ; good-trip moves (good-trip) ; all the RedVines Steve Wolfman: I will use this as a running example Steve Wolfman: I will use this as a running example

9 Sample Metric Planning Problem Problem: Too-Big initial conditions: not (deliver) not (good-trip) goal conditions: (deliver) (good-trip) Mention unsolvable for goals deliver _and_ good-trip

10 LCNF Language CNF formula with triggered constraints –Boolean variable triggers one (or no) constraint –Constraint triggered iff its trigger variable’s truth assignment is true –Truth/real-value assignment is a solution iff CNF formula is satisfied All triggered constraints are satisfied

11 Sample Problem in LCNF good-trip 1 deliver 1 move-truck 0  max-load move-truck 0  max-fuel move-truck 0  min-fuel move-truck 0  deliver 1 (move-truck 0  all-loaded)  good-trip 1... max-load: load  30 max-fuel: fuel  15 min-fuel: fuel  7 + load/2 all-loaded: load = CNF formulaConstraint triggers Variable names and, in particular, trigger names added for clarity That’s the front end of the system; the back end simply reads off which actions are assigned true and what the constraint vars values are Set aside for later use!

12 LPSAT Inputs LCNF subset –Supports operators +, -, *, and  –Restricts constraints to linear (in)equalities Outputs truth/real-value assignment or reports failure –Sound –Complete –Satisficing As opposed to optimizing

13 LPSAT Architecture Satisfiability Solver Linear Programming System new/revoked constraints consistency info, real variable values input problem solution

14 LPSAT Design SAT controller calls LP black box SAT solver based on RelSAT [Bayardo&Schrag] –Systematic solver –Sound and complete –Gradual changes to constraint set –Learning/backjumping based on conflict sets LP system is Cassowary [Badros&Borning] –supports linear constraints over real variables –fast updates to constraint set Explores all possible truth assignments without repeating any

15 LPSAT Algorithm: Redefinitions Important changes to RelSAT concepts satisfied = statement is empty and active constraint set is consistent inconsistent = clause in statement is empty or active constraint set is inconsistent pure literal = any literal whose negation never appears in statement except positive trigger variables

16 LPSAT Algorithm Procedure LPSAT(φ: LCNF problem) If φ is satisfied, return YES Else if φ is inconsistent, return NO Else if there is a unit clause {  } or pure literal  in φ, return LPSAT(φ|  ) Else choose a variable in φ. If LPSAT(φ| ), return YES Else, return LPSAT(φ|  ) Put on other projector

17 Modifications to RelSAT Altered to support trigger variables –Constraints tied to variables –Pure literal rule modified Incorporated constraints in solution –Constraint consistency checked after each add –Real values reported in final solution Added trigger-aware heuristic function

18 Modifications to Cassowary Support RelSAT learning/backjumping Global conflict set discovery –Reports entire set of active constraints –Correct but conservative Minimal conflict set discovery –Set of constraints reported is inconsistent –Every proper subset of the set is consistent –Correct and almost optimal Implemented in Cassowary framework Linear in # of constraints + # of variables Determines most constraining conflict set Implemented in Cassowary framework Linear in # of constraints + # of variables Determines most constraining conflict set Minimal, not minimum Explain why smaller is better!

19 Sample Problem Conflict Sets fuel load load  30 fuel  15 load = 45 fuel  7+load/2 Solution region without load = 45 constraint

20 Experimental Results Tested against Zeno planner –Many times faster than Zeno –Solved problems Zeno could not solve Tested conflict set discovery techniques –Without learning/backjumping (slow) –With global conflict sets (faster) –With minimal conflict sets (fastest) Under resource bounds (memory)

21 Conflict Set Discovery Results The domain is a metric version of Kautz and Selman’s logistics domain. Log-c is difficult in the original domain even for modern planners

22 Contributions Created LCNF intermediate language Implemented LPSAT, an LCNF solver –Solves LCNF with linear constraints –Incorporates new technique for finding conflict sets in incremental Simplex Implemented a full metric planning system –Compiler translates metric planning to LCNF –Decoder translates LCNF solutions to plans

23 Conclusions Enhanced satisfiability solvers are effective for solving metric planning problems Effective heuristics for combined solution processes must use information from both processes The translate/solve/decode architecture of SAT-based planning can be profitably extended to more complex solvers

24 Future Work: Compiler/Decoder Optimize current compiler –Speed –Encoding quality Use metric IPP [Koehler] to compile metric planning problems to LCNF Compiler/decoders for new domains –Scheduling –Temporal planning –Analog circuit verification

25 Future Work: LPSAT/LCNF Implement LPSAT with a stochastic SAT solver Decompose nonlinearities in LCNF Construct an LCNF solver with native support for nonlinear constraints Investigate other combinations of solution processes