当前位置:高等教育资讯网  >  中国高校课件下载中心  >  大学文库  >  浏览文档

《认知机器人》(英文版) Planning as Heuristic Forward Search

资源类别:文库,文档格式:PDF,文档页数:21,文件大小:120.39KB,团购合买
Readings in Planning as Forward Heuristic Search "The FF Planning System: Fast Plan Generation Through Heuristic Search," by Jorg Hoffmann and Bernhard Nebel, Journal of Artificial Intelligence Research, 2001. “Planning as Heuristic Search," by Blai Bonet and Hector Geffner, Artificial
点击下载完整版文档(PDF)

Planning as Heuristic Forward search Brian c。 Willams March31. 2004 16412J6834J Slides with help from: Prof maria Fox Readings in Planning as Forward Heuristic Search The ff planning system Fast Plan Generation Through Heuristic Search, by Jorg Hoffmann and Bernhard Nebel Journalof Artificial Intelligence Research 2001 “" Planning as heuristic search,” by blai Bonet and Hector Geffner. Artificial Intelligence Journal, 2001

Planning as Heuristic Forward Search Brian C. Williams March31, 2004 16.412J/6.834J Slides with help from: Prof. Maria Fox Readings in Planning as Forward Heuristic Search ƒ “The FF Planning System: Fast Plan Generation Through Heuristic Search,” by Jorg Hoffmann and Bernhard Nebel, Journal of Artificial Intelligence Research, 2001. ƒ “Planning as Heuristic Search,” by Blai Bonet and Hector Geffner, Artificial Intelligence Journal, 2001

Outline Introduction to ff FF Search Algorithm FF Heuristic Fn FF Example Appendix: HSP Example: Polish Move from room x to room y Polish from room x to room y pre: robot is in x, door open pre: door open add: robot is in y add: floor polished del: robot is in x Initial State Open door n In(a) pre: door is closed Closed add door is open del: door is closed Final State (B) Close door Closed door is open Polished add: door is closed del: door is open

Outline ƒ Introduction to FF ƒ FF Search Algorithm ƒ FF Heuristic Fn ƒ FF Example ƒ Appendix: HSP Example: Polish Move from room x to room y ƒ pre: robot is in x, door open ƒ add: robot is in y ƒ del: robot is in x Open door ƒ pre: door is closed ƒ add: door is open ƒ del: door is closed Close door ƒ pre: door is open ƒ add: door is closed ƒ del: door is open Polish from room x to room y ƒ pre: door open ƒ add: floor polished Initial State ƒ In(A) ƒ Closed Final State ƒ In(B) ƒ Closed ƒ Polished

Planning as Forward heuristic search Planning can be seen as a state space search for a path from the initial state to a goal state Planning research has largely not been concerned with finding optimal solutions Although heuristic preference to shorter plans Planning research has largely used incomplete or uninformed search methods Breadth first search Meta search rules >The size of most state spaces requires informative heuristics to guide the search Review: Search Strategies Breadth first search (Uninformed) systematic search of state space in layers A* search (Informed) Expands search node with best estimated cost Estimated cost =cost-so-far optimistic-cost-to-go Greedy search Expands search node closest to the goal according to a heuristic function Hill-climbing search Move towards goal by random selection from the best children To apply informed search to planning need heuristic fn

Planning as Forward Heuristic Search ƒ Planning can be seen as a state space search, for a path from the initial state to a goal state. ƒ Planning research has largely not been concerned with finding optimal solutions. ƒ Although heuristic preference to shorter plans. ƒ Planning research has largely used incomplete or uninformed search methods. ƒ Breadth first search ƒ Meta search rules ÎThe size of most state spaces requires informative heuristics to guide the search. Review: Search Strategies ƒ Breadth first search (Uninformed) ƒ systematic search of state space in layers. ƒ A* search (Informed) ƒ Expands search node with best estimated cost. ƒ Estimated cost = cost-so-far + optimistic-cost-to-go ƒ Greedy search ƒ Expands search node closest to the goal according to a heuristic function. ƒ Hill-climbing search ƒ Move towards goal by random selection from the best children. Î To apply informed search to planning need heuristic fn

