Silvia Rossi! Planning. Lezione n.! Corso di Laurea:! Informatica! Insegnamento:! Sistemi! multi-agente! ! A.A !
|
|
- Aleesha Rich
- 6 years ago
- Views:
Transcription
1 Silvia Rossi! Planning 4 Lezione n.! Corso di Laurea:! Informatica! Insegnamento:! Sistemi! multi-agente! ! silrossi@unina.it! A.A !
2 Agent Planning! (R&N:11.1,11.2) Additional reading: Malik Ghallab, Dana Nau, Paolo Traverso, "Automated Task Planning. Theory & Practice", Morgan Kaufmann, (2004). 2
3 !A set of blocks, a table and a robot arm. Block words!!all the blocks are equal in size, form and color, distinguished only by name.!the table has an unlimited extension.!a block can be on the table, on top of another block or held by the robot.!the robot arm can only hold one block at a time.!solve problems by changing the initial configuration (state) into a state that meets the goals. 3
4 Planning vs. problem solving!! Planning and problem solving methods can often solve the same sorts of problems! Planning is more powerful because of the representations and methods used! States, goals, and actions are decomposed into sets of sentences (usually in first-order logic)! Search often proceeds through plan space rather than state space (though there are also state-space planners)! Subgoals can be planned independently, reducing the complexity of the planning problem
5 Goal of Planning!!!! Choose actions to achieve a certain goal But isn t it exactly the same goal as for problem solving? Some difficulties with problem solving:! The successor function is a black box: it must be applied to a state to know which actions are possible in that state and what are the effects of each one! Suppose that the goal is HAVE(MILK).! From some initial state where HAVE(MILK) is not satisfied, the successor function must be repeatedly applied to eventually generate a state where HAVE(MILK) is satisfied.! An explicit representation of the possible actions and their effects would help the problem solver select the relevant actions
6 Otherwise, in the real world an agent would be overwhelmed by irrelevant actions
7 Goal of Planning!!!! Choose actions to achieve a certain goal But isn t it exactly the same goal as for problem solving? Suppose that the goal is HAVE(MILK)!HAVE(BOOK) Some difficulties with problem solving:! The goal test is another black-box function, states are domain-specific data structures, and heuristics must be supplied for each new problem Without an explicit representation of the goal, the problem solver cannot know that a state where HAVE(MILK) is already achieved is more promising than a state where neither HAVE(MILK) nor HAVE(BOOK) is achieved
8 ! Choose actions to achieve a certain goal Goal of Planning!! But isn t it exactly the same goal as for problem solving?! Some difficulties with problem solving:! The goal may consist of several nearly independent subgoals, but there is no way for the problem solver to know it HAVE(MILK)and HAVE(BOOK) may be achieved by two nearly independent sequences of actions
9 Planning opens up the blackboxes by using logic to represent:!actions!states!goals Problem solving Logic representation Planning
10 Stanford Research Institute Problem Solver! STRIPS (Fikes and Nilsson 1971)! Control System for the Shakey robot!
11 Knowledge Representation in Strips! A state is represented as a conjunction of instantiated predicates! at(object1,airport1), at(plane1,airport1),! at(truck1,airport1), at(truck2,post-o"ce2),...! Normally, it is assumed that the facts not present in a state are false: closed world assumption.!
12 The following predicates can be used:! States and Goals in Block world!!on(x,y): block x is on top of block y!!on-table(x): block x is on the table!!clear(x): block x has no block above it and is not being held by the robot arm!!holding(x): the robot arm is holding block x!!arm-empty: the robot arm is not holding a block!
13 Basic representations for planning! Classic approach first used in STRIPS planner circa 1970 States represented as a conjunction of ground literals at(home) Goals are conjunctions of literals, but may have existentially quantified variables at(x) ^ have(milk) ^ have(bananas)... Do not need to fully specify state Non-specified either don t-care or assumed false Represent many cases in small storage Often only represent changes in state rather than entire situation Unlike theorem prover, not seeking whether the goal is true, but is there a sequence of actions to attain it
14 Operator/action representation! Operators contain three components: Action description Precondition - conjunction of positive literals Effect - conjunction of positive or negative literals which describe how situation changes when operator is applied Example: Op[Action: Go(there), Precond: At(here) ^ Path(here,there), Effect: At(there) ^ ~At(here)] All variables are universally quantified Situation variables are implicit preconditions must be true in the state immediately before operator is applied; effects are true immediately after
15 Blocks world! The blocks world is a micro-world that consists of a table, a set of blocks and a robot hand. Some domain constraints: Only one block can be on another block Any number of blocks can be on the table The hand can only hold one block Typical representation: ontable(a) ontable(c) on(b,a) handempty clear(b) clear(c) B A C TABLE
16 State Representation! C A B TABLE Conjunction of propositions: BLOCK(A), BLOCK(B), BLOCK(C), ON(A,TABLE), ON(B,TABLE), ON(C,A), CLEAR(B), CLEAR(C), HANDEMPTY
17 Goal Representation! C B A Conjunction of propositions: ON(A,TABLE), ON(B,A), ON(C,B) The goal G is achieved in a state S if all the propositions in G are also in S
18 Action Representation! Unstack(x,y)! P =HANDEMPTY, BLOCK(x), BLOCK(y), CLEAR(x), ON(x,y)!E = HANDEMPTY, CLEAR(x), HOLDING(x), ON(x,y), CLEAR(y) Effect: list of literals Precondition: conjunction of propositions Means: Remove HANDEMPTY from state Means: Add HOLDING(x) to state
19 Example! C A B BLOCK(A), BLOCK(B), BLOCK(C), ON(A,TABLE), ON(B,TABLE), ON(C,A), CLEAR(B), CLEAR(C), HANDEMPTY Unstack(C,A)! P =HANDEMPTY, BLOCK(C), BLOCK(A), CLEAR(C), ON(C,A)!E = HANDEMPTY, CLEAR(C), HOLDING(C), ON(C,A), CLEAR(A)
20 Example! A C B BLOCK(A), BLOCK(B), BLOCK(C), ON(A,TABLE), ON(B,TABLE), ON(C,A), CLEAR(B), CLEAR(C), HANDEMPTY, HOLDING(C), CLEAR(A) Unstack(C,A)! P =HANDEMPTY, BLOCK(C), BLOCK(A), CLEAR(C), ON(C,A)!E = HANDEMPTY, CLEAR(C), HOLDING(C), ON(C,A), CLEAR(A)
21 Action Representation! Unstack(x,y)! P = HANDEMPTY, BLOCK(x), BLOCK(y), CLEAR(x), ON(x,y)!E = HANDEMPTY, CLEAR(x), HOLDING(x), ON(x,y), CLEAR(y) Stack(x,y)! P = HOLDING(x), BLOCK(x), BLOCK(y), CLEAR(y)! E = ON(x,y), CLEAR(y), HOLDING(x), CLEAR(x), HANDEMPTY Pickup(x)! P = HANDEMPTY, BLOCK(x), CLEAR(x), ON(x,TABLE)! E = HANDEMPTY, CLEAR(x), HOLDING(x), ON(x,TABLE) PutDown(x)! P = HOLDING(x)! E = ON(x,TABLE), HOLDING(x), CLEAR(x), HANDEMPTY
22 Typical BW planning problem! Initial state: clear(a) clear(b) clear(c) ontable(a) ontable(b) A plan: pickup(b) stack(b,c) ontable(c) handempty Goal: A C B pickup(a) stack(a,b) on(b,c) on(a,b) ontable(c) A B C
23 Another BW planning problem! Initial state: clear(a) clear(b) clear(c) A plan: pickup(a) stack(a,b) ontable(a) ontable(b) ontable(c) handempty Goal: on(a,b) on(b,c) ontable(c) A C B A B C unstack(a,b) putdown(a) pickup(b) stack(b,c) pickup(a) stack(a,b)
24 Forward Planning! Forward planning searches a state space C A B Pickup(B) C A B C B A Unstack(C,A)) C A B C A B In general, many actions are applicable B to a state! huge branching factor B A B C A C A C B A C
25 Operators are applied until the goals are reached Forward Search! ProgWS(state, goals, actions, path) If state satisfies goals, then return path else a = choose(actions), s.t. preconditions(a) satisfied in state if no such a, then return failure else return ProgWS(apply(a, state), goals, actions, concatenate(path, a)) First call: ProgWS(IS, G, Actions, ()) 2 5
26 "! Forward planning still suffers from an excessive branching factor "! In general, there are much fewer actions that are relevant to achieving a goal than actions that are applicable to a state "! How to determine which actions are relevant? How to use them? "!! Backward planning 2 6
27 Relevant Action! An action is relevant to a goal if one of its effects matched a goal proposition Stack(B,A) P = HOLDING(B), BLOCK(A), CLEAR(A) E = ON(B,A), CLEAR(A), HOLDING(B), CLEAR(B), HANDEMPTY is relevant to ON(B,A), ON(C,B)
28 Regression of a Goal! The regression of a goal G through an action A is the weakest precondition R[G,A] such that: If a state S satisfies R[G,A] then: 1.!The precondition of A is satisfied in S 2.!Applying A to S yields a state that satisfies G
29 ! G = ON(B,A), ON(C,B)! Stack(C,B)! P = HOLDING(C), BLOCK(C), BLOCK(B), CLEAR(B)! E = ON(C,B), CLEAR(B), HOLDING(C), CLEAR(C), HANDEMPTY! R[G,Stack(C,B)] = ON(B,A), HOLDING(C), BLOCK(C), BLOCK(B), CLEAR(B) Example!
30 Example!! G = CLEAR(B), ON(C,B)! Stack(C,B)! P = HOLDING(C), BLOCK(C), BLOCK(B), CLEAR(B)! E = ON(C,B), CLEAR(B), HOLDING(C), CLEAR(C), HANDEMPTY! R[G,Stack(C,B)] = False
31 Computation of R[G,A]! 1.! If any element of G is deleted by A then return False 2.! G # Precondition of A 3.! For every element SG of G do If SG is not added by A then add SG to G 4.! Return G
32 Computation of R[G,A]! 1.! If any element of G is deleted by A then return False 2.! G # Precondition of A 3.! For every element SG of G do If SG is not added by A then add SG to G 4.! If an inconsistency rule applies to G then return False 5.! Return G
33 Backward Chaining! ON(B,A), ON(C,B) Stack(C,B) ON(B,A), HOLDING(C), CLEAR(B) C A B In general, there are much fewer actions relevant to a goal than there are actions applicable! smaller branching factor than with forward planning
34 Backward Chaining! ON(B,A), ON(C,B) Stack(C,B) ON(B,A), HOLDING(C), CLEAR(B) Pickup(C) C A B ON(B,A), CLEAR(B), HANDEMPTY, CLEAR(C), ON(C,TABLE) Stack(B,A) Backward planning searches a goal space CLEAR(C), ON(C,TABLE), HOLDING(B), CLEAR(A) Pickup(B) CLEAR(C), ON(C,TABLE), CLEAR(A), HANDEMPTY, CLEAR(B), ON(B,TABLE) Putdown(C) CLEAR(A), CLEAR(B), ON(B,TABLE), HOLDING(C) Unstack(C,A) CLEAR(B), ON(B,TABLE), CLEAR(C), HANDEMPTY, ON(C,A)
35 Both algorithms are:!sound: the result plan is valid!complete: if valid plan exists, they find one Progression vs. Regression! Non-deterministic choice => search!!brute force: DFS, BFS, Iterative Deepening,..,!Heuristic: A*, IDA*, Complexity: O(b n ) worst-case b = branching factor, n = choose Regression: often smaller b, focused by goals Progression: full state to compute heuristics 3 5
36 STRIPS!!Symbolic representations of knowledge about the problem domain.!goal decomposition.!incorporate relevant operators to the plan even when they can not be applied to the current state.!mixed of regression and progression. 3 6
37 !Search:! Nodes: current state and a stack of goals-operators! Root node: initial state and goal configuration!idea:! Push onto the stack the goals to achieve and the operators that achieve these goals! Pop from the stack goals that are present in the current state, and operators that are executable 3 7
38 STRIPS planning!! STRIPS maintains two additional data structures:! State List - all currently true predicates.! Goal Stack - a push down stack of goals to be solved, with current goal on top of stack.! If current goal is not satisfied by present state, examine add lists of operators, and push operator and preconditions list on stack. (Subgoals)! When a current goal is satisfied, POP it from stack.! When an operator is on top stack, record the application of that operator on the plan sequence and use the operator s add and delete lists to update the current state.
39 1. Match: if the objective of the top of the stack matches with the current state, this objective is deleted from the stack.!
40 2. Decompose: If the goal in the top of the stack is a conjunction, then add the literal components at the top of the stack in a certain order.!
41 3. Solve: When the goal at the top of the stack is one unresolved literal, then find an operator whose adds list contains a literal that matches with the objective.!
42 4. Apply: When the object on top of the stack is an operator, then delete it from the stack and apply it on the current state.!
43 The process is repeated until the stack is empty.!
44 !Can Strips always find a plan if there is one?!!when Strips returns a plan, is it always correct? e"cient?!
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64 Example 2!
65
66
67 Goal interaction!! Simple planning algorithms assume that the goals to be achieved are independent!each can be solved separately and then the solutions concatenated! This planning problem, called the Sussman Anomaly, is the classic example of the goal interaction problem:! Solving on(a,b) first (by doing unstack(c,a), stack(a,b) will be undone when solving the second goal on(b,c) (by doing unstack(a,b), stack(b,c)).!solving on(b,c) first will be undone when solving on(a,b)! Classic STRIPS could not handle this, although minor modifications can get it to do simple cases C A B A B C Initial state Goal state
68 State-space planning!! We initially have a space of situations (where you are, what you have, etc.)! The plan is a solution found by searching through the situations to get to the goal! A progression planner searches forward from initial state to goal state! A regression planner searches backward from the goal! Ideally this leads to reduced branching you are only considering things that are relevant to the goal
69 Plan-space planning! An alternative is to search through the space of plans, rather than situations. Start from a partial plan which is expanded and refined until a complete plan that solves the problem is generated. Refinement operators add constraints to the partial plan and modification operators for other changes. We can still use STRIPS-style operators: Op(ACTION: RightShoe, PRECOND: RightSockOn, EFFECT: RightShoeOn) Op(ACTION: RightSock, EFFECT: RightSockOn) Op(ACTION: LeftShoe, PRECOND: LeftSockOn, EFFECT: LeftShoeOn) Op(ACTION: LeftSock, EFFECT: leftsockon) could result in a partial plan of [RightShoe, LeftShoe]
70 Partial-order planning! A linear planner builds a plan as a totally ordered sequence of plan steps A non-linear planner (aka partial-order planner) builds up a plan as a set of steps with some temporal constraints constraints of the form S1<S2 if step S1 must comes before S2. One refines a partially ordered plan (POP) by either: adding a new plan step, or adding a new constraint to the steps already in the plan. A POP can be linearized (converted to a totally ordered plan) by topological sorting
71 Least commitment!! Non-linear planners embody the principle of least commitment! only choose actions, orderings, and variable bindings that are absolutely necessary, leaving other decisions till later! avoids early commitment to decisions that don t really matter! A linear planner always chooses to add a plan step in a particular place in the sequence! A non-linear planner chooses to add a step and possibly some temporal constraints
72 Non-linear plan! A non-linear plan consists of (1) A set of steps {S 1, S 2, S 3, S 4 } Each step has an operator description, preconditions and postconditions (2) A set of causal links { (S i,c,s j ) } Meaning a purpose of step S i is to achieve precondition C of step S j (3) A set of ordering constraints { S i <S j } if step S i must come before step S j
73 Causal Link: Action Ac (consumer) has precondition Q that is established in the plan by Ap(producer). 7 3
74 Step At threatens link (Ap, Q, Ac) if: 1. At has (not Q) as an effect, and 2. At could come between Ap and Ac, i.e. O u (Ap< At< Ac) is consistent 7 4
75 Soluzione! Una soluzione è un piano completo e consistente In un piano completo ogni precondizione di un passo viene raggiunta da qualche altro passo. Un passo raggiunge una condizione se la condizione è uno degli effetti del passo e se nessun altro passo può eliminare la condizione. In un piano consistente non c è alcuna contraddizione nell ordinamento o nei vincoli sui legami (se validi entrambi c è contraddizione)
76 The initial plan! Every plan starts the same way S1:Start Initial State Goal State S2:Finish
77 Initial Plan! For uniformity, represent initial state and goal with two special actions:! Start:!! no preconditions,! initial state as effects,! must be the first step in the plan. Finish:!! no effects! goals as preconditions! must be the last step in the plan.
78 Trivial example! Operators: Op(ACTION: RightShoe, PRECOND: RightSockOn, EFFECT: RightShoeOn) Op(ACTION: RightSock, EFFECT: RightSockOn) Op(ACTION: LeftShoe, PRECOND: LeftSockOn, EFFECT: LeftShoeOn) Op(ACTION: LeftSock, EFFECT: leftsockon) S1:Start RightShoeOn ^ LeftShoeOn S2:Finish Steps: {S1:[Op(Action:Start)], S2:[Op(Action:Finish, Pre: RightShoeOn^LeftShoeOn)]} Links: {} Orderings: {S1<S2}
79 Solution! Start Left Sock Left Shoe Right Sock Right Shoe Finish
80 Linearizzazioni!
81 POP! POP is sound and complete POP Plan is a solution if:!all preconditions are supported (by causal links), i.e., no open conditions.!no threats!consistent temporal ordering By construction, the POP algorithm reaches a solution plan 8 1
82 Example! Op(ACTION: START, PRECONDITION: nil, EFFECT: AT(HOME) and SELLS(STORE,DRILL) and SELLS(SUPER,MILK) and SELLS(SUPER, BREAD)) Op(ACTION: FINISH, PRECONDITION: HAVE(DRILL) and HAVE(MILK) and HAVE(BREAD) and AT(HOME), EFFECT: nil) Op(ACTION: GO(x), PRECONDITION: AT(x), EFFECT: AT(y) and not AT(x)) Op(ACTION: BUY(x), PRECONDITION: AT(SHOP) and SELLS(SHOP,x), EFFECT: HAVE(x)) 8 2
83 Initial Plan! 8 3
84 8 4
85 8 5
86 8 6
87 Corretto?! 8 7
88 Piani con condizioni! 8 8
89 Demotion! 8 9
90 Promotion! 9 0
91 9 1
92 9 2
93 Piano Totale! 9 3
94 POP! 9 4
95 Heuristics! Heuristics for selecting plans:!number of steps N!Unsolved preconditions OP Often uses analgorithm A * with heuristics: f(p)=n(p) + OP(P) 9 5
96 Least commitment! Non-linear planners embody the principle of least commitment only choose actions, orderings, and variable bindings that are absolutely necessary, leaving other decisions till later avoids early commitment to decisions that don t really matter A linear planner always chooses to add a plan step in a particular place in the sequence A non-linear planner chooses to add a step and possibly some temporal constraints
97 Non-linear plan! A non-linear plan consists of (1) A set of steps {S 1, S 2, S 3, S 4 } Each step has an operator description, preconditions and postconditions (2) A set of causal links { (S i,c,s j ) } Meaning a purpose of step S i is to achieve precondition C of step S j (3) A set of ordering constraints { S i <S j } if step S i must come before step S j A non-linear plan is complete iff Every step mentioned in (2) and (3) is in (1) If S j has prerequisite C, then there exists a causal link in (2) of the form (S i,c,s j ) for some S i If (S i,c,s j ) is in (2) and step S k is in (1), and S k threatens (S i,c,s j ) (makes C false), then (3) contains either S k <S i or S j >S k
98 Consistent Plan! Consistent plan:! No cycles in the ordering constraint;! No conflicts with the causal links. A consistent plan with no open precondition is a solution 9 8
99 1) The initial plan contains Start and Finish! the ordering constraint Start < Finish,! no causal links! all the preconditions in Finish as open preconditions. 9 9
100 2) The successor function arbitrarily picks one open precondition p on an action B and generates a successor plan for every possible consistent way of choosing an action A that achieves p. Consistency is enforced as follows: 1. The causal link A ->p B and the ordering constraint A < B are added to the plan. Action A may be an existing action in the plan or a new one. If it is new, add it to the plan and also add Start < A and A < Finish. 100
101 2) The successor function arbitrarily picks one open precondition p on an action B and generates a successor plan for every possible consistent way of choosing an action A that achieves p. 2. Resolve conflicts between the new causal link and all existing actions. A conflict between A ->p B and C is resolved by making C occur at some time outside the protection interval B < C C < A We add successor states for either or both if they result in consistent plans 101
102 3) The goal test checks whether a plan is a solution to the original planning problem. Because only consistent plans are generated, the goal test just needs to check that there are no open preconditions. 102
103 Nonlinear Planning! P: -: +: ON(A,TABLE) ON(B,TABLE) ON(C,A) CLEAR(B) CLEAR(C) HANDEMPTY P: ON(B,A) ON(C,B) -: +:
104 Open preconditions The plan is incomplete P: HOLDING(B) CLEAR(A) -: CLEAR(A) HOLDING(B) +: ON(B,A) CLEAR(B) HANDEMPTY Stack(B,A) P: -: +: ON(A,TABLE) ON(B,TABLE) ON(C,A) CLEAR(B) CLEAR(C) HANDEMPTY P: ON(B,A) ON(C,B) -: +:
105 P: HOLDING(B) CLEAR(A) -: CLEAR(A) HOLDING(B) +: ON(B,A) CLEAR(B) HANDEMPTY Stack(B,A) P: -: +: ON(A,TABLE) ON(B,TABLE) ON(C,A) CLEAR(B) CLEAR(C) HANDEMPTY Stack(C,B) P: HOLDING(C) CLEAR(B) -: CLEAR(B) HOLDING(C) +: ON(C,B) CLEAR(C) HANDEMPTY P: ON(B,A) ON(C,B) -: +:
106 P: HOLDING(B) CLEAR(A) -: CLEAR(A) HOLDING(B) +: ON(B,A) CLEAR(B) HANDEMPTY Stack(B,A) P: -: +: ON(A,TABLE) ON(B,TABLE) ON(C,A) CLEAR(B) CLEAR(C) HANDEMPTY Stack(C,B) Pickup(C) P: ON(B,A) ON(C,B) P: HOLDING(C) CLEAR(B) -: CLEAR(B) HOLDING(C) +: ON(C,B) CLEAR(C) HANDEMPTY -: +:
107 Other possible achiever Pickup(B) Achievers Stack(B,A) P: -: +: ON(A,TABLE) ON(B,TABLE) ON(C,A) CLEAR(B) CLEAR(C) Threat Stack(C,B) P: CLEAR(B) Pickup(C) P: ON(B,A) ON(C,B) -: +: HANDEMPTY
108 Pickup(B) P: CLEAR(B) Stack(B,A) P: -: +: ON(A,TABLE) ON(B,TABLE) ON(C,A) CLEAR(B) CLEAR(C) HANDEMPTY Stack(C,B) P: CLEAR(B) Pickup(C) P: ON(B,A) ON(C,B) -: +:
109 Pickup(B) A consistent plan is one in which there is no cycle and no conflict between achievers and threats P: -: +: ON(A,TABLE) ON(B,TABLE) ON(C,A) CLEAR(B) CLEAR(C) HANDEMPTY A conflict can be eliminated by constraining the ordering among the actions or by adding new actions Stack(B,A) Stack(C,B) Note the similarity with constraint propagation Pickup(C) P: ON(B,A) ON(C,B) -: +:
110 Pickup(B) P: HANDEMPTY Stack(B,A) P: -: +: ON(A,TABLE) ON(B,TABLE) ON(C,A) CLEAR(B) CLEAR(C) HANDEMPTY Stack(C,B) Pickup(C) P: ON(B,A) ON(C,B) -: +:
111 Pickup(B) P: HANDEMPTY Stack(B,A) P: -: +: ON(A,TABLE) ON(B,TABLE) ON(C,A) CLEAR(B) CLEAR(C) HANDEMPTY Stack(C,B) Pickup(C) P: HANDEMPTY P: ON(B,A) ON(C,B) -: +:
112 ~ Most-constrained-variable heuristic in CSP! choose the unachieved precondition that can be satisfied in the fewest number of ways! ON(C,TABLE) Pickup(B) P: HANDEMPTY CLEAR(B) ON(B,TABLE) Stack(B,A) P: HOLDING(B) CLEAR(A) P: -: +: ON(A,TABLE) ON(B,TABLE) ON(C,A) CLEAR(B) CLEAR(C) HANDEMPTY Stack(C,B) P: ON(B,A) ON(C,B) P: HOLDING(C) -: CLEAR(B) +: Pickup(C) P: HANDEMPTY CLEAR(C) ON(C,TABLE)
113 Pickup(B) Stack(B,A) P: -: +: ON(A,TABLE) ON(B,TABLE) ON(C,A) CLEAR(B) CLEAR(C) HANDEMPTY Stack(C,B) Pickup(C) Putdown(C) P: ON(B,A) ON(C,B) -: +:
114 Pickup(B) Stack(B,A) P: -: +: ON(A,TABLE) ON(B,TABLE) ON(C,A) CLEAR(B) CLEAR(C) HANDEMPTY Stack(C,B) Unstack(C,A) Pickup(C) Putdown(C) P: ON(B,A) ON(C,B) -: +:
115 Pickup(B) P: HANDEMPTY Stack(B,A) P: -: +: ON(A,TABLE) ON(B,TABLE) ON(C,A) CLEAR(B) CLEAR(C) HANDEMPTY Stack(C,B) Unstack(C,A) Pickup(C) Putdown(C) P: ON(B,A) ON(C,B) -: +:
116 Pickup(B) Stack(B,A) P: -: +: ON(A,TABLE) ON(B,TABLE) ON(C,A) CLEAR(B) CLEAR(C) HANDEMPTY Stack(C,B) Unstack(C,A) Pickup(C) Putdown(C) P: ON(B,A) ON(C,B) -: +:
117 The plan is complete because Stack(B,A) every P: -: +: ON(A,TABLE) ON(B,TABLE) ON(C,A) CLEAR(B) CLEAR(C) HANDEMPTY Unstack(C,A) Pickup(B) P: HANDEMPTY CLEAR(B) ON(B,TABLE) P: HOLDING(B) CLEAR(A) precondition of every step is added by P: some HANDEMPTY previous step, and no CLEAR(C) Stack(C,B) intermediate ON(C,A) step deletes it Pickup(C) Putdown(C) P: ON(B,A) ON(C,B) P: HOLDING(C) -: CLEAR(B) +: P: HANDEMPTY P: HOLDING(C) CLEAR(C) ON(C,TABLE)
118 Hierarchical Planning! (R&N:12.2)
119 Hierarchical Planning Brief History! Originally developed about 25 years ago Knowledge-based! Scalable Task Hierarchy is a form of domain-specific knowledge Practical, applied to real world problems (linear time vs. exponential) Lack of theoretical understanding until early 1990 s Formal semantics, sound/complete algorithm,
120 Hierarchical Decomposition!
121 HTN Planning!! Capture hierarchical structure of the planning domain! Planning domain contains non-primitive actions and schemas for reducing them! Reduction schemas:!given by the designer!express preferred ways to accomplish a task
122 Hierarchical decomposition!!hierarchical decomposition, or hierarchical task network (HTN) planning, uses abstract operators to incrementally decompose a planning problem from a high-level goal statement to a primitive plan network!primitive operators represent actions that are executable, and can appear in the final plan!non-primitive operators represent goals (equivalently, abstract actions) that require further decomposition (or operationalization) to be executed!there is no right set of primitive actions: One agent s goals are another agent s actions!
123 HTN planning: example!
124 Hierarchical Decomposition! From a high-level action to a partially ordered set of lowerlevel actions.
125 HTN Planning! A plan library contains both primitive and nonprimitive actions. Non-primitive actions have external preconditions, as well as external effects. Sometimes useful to distinguish between primary effects and secondary effects.
126 State: list of ground atoms Tasks: Primitive tasks: do[f(x 1,, x n )] Non-primitive tasks: Goal task: achieve(l) (l is a literal) Compound task: perform[t(x 1,, x n )] HTN Formalization (1)! Plan Library Operator: [operator f(x 1,, x n ) (pre: l 1,, l n ) (post: l 1,, l n )] Method: Decompose(!, d) " is a non-primitive task and d is a task network Plan: sequence of ground primitive tasks (operators)
127 Task Reduction!
128 Example action descriptions! Action(BuyLand, PRECOND:money, EFFECT: Land Money) Action(GetLoan, PRECOND: GoodCredit, EFFECT: Money Mortage) Action(BuildHouse, PRECOND:Land, EFFECT: House) Action(GetPermit, PRECOND: Land, EFFECT: Permit) Action(HireBuilder, EFFECT: Contract) Action(Construction, PRECOND: Permit Contract, EFFECT: HouseBuild Permit) Action(PayBuilder, PRECOND:Money HouseBuilt, EFFECT: Money House Contract) 128
129 Example action descriptions! Decompose(BuildHouse, Plan(STEPS:{S1: GetPermit, S2: HireBuilder, S3: Construction, S4: PayBuilder} ORDERINGS: {Start S1 S3 S4 Finish, Start S2 S3, LINKS: {Start Land S1, Start Money S4, S1 Permit S3, S2 Contract S3, S3 HouseBuilt S4, S4 House Finish, S4 Money Finish})) 129
130 Correctness!! A decomposition should be a correct implementation of the action.! A plan d implements an action a correctly if d is a complete and consistent partial-order plan for the problem of achieving the effects of a given the preconditions of a (result of a sound POP).! The plan library contains several decompositions for any highlevel action.! Each decomposition might have different preconditions and effects. The preconditions of the high-level action should be the intersection of the preconditions of the decompositions (similarly for the external effects.) 130
131 Information hiding! The high-level description hides all the internal effects of decompositions (e.g., Permit and Contract). It also hides the duration the internal preconditions and effects hold. Advantage: reduces complexity by hiding details Disadvantage: conflicts are hidden too 131
132 Example! 132
133 HTN Planning Algorithm (intuition)! Problem reduction: Decompose tasks into subtasks Handle constraints Resolve interactions If necessary, backtrack and try other decompositions
134 Basic HTN Procedure! 1.! Input a planning problem P 2.! If P contains only primitive tasks, then resolve the conflicts and return the result. If the conflicts cannot be resolved, return failure 3.! Choose a non-primitive task t in P 4.! Choose an expansion for t 5.! Replace t with the expansion 6.! Find interactions among tasks in P and suggest ways to handle them. Choose one. 7.! Go to 2
135 For each decomposition d of an action a! Remove the high level action, and insert/reuse actions for each action in d Reuse -> subtask sharing Merge the ordering constraints (If there is an ordering constraint of the form B should every step of d come after B? Merge the causal links 135
136 Comments on HTN planning! The major idea is to gain efficiency by using the library of preconstructed plans. When there is recursion, it is undecidable even if the underlying state space is finite. recursion can be ruled out the length of solutions can be bound can use a hybrid POP and HTN approach 136
137 SHOP (Simple Hierarchical Ordered Planner)!! Domain-independent algorithm for Ordered Task Decomposition! Sound/complete! Input:! State: a set of ground atoms! Task List: a linear list of tasks! Domain: methods, operators, axioms! Output: one or more plans, it can return:! the first plan it finds! all possible plans! a least-cost plan! all least-cost plans
138 Simple Example!! Initial task list: ((travel home park))! Initial state: ((at home) (cash 20) (distance home park 8))! Methods (task, preconditions, subtasks):! (:method (travel?x?y) ((at?x) (walking-distance?x?y)) ' ((!walk?x?y)) 1)! (:method (travel?x?y) ((at?x) (have-taxi-fare?x?y)) ' ((!call-taxi?x) (!ride?x?y) (!pay-driver?x?y)) 1)! Axioms: Optional cost; default is 1! (:- (walking-dist?x?y) ((distance?x?y?d) (eval (<=?d 5))))! (:- (have-taxi-fare?x?y) ((have-cash?c) (distance?x?y?d) (eval (>=?c (+ 1.50?d))))! Primitive operators (task, delete list, add list)! (:operator (!walk?x?y) ((at?x)) ((at?y)))!
139 Initial state: (at home) (cash 20) (distance home park 8) Precond: (travel home park) Simple Example (Continued)! Precond: (at home) Succeed (walking-distance Home park) Fail (distance > 5) (at home) Succeed (have-taxi-fare home park) Succeed (we have $20, and the fare is only $9.50) (!call-taxi home) (!ride home park) (!pay-driver home park) (!walk home park) Final state: (at park) (cash 10.50) (distance home park 8)
140 The SHOP Algorithm! procedure SHOP (state S, task-list T, domain D) 1. if T = nil then return nil 2. t 1 = the first task in T 3. U = the remaining tasks in T 4. if t is primitive & an operator instance o matches t 1 then 5. P = SHOP (o(s), U, D) 6. if P = FAIL then return FAIL 7. return cons(o,p) 8. else if t is non-primitive & a method instance m matches t 1 in S & m s preconditions can be inferred from S then 9. return SHOP (S, append (m(t 1 ), U), D) 10. else 11. return FAIL 12. end if end SHOP state S; task list T=( t 1,t 2, ) operator instance o state o(s) ; task list T=(t 2, ) nondeterministic choice among all methods m whose preconditions can be inferred from S task list T=( t 1,t 2, ) method instance m task list T=( u 1,,u k,t 2, )
141 Introduction to Distributed Planning!
142 Distributed problem solving! 142
143 What can be distributed: Distributed planning! $! The process of coming out with a plan is distributed among agents $! Execution is distributed among agents 143
144 Centralized planning for distributed plans! Operators "!move(b,x,y)! movetotable(b,x) Precond: on(b,x)! clear(b)! clear(y) Precond: on(b,x)! clear(b) Postcond: on(b,y)! clear(x)! Postcond: on(b,t)! clear(x)! on(b,x) on(b,x)! clear(y) I'm Tom Agent2 I'm Bill Agent1 on(b,a) S1: move(b,t,a) Si A B C D E F on(a,b) on(c,d) on(e,f) on(b,t) on(d,t) on(f,t) 1. Given a goal description, a set of operators, and an initial state description generate a partial order plan on(b,t) clear(b) clear(a) movetotable(a,b) move(a,b,y) S2: move(a,b,e) clear(a) clear(e) on(a,b) on(e,t) S3: movetotable(e,f) B A E F D C on(b,a) on(f,d) on(a,e) on(d,c) on(e,t) on(c,t) Sf 144
145 S1: move(b,t,a) To satisfy the preconditions, we have: S2: move(a,b,e) S2 < S1, S3 < S4 S3:movetotable(E,F) S6 < S4, S6 < S5 S4: move(f,t,d) Also S5: move(d,t,c) S2 threat to S3 # S3 < S2 S6: movetotable(c,d) S4 threat to S5 # S5 < S4 Then the partial ordering is: S3 < S2 < S1 S6 < S5 < S4 S3 < S4 S3: movetotable(e,f) S2: move(a,b,e) S1: move(b,t,a) < < S6: movetotable(c,d) S5: move(d,t,c) S4: move(f,t,d) Any total ordering that satisfies this partial ordering is a good plan for Agent1 What if we have 2 agents? DECOMP1 2. Decompose the plan into Subplan1 S3 < S2 < S1 subproblems so as to minimize Subplan2 S6 < S5 < S4 order relations across plans and S3 < S4 3. Insert synchronization Agent1 S3 < send(clear(f)) < S2 < S1 4. Allocate subplans to agents Agent2 S6 < S5 < wait(clear(f)) < S4 145
146 S3: movetotable(e,f) S2: move(a,b,e) S1: move(b,t,a) S6: movetotable(c,d) S5: move(d,t,c) S4: move(f,t,d) DECOMP2 Subplan1 S3 < S5 < S4 Subplan2 S6 < S2 < S1 and S3 < S2 and S6 < S5 Agent1 S3 < send(don't_care(e)) < wait(clear(d)) < S5 < S4 Agent2 S6 < wait(don't_care(e)) < wait(clear(d)) < S2 < S1 "!Obviously, DECOMP2 has more order relations among subplans than DECOMP1 "!Therefore, we choose DECOMP1 S3 < send(clear(f)) < S2 < S1 S6 < S5 < wait(clear(f)) < S4 But I know how to move only D, E, F then back to DECOMP2 < < I know how to move only A, B, C 4. If failure to allocate subplans then redo decomposition (2) If failure to allocate subplans with any decomposition then redo generate plan (1) 5. Execute and monitor subplans 146
147 Distributed planning for centralized plans! Each of the planning agents generate a partial plan in parallel then merge these plans into a global plan "!parallel to result sharing "!may involve negotiation Agent 1 - is specialized in doing movetotable(b,x) Agent 2 - is specialized in doing move(b,x,y) Agent 1 - based on Sf it comes out with the partial plan P Agent1 = { S3: movetotable(e,f) satisfies on(e,t) S6: movetotable(c,d) satisfies on(c,t) no ordering } Agent 2 - based on Sf it comes out with the partial plan P Agent 2 = { S1: move(b,t,a), S2: move(a,b,e) satisfies on(b,a)! on(a,e) S4: move(f,t,d), S5: move(d,t,c) satisfies on(f,d)! on(d,c) ordering S2 < S1 and S5 < S4 } Merge P Agent1 with P Agent2 by checking preconditons and threats Establish thus order S3 < S2, S6 < S5, S3 < S4 + order of P Agent2 Then give any instance of this partial plan to an execution agent to carry it out 147
148 The problem is decomposed and distributed among various planning specialists, each of which proceeds then to generate its portion of the plan "!similar to task sharing "!may involve backtracking Agent 1 - knows only how to deal with 2-block stacks Agent 2 - knows only how to deal with 3-block stacks Si A C E B D F B A F D Sf E C A D E C B F 148
149 Distributed planning for distributed plans! 149
150 "!movehigh(b,x,y) Precond: have_lifter! clear(b)! clear(y)! on(y,z)! z$ T Postcond: on(b,y)! clear(x)! on(b,x)! clear(y)! free_lifter "!pick_lifter Precond: free_lifter Postcond: have_lifter! free_lifter Agent1: { S1:move(A,T,B) < S2: pick_lifter < S3: movehigh(e,t,b) } Agent2: { R1:move(C,T,D) < R2: pick_lifter < R3: movehigh(f,t,c) } Si A B D F E C Negative interactions what type? S1 S2 need_l R1 S3 A B C B Sf 1 E A B F C D Sf free_l R2 R3 150
Distributed Systems. Silvia Rossi 081. Intelligent
Distributed Systems Silvia Rossi srossi@na.infn.it 081 Intelligent 30% for attending classes Grading 30% for presenting a research paper 40% for writing and discussing paper (design of a multi-robot system),
More informationPlanning. Some material taken from D. Lin, J-C Latombe
RN, Chapter 11 Planning Some material taken from D. Lin, J-C Latombe 1 Logical Agents Reasoning [Ch 6] Propositional Logic [Ch 7] Predicate Calculus Representation [Ch 8] Inference [Ch 9] Implemented Systems
More informationPrimitive goal based ideas
Primitive goal based ideas Once you have the gold, your goal is to get back home s Holding( Gold, s) GoalLocation([1,1], s) How to work out actions to achieve the goal? Inference: Lots more axioms. Explodes.
More informationPlanning. Outside Materials (see Materials page)
Planning Outside Materials (see Materials page) What is Planning? Given: A way to describe the world An ini
More informationPlanning Algorithms Properties Soundness
Chapter MK:VI III. Planning Agent Systems Deductive Reasoning Agents Planning Language Planning Algorithms State-Space Planning Plan-Space Planning HTN Planning Complexity of Planning Problems Extensions
More informationCS 621 Artificial Intelligence. Lecture 31-25/10/05. Prof. Pushpak Bhattacharyya. Planning
CS 621 Artificial Intelligence Lecture 31-25/10/05 Prof. Pushpak Bhattacharyya Planning 1 Planning Definition : Planning is arranging a sequence of actions to achieve a goal. Uses core areas of AI like
More information3. Knowledge Representation, Reasoning, and Planning
3. Knowledge Representation, Reasoning, and Planning 3.1 Common Sense Knowledge 3.2 Knowledge Representation Networks 3.3 Reasoning Propositional Logic Predicate Logic: PROLOG 3.4 Planning Planning vs.
More informationPlanning. Introduction
Introduction vs. Problem-Solving Representation in Systems Situation Calculus The Frame Problem STRIPS representation language Blocks World with State-Space Search Progression Algorithms Regression Algorithms
More information3. Knowledge Representation, Reasoning, and Planning
3. Knowledge Representation, Reasoning, and Planning 3.1 Common Sense Knowledge 3.2 Knowledge Representation Networks 3.3 Reasoning Propositional Logic Predicate Logic: PROLOG 3.4 Planning Introduction
More informationCommitment Least you haven't decided where to go shopping. Or...suppose You can get milk at the convenience store, at the dairy, or at the supermarket
Planning as Search-based Problem Solving? Imagine a supermarket shopping scenario using search-based problem solving: Goal: buy milk and bananas Operator: buy Heuristic function: does = milk
More information1 What is Planning? automatic programming. cis716-spring2004-parsons-lect17 2
PLANNING 1 What is Planning? Key problem facing agent is deciding what to do. We want agents to be taskable: give them goals to achieve, have them decide for themselves how to achieve them. Basic idea
More informationPlanning (What to do next?) (What to do next?)
Planning (What to do next?) (What to do next?) (What to do next?) (What to do next?) (What to do next?) (What to do next?) CSC3203 - AI in Games 2 Level 12: Planning YOUR MISSION learn about how to create
More informationPlanning Chapter
Planning Chapter 11.1-11.3 Some material adopted from notes by Andreas Geyer-Schulz and Chuck Dyer Typical BW planning problem A C B A B C Blocks world The blocks world is a micro-world consisting of a
More informationPlanning II. Introduction to Artificial Intelligence CSE 150 Lecture 12 May 15, 2007
Planning II Introduction to Artificial Intelligence CSE 150 Lecture 12 May 15, 2007 Administration Your second to last Programming Assignment is up - start NOW, you don t have a lot of time The PRIZE:
More informationHierarchical Task Network (HTN) Planning
Sec. 12.2 p.1/25 Hierarchical Task Network (HTN) Planning Section 12.2 Sec. 12.2 p.2/25 Outline Example Primitive vs. non-primitive operators HTN planning algorithm Practical planners Additional references
More informationIntelligent Systems. Planning. Copyright 2010 Dieter Fensel and Ioan Toma
Intelligent Systems Planning Copyright 2010 Dieter Fensel and Ioan Toma 1 Where are we? # Title 1 Introduction 2 Propositional Logic 3 Predicate Logic 4 Reasoning 5 Search Methods 6 CommonKADS 7 Problem-Solving
More informationClassical Planning. CS 486/686: Introduction to Artificial Intelligence Winter 2016
Classical Planning CS 486/686: Introduction to Artificial Intelligence Winter 2016 1 Classical Planning A plan is a collection of actions for performing some task (reaching some goal) If we have a robot
More informationArtificial Intelligence
Artificial Intelligence Lecturer 7 - Planning Lecturer: Truong Tuan Anh HCMUT - CSE 1 Outline Planning problem State-space search Partial-order planning Planning graphs Planning with propositional logic
More informationArtificial Intelligence. Planning
Artificial Intelligence Planning Planning Planning agent Similar to previous problem solving agents Constructs plans that achieve its goals, then executes them Differs in way it represents and searches
More informationIntroduction to Planning COURSE: CS40002
1 Introduction to Planning COURSE: CS40002 Pallab Dasgupta Professor, Dept. of Computer Sc & Engg 2 Outline Planning versus Search Representation of planning problems Situation calculus STRIPS ADL Planning
More informationPlanning (Chapter 10)
Planning (Chapter 10) http://en.wikipedia.org/wiki/rube_goldberg_machine Planning Example problem: I m at home and I need milk, bananas, and a drill. What do I do? How is planning different from regular
More informationPlanning. Introduction
Planning Introduction Planning vs. Problem-Solving Representation in Planning Systems Situation Calculus The Frame Problem STRIPS representation language Blocks World Planning with State-Space Search Progression
More informationCreating Admissible Heuristic Functions: The General Relaxation Principle and Delete Relaxation
Creating Admissible Heuristic Functions: The General Relaxation Principle and Delete Relaxation Relaxed Planning Problems 74 A classical planning problem P has a set of solutions Solutions(P) = { π : π
More informationA deterministic action is a partial function from states to states. It is partial because not every action can be carried out in every state
CmSc310 Artificial Intelligence Classical Planning 1. Introduction Planning is about how an agent achieves its goals. To achieve anything but the simplest goals, an agent must reason about its future.
More informationLecture Overview. CSE3309 Artificial Intelligence. The lottery paradox. The Bayesian claim. The lottery paradox. A Bayesian model of rationality
CSE3309 Lecture Overview The lottery paradox A Bayesian model of rationality Lecture 15 Planning Dr. Kevin Korb School of Computer Science and Software Eng. Building 75 (STRIP), Rm 117 korb@csse.monash.edu.au
More informationPlanning. Introduction to Planning. Failing to plan is planning to fail! Major Agent Types Agents with Goals. From Problem Solving to Planning
Introduction to Planning Planning Failing to plan is planning to fail! Plan: a sequence of steps to achieve a goal. Problem solving agent knows: actions, states, goals and plans. Planning is a special
More informationAutomated Planning. Plan-Space Planning / Partial Order Causal Link Planning
Automated Planning Plan-Space Planning / Partial Order Causal Link Planning Jonas Kvarnström Automated Planning Group Department of Computer and Information Science Linköping University Partly adapted
More informationSection 9: Planning CPSC Artificial Intelligence Michael M. Richter
Section 9: Planning Actions (1) An action changes a situation and their description has to describe this change. A situation description (or a state) sit is a set of ground atomic formulas (sometimes literals
More informationIntelligent Agents. State-Space Planning. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 14.
Intelligent Agents State-Space Planning Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University last change: 14. April 2016 U. Schmid (CogSys) Intelligent Agents last change: 14. April
More informationPlanning. Why not standard search? What is Planning. Planning language. Planning 1. Difficulty of real world problems
Planning Based on slides prepared by Tom Lenaerts SWITCH, Vlaams Interuniversitair Instituut voor Biotechnologie Modifications by Jacek.Malec@cs.lth.se Original slides can be found at http://aima.cs.berkeley.edu
More informationcis32-ai lecture # 21 mon-24-apr-2006
cis32-ai lecture # 21 mon-24-apr-2006 today s topics: logic-based agents (see notes from last time) planning cis32-spring2006-sklar-lec21 1 What is Planning? Key problem facing agent is deciding what to
More informationSet 9: Planning Classical Planning Systems. ICS 271 Fall 2013
Set 9: Planning Classical Planning Systems ICS 271 Fall 2013 Outline: Planning Classical Planning: Situation calculus PDDL: Planning domain definition language STRIPS Planning Planning graphs Readings:
More informationCSE 3402: Intro to Artificial Intelligence Planning
CSE 3402: Intro to Artificial Intelligence Planning Readings: Russell & Norvig 3 rd edition Chapter 10 (in 2 nd edition, Sections 11.1, 11.2, and 11.4) 1 CWA Classical Planning. No incomplete or uncertain
More informationPlanning. Planning. What is Planning. Why not standard search?
Based on slides prepared by Tom Lenaerts SWITCH, Vlaams Interuniversitair Instituut voor Biotechnologie Modifications by Jacek.Malec@cs.lth.se Original slides can be found at http://aima.cs.berkeley.edu
More informationVorlesung Grundlagen der Künstlichen Intelligenz
Vorlesung Grundlagen der Künstlichen Intelligenz Reinhard Lafrenz / Prof. A. Knoll Robotics and Embedded Systems Department of Informatics I6 Technische Universität München www6.in.tum.de lafrenz@in.tum.de
More informationPlan Generation Classical Planning
Plan Generation Classical Planning Manuela Veloso Carnegie Mellon University School of Computer Science 15-887 Planning, Execution, and Learning Fall 2016 Outline What is a State and Goal What is an Action
More informationPlanning in a Single Agent
What is Planning Planning in a Single gent Sattiraju Prabhakar Sources: Multi-agent Systems Michael Wooldridge I a modern approach, 2 nd Edition Stuart Russell and Peter Norvig Generate sequences of actions
More informationKI-Programmierung. Planning
KI-Programmierung Planning Bernhard Beckert UNIVERSITÄT KOBLENZ-LANDAU Winter Term 2007/2008 B. Beckert: KI-Programmierung p.1 Outline Search vs. planning STRIPS operators Partial-order planning The real
More informationArtificial Intelligence Planning
Artificial Intelligence Planning Gholamreza Ghassem-Sani Sharif University of Technology Lecture slides are mainly based on Dana Nau s AI Planning University of Maryland 1 For technical details: Related
More informationDomain-Configurable Planning: Hierarchical Task Networks
Automated Planning Domain-Configurable Planning: Hierarchical Task Networks Jonas Kvarnström Automated Planning Group Department of Computer and Information Science Linköping University jonas.kvarnstrom@liu.se
More informationCPS 270: Artificial Intelligence Planning
CPS 270: Artificial Intelligence http://www.cs.duke.edu/courses/fall08/cps270/ Planning Instructor: Vincent Conitzer Planning We studied how to take actions in the world (search) We studied how to represent
More informationArtificial Intelligence 2004 Planning: Situation Calculus
74.419 Artificial Intelligence 2004 Planning: Situation Calculus Review STRIPS POP Hierarchical Planning Situation Calculus (John McCarthy) situations actions axioms Review Planning 1 STRIPS (Nils J. Nilsson)
More informationSet 9: Planning Classical Planning Systems. ICS 271 Fall 2014
Set 9: Planning Classical Planning Systems ICS 271 Fall 2014 Planning environments Classical Planning: Outline: Planning Situation calculus PDDL: Planning domain definition language STRIPS Planning Planning
More informationINF Kunstig intelligens. Agents That Plan. Roar Fjellheim. INF5390-AI-06 Agents That Plan 1
INF5390 - Kunstig intelligens Agents That Plan Roar Fjellheim INF5390-AI-06 Agents That Plan 1 Outline Planning agents Plan representation State-space search Planning graphs GRAPHPLAN algorithm Partial-order
More informationPlanning. What is Planning. Why not standard search? Planning 1
Planning Based on slides prepared by Tom Lenaerts SWITCH, Vlaams Interuniversitair Instituut voor Biotechnologie Modifications by Jacek.Malec@cs.lth.se Original slides can be found at http://aima.cs.berkeley.edu
More informationArtificial Intelligence
Artificial Intelligence CSC348 Unit 4: Reasoning, change and planning Syedur Rahman Lecturer, CSE Department North South University syedur.rahman@wolfson.oxon.org Artificial Intelligence: Lecture Notes
More informationArtificial Intelligence Planning
Artificial Intelligence Planning Instructor: Vincent Conitzer Planning We studied how to take actions in the world (search) We studied how to represent objects, relations, etc. (logic) Now we will combine
More informationPlanning. Artificial Intelligence 1: Planning. What is Planning. General language features. Planning language. Difficulty of real world problems
Planning Artificial Intelligence 1: Planning Lecturer: Tom Lenaerts SWITCH, Vlaams Interuniversitair Instituut voor Biotechnologie The Planning problem Planning with State-space search Partial-order planning
More informationPlanning as Search. Progression. Partial-Order causal link: UCPOP. Node. World State. Partial Plans World States. Regress Action.
Planning as Search State Space Plan Space Algorihtm Progression Regression Partial-Order causal link: UCPOP Node World State Set of Partial Plans World States Edge Apply Action If prec satisfied, Add adds,
More informationPlanning (under complete Knowledge)
CSC384: Intro to Artificial Intelligence Planning (under complete Knowledge) We cover Sections11.1, 11.2, 11.4. Section 11.3 talks about partial-order planning, an interesting idea that hasn t really done
More informationArtificial Intelligence 1: planning
Artificial Intelligence 1: planning Lecturer: Tom Lenaerts Institut de Recherches Interdisciplinaires et de Développements en Intelligence Artificielle (IRIDIA) Université Libre de Bruxelles Planning The
More information15-381: Artificial Intelligence Assignment 4: Planning
15-381: Artificial Intelligence Assignment 4: Planning Sample Solution November 5, 2001 1. Consider a robot domain as shown in Figure 1. The domain consists a house that belongs to Pat, who has a robot-butler.
More informationWhere are we? Informatics 2D Reasoning and Agents Semester 2, Planning with state-space search. Planning with state-space search
Informatics 2D Reasoning and Agents Semester 2, 2018 2019 Alex Lascarides alex@inf.ed.ac.uk Where are we? Last time... we defined the planning problem discussed problem with using search and logic in planning
More informationPlanning and Acting. CITS3001 Algorithms, Agents and Artificial Intelligence. 2018, Semester 2
Planning and Acting CITS3001 Algorithms, Agents and Artificial Intelligence Tim French School of Computer Science and Software Engineering The University of Western Australia 2018, Semester 2 Summary We
More information1: planning. Lecturer: Tom Lenaerts
Artificial Intelligence 1: planning Lecturer: Tom Lenaerts Institut de Recherches Interdisciplinaires et de Développements en Intelligence Artificielle (IRIDIA) Université Libre de Bruxelles Planning The
More informationArtificial Intelligence II
Artificial Intelligence II 2013/2014 - Prof: Daniele Nardi, Joachim Hertzberg Exercitation 3 - Roberto Capobianco Planning: STRIPS, Partial Order Plans, Planning Graphs 1 STRIPS (Recap-1) Start situation;
More informationcis32-ai lecture # 22 wed-26-apr-2006 Partial Order Planning Partially ordered plans Representation
cis32-ai lecture # 22 wed-26-apr-2006 Partial Order Planning today s topics: partial-order planning decision-theoretic planning The answer to the problem we ended the last lecture with is to use partial
More informationPlanning. Search vs. planning STRIPS operators Partial-order planning. CS 561, Session 20 1
Planning Search vs. planning STRIPS operators Partial-order planning CS 561, Session 20 1 What we have so far Can TELL KB about new percepts about the world KB maintains model of the current world state
More informationCS 4649/7649 Robot Intelligence: Planning
CS 4649/7649 Robot Intelligence: Planning Hierarchical Network Planning Sungmoon Joo School of Interactive Computing College of Computing Georgia Institute of Technology S. Joo (sungmoon.joo@cc.gatech.edu)
More informationCognitive Robotics 2016/2017
based on Manuela M. Veloso lectures on PLNNING, EXEUTION ND LERNING ognitive Robotics 2016/2017 Planning:, ctions and Goal Representation Matteo Matteucci matteo.matteucci@polimi.it rtificial Intelligence
More informationBASIC PLAN-GENERATING SYSTEMS
CHAPTER 7 BASIC PLAN-GENERATING SYSTEMS In chapters 5 and 6 we saw that a wide class of deduction tasks could be solved by commutative production systems. For many other problems of interest in AI, however,
More informationLecture 10: Planning and Acting in the Real World
Lecture 10: Planning and Acting in the Real World CS 580 (001) - Spring 2018 Amarda Shehu Department of Computer Science George Mason University, Fairfax, VA, USA Apr 11, 2018 Amarda Shehu (580) 1 1 Outline
More informationAutomated Planning & Artificial Intelligence
Automated Planning & Artificial Intelligence Uninformed and Informed search in state space Humbert Fiorino Humbert.Fiorino@imag.fr http://membres-lig.imag.fr/fiorino Laboratory of Informatics of Grenoble
More informationAUTOMATED PLANNING Automated Planning sequence of actions goal
AUTOMATED PLANNING Automated Planning is an important problem solving activity which consists in synthesizing a sequence of actions performed by an agent that leads from an initial state of the world to
More informationICS 606. Intelligent Autonomous Agents 1
Intelligent utonomous gents ICS 606 / EE 606 Fall 2011 Nancy E. Reed nreed@hawaii.edu Lecture #4 Practical Reasoning gents Intentions Planning Means-ends reasoning The blocks world References Wooldridge
More informationEMPLOYING DOMAIN KNOWLEDGE TO IMPROVE AI PLANNING EFFICIENCY *
Iranian Journal of Science & Technology, Transaction B, Engineering, Vol. 29, No. B1 Printed in The Islamic Republic of Iran, 2005 Shiraz University EMPLOYING DOMAIN KNOWLEDGE TO IMPROVE AI PLANNING EFFICIENCY
More informationPlanning. Chapter 10 of the textbook. Acknowledgement: Thanks to Sheila McIlraith for the slides.
Planning Chapter 10 of the textbook. Acknowledgement: Thanks to Sheila McIlraith for the slides. 1 plan n. 1. A scheme, program, or method worked out beforehand for the accomplishment of an objective:
More informationSTRIPS HW 1: Blocks World
STRIPS HW 1: Blocks World Operator Precondition Delete List Add List Stack(x, y) CLEAR(y) CLEAR(y) HOLDING(x) HOLDING(x) ON(x, y) Unstack(x, y) ON(x, y) ON(x, y) HOLDING(x) CLEAR(x) CLEAR(y) PickUp(x)
More informationWhat is On / Off Policy?
What is On / Off Policy? Q learns how to perform optimally even when we are following a non-optimal policy In greedy, leaves no trace in Q SARSA is on-policy Learns the best policy given our systematic
More informationHierarchical Task Networks
Hierarchical Task Networks Planning to perform tasks rather than to achieve goals Literature Malik Ghallab, Dana Nau, and Paolo Traverso. Automated Planning Theory and Practice, chapter 11. Elsevier/Morgan
More informationPlanning plan Synonyms: plan Synonyms:
Planning This material is covered in R&N 2 nd edition chapters 10.3, 11.1, 11.2, 11.4 This material is covered in R&N 3 rd edition chapter 10 plan n. 1. A scheme, program, or method worked out beforehand
More informationScale-up Revolution in Automated Planning
Scale-up Revolution in Automated Planning (Or 1001 Ways to Skin a Planning Graph for Heuristic Fun & Profit) Subbarao Kambhampati http://rakaposhi.eas.asu.edu RIT; 2/17/06 With thanks to all the Yochan
More informationCS 2750 Foundations of AI Lecture 17. Planning. Planning
S 2750 Foundations of I Lecture 17 Planning Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Planning Planning problem: find a sequence of actions that achieves some goal an instance of a search
More informationPlanning. CPS 570 Ron Parr. Some Actual Planning Applications. Used to fulfill mission objectives in Nasa s Deep Space One (Remote Agent)
Planning CPS 570 Ron Parr Some Actual Planning Applications Used to fulfill mission objectives in Nasa s Deep Space One (Remote Agent) Particularly important for space operations due to latency Also used
More informationConstraint Satisfaction Problems
Constraint Satisfaction Problems CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2013 Soleymani Course material: Artificial Intelligence: A Modern Approach, 3 rd Edition,
More informationLECTURE 3: DEDUCTIVE REASONING AGENTS
Agent Architectures LECTURE 3: DEDUCTIVE REASONING AGENTS An Introduction to MultiAgent Systems http://www.csc.liv.ac.uk/~mjw/pubs/imas An agent is a computer system capable of flexible autonomous action
More informationSearch vs. planning. Planning. Search vs. planning contd. Outline
Search vs. planning Planning onsider the task get milk, bananas, and a cordless drill Standard search algorithms seem to fail miserably: Go To Pet Store Talk to Parrot uy a Dog Go To School Go To lass
More informationDistributed Graphplan
Distributed Graphplan Mark Iwen & Amol Dattatraya Mali Electrical Engineering & Computer Science University of Wisconsin, Milwaukee, WI 53211 iwen2724@uwm.edu, mali@miller.cs.uwm.edu, Fax: 1-414-229-2769
More informationArtificial Intelligence 2005/06
Planning: STRIPS 74.419 rtificial Intelligence 2005/06 Planning: STRIPS STRIPS (Nils J. Nilsson) actions are specified by preconditions and effects stated as restricted FOPL formulae planning is search
More informationMilestone State Formulation Methods
Milestone State Formulation Methods Hyungoo Han Department of Computer Science & Engineering Hankuk University of Foreign Studies 89 Wangsan-ri Mohyeon Cheoin-gu Yongin-si, Gyeonggi-do 449-791 South Korea
More informationPlanning. Philipp Koehn. 30 March 2017
Planning Philipp Koehn 30 March 2017 Outline 1 Search vs. planning STRIPS operators Partial-order planning The real world Conditional planning Monitoring and replanning 2 search vs. planning Search vs.
More informationCOMP310 Multi-Agent Systems Chapter 4 - Practical Reasoning Agents. Dr Terry R. Payne Department of Computer Science
COMP310 Multi-Agent Systems Chapter 4 - Practical Reasoning Agents Dr Terry R. Payne Department of Computer Science Pro-Active Behaviour Previously we looked at: Characteristics of an Agent and its Environment
More informationComponents of a Planning System
Planning Components of a Planning System In any general problem solving systems, elementary techniques to perform following functions are required Choose the best rule (based on heuristics) to be applied
More informationA Small Interpreted Language
A Small Interpreted Language What would you need to build a small computing language based on mathematical principles? The language should be simple, Turing equivalent (i.e.: it can compute anything that
More informationFormalizing the PRODIGY Planning Algorithm
Formalizing the PRODIGY Planning Algorithm Eugene Fink eugene@cs.cmu.edu http://www.cs.cmu.edu/~eugene Manuela Veloso veloso@cs.cmu.edu http://www.cs.cmu.edu/~mmv Computer Science Department, Carnegie
More informationAI Planning. Introduction to Artificial Intelligence! CSCE476/876, Spring 2012:! Send questions to Piazza!
AI! CSCE476/876, Spring 2012:! www.cse.unl.edu/~choueiry/s12-476-876/! Send questions to Piazza! Berthe Y. Choueiry (Shu-we-ri)! Avery Hall, Room 360! Tel: +1(402)472-5444! 1 Reading! Required reading!
More informationChapter 1 Introduc0on
Lecture slides for Automated Planning: Theory and Practice Chapter 1 Introduc0on Dana S. Nau University of Maryland Updated 3:03 PM December 14, 2013 1 Some Dic0onary Defini0ons of Plan plan n. 1. A scheme,
More informationCSE 473: Artificial Intelligence
CSE 473: Artificial Intelligence Constraint Satisfaction Luke Zettlemoyer Multiple slides adapted from Dan Klein, Stuart Russell or Andrew Moore What is Search For? Models of the world: single agent, deterministic
More informationCS 188: Artificial Intelligence Fall 2008
CS 188: Artificial Intelligence Fall 2008 Lecture 4: CSPs 9/9/2008 Dan Klein UC Berkeley Many slides over the course adapted from either Stuart Russell or Andrew Moore 1 1 Announcements Grading questions:
More informationAnnouncements. CS 188: Artificial Intelligence Fall Large Scale: Problems with A* What is Search For? Example: N-Queens
CS 188: Artificial Intelligence Fall 2008 Announcements Grading questions: don t panic, talk to us Newsgroup: check it out Lecture 4: CSPs 9/9/2008 Dan Klein UC Berkeley Many slides over the course adapted
More informationLecture 6: Constraint Satisfaction Problems (CSPs)
Lecture 6: Constraint Satisfaction Problems (CSPs) CS 580 (001) - Spring 2018 Amarda Shehu Department of Computer Science George Mason University, Fairfax, VA, USA February 28, 2018 Amarda Shehu (580)
More informationConstraint Satisfaction Problems
Last update: February 25, 2010 Constraint Satisfaction Problems CMSC 421, Chapter 5 CMSC 421, Chapter 5 1 Outline CSP examples Backtracking search for CSPs Problem structure and problem decomposition Local
More informationConstraint Satisfaction Problems (CSPs)
1 Hal Daumé III (me@hal3.name) Constraint Satisfaction Problems (CSPs) Hal Daumé III Computer Science University of Maryland me@hal3.name CS 421: Introduction to Artificial Intelligence 7 Feb 2012 Many
More informationChapter 6 Planning-Graph Techniques
Lecture slides for Automated Planning: Theory and Practice Chapter 6 Planning-Graph Techniques Dana S. Nau CMSC 722, AI Planning University of Maryland, Spring 2008 1 Motivation A big source of inefficiency
More informationUninformed Search Methods
Uninformed Search Methods Search Algorithms Uninformed Blind search Breadth-first uniform first depth-first Iterative deepening depth-first Bidirectional Branch and Bound Informed Heuristic search Greedy
More informationPlanning. Chapter 11. Chapter Outline. Search vs. planning STRIPS operators Partial-order planning. Chapter 11 2
Planning hapter 11 hapter 11 1 Outline Search vs. planning STRIPS operators Partial-order planning hapter 11 2 Search vs. planning onsider the task get milk, bananas, and a cordless drill Standard search
More informationAcknowledgements. Outline
Acknowledgements Heuristic Search for Planning Sheila McIlraith University of Toronto Fall 2010 Many of the slides used in today s lecture are modifications of slides developed by Malte Helmert, Bernhard
More informationJune 1992 CMU-CS School of Computer Science Carnegie Mellon University Pittsburgh, PA Abstract
PRODIGY4.0: The Manual and Tutorial 1 The PRODIGY Research Group, under the supervision of Jaime G. Carbonell: Jim Blythe, Oren Etzioni, Yolanda Gil, Robert Joseph, Dan Kahn, Craig Knoblock, Steven Minton,
More informationGPS: The general problem solver. developed in 1957 by Alan Newel and Herbert Simon. (H. Simon, 1957)
GPS: The general problem solver developed in 1957 by Alan Newel and Herbert Simon (H. Simon, 1957) GPS: The general problem solver developed in 1957 by Alan Newel and Herbert Simon - Was the first program
More informationChapter 3 Complexity of Classical Planning
Lecture slides for Automated Planning: Theory and Practice Chapter 3 Complexity of Classical Planning Dana S. Nau CMSC 722, AI Planning University of Maryland, Spring 2008 Licensed under the Creative Commons
More information