Download presentation
Presentation is loading. Please wait.
1
Planning & Acting Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 12 Scheduling (12.1), Planning and Acting in nondetermininistic domains (12.3), Conditional planning (12.4), Replanning (12.5), and Continuous planning (12.6).
2
CSE 471/598 by H. Liu2 Time in planning - Scheduling Planning so far does not specify how long an action takes, when an action occurs, except to say that is before or after another action When used in real world, such as scheduling Hubble Space Telescope observations, time is also a resource/constraint Job shop scheduling – time is essential An example of Figures 12.1 and 12.2 A partial order plan (with durations) Critical path (or the weakest link) Slack = LS (latest start) – ES (earliest start) Schedule = plan + time (durations for actions) Scheduling with resource constraints When certain parts are not available, waiting time should be minimized Difference in completing which first and possible change in Fig 12.4
3
CSE 471/598 by H. Liu3 Some assumptions with planning The world is accessible, static, deterministic. Action descriptions are correct & complete with exact stated consequences. However, the real world is not that perfect. So, how can we handle partially accessible, dynamic, non-deterministic world with incomplete information? What do we usually do?
4
CSE 471/598 by H. Liu4 Anticipating the possible contingencies To deal with incorrect, incomplete information Bounded indeterminacy unexpected effects can be enumerated Conditional POP can handle it Unbounded indeterminacy In complicated cases, no complete enumeration is possible Plan for some contingencies Replan for the rest
5
CSE 471/598 by H. Liu5 Non-Classical Planning Contingency Conditional planning Sensing actions Execution monitoring monitoring what is happening while it executes the plan telling when things go wrong Replanning finding a way to achieve its goals from the new situation (something went wrong according to old plan) Continuous planning Persist over lifetime (e.g., Mars rovers)
6
CSE 471/598 by H. Liu6 Painting chair and table Init: a chair, a table, cans of paints with unknown color Goal: the chair and table have the same color Different types of planning Classic planning: fully observable? Sensorless planning: coercing Conditional planning with sensing: (1) already the same, (2) one painted with the available color, (3) paint both Replanning: paint, check the effect, replan for missing spot Continuous planning: paint, can stop for unexpected events, continue
7
CSE 471/598 by H. Liu7 Conditional planning (1) CP in fully observable environments (FOE) Vacuum world with actions Left, Right, and Suck Disjunctive effects: if Left sometime fails, then Action (Left, Precond: AtR, Effect: AtL v AtR) Conditional effects: Action(Suck, Precond:, Effect: (when AtL: CleanL) ^ (when AtR: CleanR) Action (Left, Precond: AtR, Effect:AtL v (AtL^when CleanL: !ClearnL) Conditional steps for creating conditional plans: if test then planA else planB e.g., if AtL ^ CleanL then Right else Suck The search tree for the vacuum world (Fig 12.9) State nodes (squares) and chance nodes (circles)
8
CSE 471/598 by H. Liu8 Conditional planning (2) CP in partially observable environments (POE) Initial state is a state set – a belief state (Fig 3.21, p85) Determine “both squares are clean” with local dirt sensing the vacuum agent is AtR and knows about R, how about L? Dirt can sometimes be left behind when the agent leaves a clean square A graph representation (Figure 12.12, p438) How different between in FOE and in POE Which one is a special case of the other?
9
CSE 471/598 by H. Liu9 Sensing Automatic sensing At every step, the agent gets all the available percepts Active sensing Percepts are obtained only by executing specific sensory actions Precond and when conditions are plain propositions, not knowledge propositions K(P) is defined as “knows that P is true”, !K as not knows; what does (12.2, p440) mean? CheckDirt (12.3, p440), CheckLocation actions
10
CSE 471/598 by H. Liu10 Replanning via monitoring In reality, something can go wrong. How can a replanning agent know that? 1. annotate a plan at each step with preconditions required for successful completion of the remaining steps 2. detect a potential failure by comparing the current preconditions with the state description from percepts Sensing and monitoring Execution monitoring - see what happens when executing a plan Action monitoring Plan monitoring
11
CSE 471/598 by H. Liu11 Replanning Action monitoring Before carrying out the next action of a plan check the preconditions of each action as it is executed rather than checking the preconditions of the entire remaining plan A schematic illustration (Fig 12.14) work well with realistic systems (action failures) Return to the chair-table painting problem (page 443) Plan: [Start; Open(BC); Paint(Table,Blue); Finish] What if it missed a spot of green on the table? Loop is created by plan-execute-replan, or no explicit loop Failure is only detected after an action is performed
12
CSE 471/598 by H. Liu12 Plan monitoring Detect failure by checking the preconditions for success of the entire remaining plan Useful when a goal is serendipitously achieved While you’re painting the chair, someone comes painting the table with the same color Cut off execution of a doomed plan and don’t continue until the failure actually occurs While you’re painting the chair, someone comes painting the table with a different color If one insists on checking every precondition, it might never get around to actually doing anything Why?
13
CSE 471/598 by H. Liu13 Difference between CP & RP Unpainted area will make the agent to repaint until the chair is fully painted. Is it different from the loop of repainting in conditional planning? The difference lies in the time at which the computation is done and the information is available to the computation process CP - anticipates uneven paint RP - monitors during execution
14
CSE 471/598 by H. Liu14 Combining planning & execution Continuous planning agent execute some steps ready to be executed refine the plan to resolve standard deficiencies refine the plan with additional information fix the plan according to unexpected changes recover from execution errors remove steps that have been made redundant Goal ->Partial Plan->Some actions-> Monitoring the world -> New Goal
15
CSE 471/598 by H. Liu15 Continuous Planning - Revisit the blocks world Goal: On(C,D)^On(D,B) Action(Move(x,y), Pre:Clear(x)^Clear(y)^On(x,z), Eff:On(x,y)^Clear(z)^!Clear(y)^!On(x,z)) Fig 12.15 – 12.21 Start is used as the label for the current state.
16
CSE 471/598 by H. Liu16 Plan and execution Steps in execution: Ordering - Move(D,B), then Move(C,D) Another agent did Move(D,B) - change the plan Remove the redundant step Make a mistake, so On(C,A) Still one open condition Planning one more time - Move(C,D) Final state: start -> finish
17
CSE 471/598 by H. Liu17 Conditional Planning and Replanning Conditional planning The number of possible conditions vs. the number of steps in the plan Only one set of conditions will occur Replanning Fix problems as they arise during execution Fragile plans due to replanning Intermediate planning between CP & RP The most likely ones done by CP The rest done by RP
18
CSE 471/598 by H. Liu18 Some general methods to deal with uncertainties: Coercion and abstraction Coercion - forcing the state with unknown into a known state to reduce uncertainty Paint Table and Chair together How about the job interview problem Abstraction - ignore details until it’s necessary, another tool for least commitment A travel case - Fly(Phoenix, NY) After arrival, look for accommodation Aggregation - a form of abstraction, or summary Dealing with a large number of objects
19
CSE 471/598 by H. Liu19 Summary The unexpected or unknown occurs In order to overcome that, we need CP or RP There exists incorrectness or incompleteness, we need to monitor the result of planning: execution or action monitoring CP and RP are different and have different strengths Reducing uncertainty via coercion, abstraction and aggregation
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.