Fast Forward (FF) Forward-chaining heuristic search planner Basic principle: Hill-climb through the space of problem states, starting at the initial state Each child state results from apply a single plan operator Always moves to the first child state found that is closer to the goal Records the operators applied along the path E The operators leading to the goal constitute a plan Outline Introduction to ff FF Search Algorithm FF Heuristic Fn FF Example AppendiX: HSP

Fast Forward (FF) ƒ Forward-chaining heuristic search planner ƒ Basic principle: Hill-climb through the space of problem states, starting at the initial state. ƒ Each child state results from apply a single plan operator. ƒ Always moves to the first child state found that is closer to the goal. ƒ Records the operators applied along the path. ÖThe operators leading to the goal constitute a plan. Outline ƒ Introduction to FF ƒ FF Search Algorithm ƒ FF Heuristic Fn ƒ FF Example ƒ Appendix: HSP

Planning Problem and State Space A planning problem is a tuple Propositions P Ground actions A are instantiated operators Initial state I is a subset of P, and Goal state G is a subset of P The state space of a problem consists of all subsets of propositions P a transition between two states is any valid application of an action, that is, its preconditions are satisfied FF Search Strategy FF uses a strategy called enforced hill-climbing Obtain heuristic estimate of the value of the current state Find action(s)transitioning to a better state Move to the better state Append actions to plan head E Never backtrack over any choice

Planning Problem and State Space ƒ A planning problem is a tuple : ƒ Propositions P ƒ Ground actions A are instantiated operators ƒ Initial state I is a subset of P, and ƒ Goal state G is a subset of P. ƒ The state space of a problem consists of all subsets of propositions P. ƒ A transition between two states is any valid application of an action, that is, its preconditions are satisfied. FF Search Strategy FF uses a strategy called enforced hill-climbing: ƒ Obtain heuristic estimate of the value of the current state. ƒ Find action(s) transitioning to a better state. ƒ Move to the better state. ƒ Append actions to plan head. Ö Never backtrack over any choice

h(S1)<h(S4)<h(int<h(S2)<h(S3)<h(S5)=h(S6) Maximize Utility h h(init) Init A h(s1) h(S2) h(S3) S1 S2 S3 B h(S4) S5) h( s6 S4 S5 S6 Plan head: A. B Finding a better state: Plateaus h(S7)<h(S6)=h(S8)..=h(S10)<h(S11)<h(S12) S1S6/". C S7 Sa h(s8)(sob(s9) h(S10 h(s11) h(S12) S10 12 Perform breadth first search from the current state to states reachable by action applications, stopping as soon as a strictly better one is found

Init h(init) S1 h(S1) S2 h(S2) S3 h(S3) S4 h(S4) S5 h(S5) S6 h(S6) h(S1) < h(S4) <h(init) < h(S2) < h(S3) < h(S5) = h(S6) A B Plan Head: A, B Maximize Utility h S10 h(S10) S11 h(S11) S12 h(S12) Finding a better state: Plateaus Perform breadth first search from the current state, to states reachable by action applications, stopping as soon as a strictly better one is found. S7 h(S7) S8 h(S8) S9 h(S9) C S6 h(S6) D h(S7) < h(S6) = h(S8) . . . = h(S10) < h(S11) < h(S12)

Enforced Hill-climbing (cont) The success of this strategy depends on how informative the heuristic is FF uses a heuristic found to be informative in a large class of bench mark planning domains The strategy is not complete Never backtracking means that some parts of the search space are lost If FF fails to find a solution using this strategy it switches to standard best-first search (e. g, Greedy or A* search) Outline Introduction to ff FF Search Algorithm FF Heuristic Fn FF Example AppendiX: HSP

Enforced Hill-Climbing (cont.) ƒ The success of this strategy depends on how informative the heuristic is. ƒ FF uses a heuristic found to be informative in a large class of bench mark planning domains. ƒ The strategy is not complete. ƒ Never backtracking means that some parts of the search space are lost. ƒ If FF fails to find a solution using this strategy it switches to standard best-first search. ƒ (e. g., Greedy or A* search). Outline ƒ Introduction to FF ƒ FF Search Algorithm ƒ FF Heuristic Fn ƒ FF Example ƒ Appendix: HSP

FFs Heuristic Estimate The value of a state is a measure of how close it is to a goal state This cannot be determined exactly(too hard but can be approximated One way of approximating is to solve a relaxed problem Relaxation is achieved by ignoring the negative effects of the actions The relaxed action set. a' is defined by iI a in Distance Estimate Extracted From A Relaxed Plan Graph Current: In(A), Closed Goal: In(B) In(a) loop n (A) In(A) noop Closed noop Closed Move In B) ned noop Closed Opened Ope Layer 3 Layers correspond to successive time points layers indicate minimum time to achieve goals

FF’s Heuristic Estimate ƒ The value of a state is a measure of how close it is to a goal state. ƒ This cannot be determined exactly (too hard), but can be approximated. ƒ One way of approximating is to solve a relaxed problem. ƒ Relaxation is achieved by ignoring the negative effects of the actions. ƒ The relaxed action set, A', is defined by: A' = { | a in A} Distance Estimate Extracted From A Relaxed Plan Graph ƒ Layers correspond to successive time points, ƒ # layers indicate minimum time to achieve goals. In(A) Closed Layer 1 ƒ Current: In(A), Closed Goal: In(B) Open noop noop In(A) Closed Opened Layer 2 In(B) noop noop Move Open noop Close In(A) Closed Opened Layer 3

Building the Relaxed Plan Graph Start at the initial state Repeatedly apply all relaxed actions whose preconditions are satisfied Assert their (positive)effects in the next layer If all actions are applied and the goals are not all present in the final graph layer, Then the problem is unsolvable Distance Estimate Extracted From A Relaxed Plan Graph Current: In(A), Closed Goal: In(B) In(a) noop In(A) In(A) noop Closed noop Closed Move In B) ned noop Closed Opened Close Ope Layer 3 Layers correspond to successive time points layers indicate minimum time to achieve goals

Building the Relaxed Plan Graph ƒ Start at the initial state. ƒ Repeatedly apply all relaxed actions whose preconditions are satisfied. ƒ Assert their (positive) effects in the next layer. ƒ If all actions are applied and the goals are not all present in the final graph layer, Then the problem is unsolvable. Distance Estimate Extracted From A Relaxed Plan Graph ƒ Layers correspond to successive time points, ƒ # layers indicate minimum time to achieve goals. In(A) Closed Layer 1 ƒ Current: In(A), Closed Goal: In(B) Open noop noop In(A) Closed Opened Layer 2 In(B) noop noop Move Open noop Close In(A) Closed Opened Layer 3

Extracting a Relaxed soln When a layer containing all of the goals is reached, FF searches backwards for a plan The first possible achiever found is always used to achieve each goal This maximizes the possibility for exploiting actions in the relaxed plan The relaxed plan might contain many actions happening concurrently at a layer The number of actions in the relaxed plan is an estimate of the true cost of achieving the goals Distance Estimate Extracted From A Relaxed Plan Graph Current: In(A), Closed Goal: In(B) In(a) noop In(A) In(A) noop Closed noop Closed Move In B) Opened Closed Op noop Opened noo Close Ope Layer 3 Layers correspond to successive time points layers indicate minimum time to achieve goals

Extracting a Relaxed Soln ƒ When a layer containing all of the goals is reached, FF searches backwards for a plan. ƒ The first possible achiever found is always used to achieve each goal. ƒ This maximizes the possibility for exploiting actions in the relaxed plan. ƒ The relaxed plan might contain many actions happening concurrently at a layer. ƒ The number of actions in the relaxed plan is an estimate of the true cost of achieving the goals. Distance Estimate Extracted From A Relaxed Plan Graph ƒ Layers correspond to successive time points, ƒ # layers indicate minimum time to achieve goals. In(A) Closed Layer 1 ƒ Current: In(A), Closed Goal: In(B) Open noop noop In(A) Closed Opened Layer 2 In(B) noop noop Move Open noop Close In(A) Closed Opened Layer 3

点击下载完整版文档(PDF)VIP每日下载上限内不扣除下载券和下载次数;
按次数下载不扣除下载券;
24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
共21页,试读已结束,阅读完整版请下载
相关文档

关于我们|帮助中心|下载说明|相关软件|意见反馈|联系我们

Copyright © 2008-现在 cucdc.com 高等教育资讯网 版权所有