Planning & Acting Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 13.

Slides:



Advertisements
Similar presentations
Test process essentials Riitta Viitamäki,
Advertisements

Planning
CLASSICAL PLANNING What is planning ?  Planning is an AI approach to control  It is deliberation about actions  Key ideas  We have a model of the.
Data Dependencies Describes the normal situation that the data that instructions use depend upon the data created by other instructions, or data is stored.
Situation Calculus for Action Descriptions We talked about STRIPS representations for actions. Another common representation is called the Situation Calculus.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 5: Process Synchronization.
Intelligent Agents Russell and Norvig: 2
Programming Types of Testing.
You Got a Problem with That? Pete Stamps, CPPO, VCO Procurement Management Account Executive DGS/DPS.
Feng Zhiyong Tianjin University Fall 2008 Planning and Acting in the Real World.
Programming Logic and Design, Third Edition Comprehensive
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
Chap.13 Planning and Acting CS570 Artificial Intelligence Kwang-hyung Lee.
1 Chapter 16 Planning Methods. 2 Chapter 16 Contents (1) l STRIPS l STRIPS Implementation l Partial Order Planning l The Principle of Least Commitment.
Learning from Observations Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 18 Spring 2004.
CSE 471/598, CBS 598 Intelligent Agents TIP We’re intelligent agents, aren’t we? Fall 2004.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
1 Software Testing and Quality Assurance Lecture 12 - The Testing Perspective (Chapter 2, A Practical Guide to Testing Object-Oriented Software)
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2004.
Marakas: Decision Support Systems, 2nd Edition © 2003, Prentice-Hall Chapter Chapter 4: Modeling Decision Processes Decision Support Systems in the.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 6.
Planning & Acting Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 12 Scheduling (12.1), Planning and Acting in nondetermininistic domains (12.3),
CSE 471/598 Intelligent Agents TIP We’re intelligent agents, aren’t we? Spring 2004.
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3.
CS 326A: Motion Planning Kynodynamic Planning + Dealing with Moving Obstacles + Dealing with Uncertainty + Dealing with Real-Time Issues.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
An Object-Oriented Approach to Programming Logic and Design Chapter 6 Looping.
Planning in the Real World Time and Resources Hierarchical Task Network Conditional Planning Execution Monitoring and Replanning Continuous Planning MultiAgent.
School of Computer ScienceG53FSP Formal Specification1 Dr. Rong Qu Introduction to Formal Specification
Task analysis 1 © Copyright De Montfort University 1998 All Rights Reserved Task Analysis Preece et al Chapter 7.
Planning & Acting Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 12 Scheduling (12.1), Planning and Acting in nondetermininistic domains (12.3),
University of Palestine software engineering department Testing of Software Systems Fundamentals of testing instructor: Tasneem Darwish.
1 Debugging and Testing Overview Defensive Programming The goal is to prevent failures Debugging The goal is to find cause of failures and fix it Testing.
1. 2 IMPORTANCE OF MANAGEMENT Some organizations have begun to ask their contractors to provide only project managers who have been certified as professionals.
Homework 1 ( Written Portion )  Max : 75  Min : 38  Avg : 57.6  Median : 58 (77%)
Tingxuan Liu Risk Management in Software engineering.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 07 : Planning.
Chapter 3 Developing an algorithm. Objectives To introduce methods of analysing a problem and developing a solution To develop simple algorithms using.
ISO NON-CONFORMANCE, CORRECTIVE AND PREVENTIVE ACTION.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 20 Slide 1 Critical systems development 3.
Do-while and for Loops Opening Discussion zWhat did we talk about last class? zAt the end of last class I asked you to write a loop that would.
Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Lecture 21 of 42 Planning: Graph Planning.
Strategic Project Management 1 SPM Processes Project Management Processes zA process is "a series of actions bringing about a result". zThe purpose of.
1 Chapter 16 Planning Methods. 2 Chapter 16 Contents (1) l STRIPS l STRIPS Implementation l Partial Order Planning l The Principle of Least Commitment.
Lecture 5 Page 1 CS 111 Online Processes CS 111 On-Line MS Program Operating Systems Peter Reiher.
Chapter 1: Fundamental of Testing Systems Testing & Evaluation (MNN1063)
CSI 1340 Introduction to Computer Science II Chapter 1 Software Engineering Principles.
1 Error VS Mistakes Error may occur every time you make a measurement in an experiment. A mistake is a blunder or unintentional action whose consequence.
1 CMSC 471 Fall 2004 Class #21 – Thursday, November 11.
CSE 471/598 Intelligent Agents TIP We’re intelligent agents, aren’t we?
1 CMSC 471 Fall 2002 Class #24 – Wednesday, November 20.
Testing.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Lecture Slides Elementary Statistics Eleventh Edition and the Triola Statistics Series by.
JavaScript Introduction and Background. 2 Web languages Three formal languages HTML JavaScript CSS Three different tasks Document description Client-side.
Identify and Explain Effective Working Practices OCR Diploma Level 2.
Case Analysis An Approach. What is a Case? za representation of reality za construct or model or framework za narrow slice of complexity to illustrate.
Inheritance - 3. Virtual Functions Functions defined as virtual are ones that the base expects its derived classes may redefine. Functions defined as.
Roads to Resilience?!.
Inspecting Software Requirement Document
Intelligent Agents R & N Chapter 2.
Statistics in Clinical Trials: Key Concepts
Graph Coverage for Specifications CS 4501 / 6501 Software Testing
Process Description and Control
Dynamic Scoping Lazy Evaluation
Class #20 – Wednesday, November 5
Graph Coverage for Specifications CS 4501 / 6501 Software Testing
Foundations and Definitions
Class #17 – Tuesday, October 30
Presentation transcript:

Planning & Acting Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 13

CS 471/598 by H. Liu2 Some assumptions zThe world is accessible, static, deterministic. zAction description are correct & complete with exact stated consequences. zThe real world is not that perfect. So, how can we handle partially accessible, dynamic, non- deterministic world with incomplete information?

CS 471/598 by H. Liu3 zContingency yConditional planning ySensing actions zExecution monitoring ymonitoring what is happening while it executes the plan ytelling when things go wrong zReplanning yfinding a way to achieve its goals from the new situation

CS 471/598 by H. Liu4 Conditional planning zFixing a flat tire yActions: Remove(x), PutOn(x), Inflate(x) yGoal: On(x)^Inflated(x) yInitial conditions: Inflated(Sp)^Intact(Sp)^Off(Sp)^On(T1)^Flat^(T1) yPlan? zCan we have another (better) plan? yWhat if T1 is intact? yWhat if Sp is flat? y...

CS 471/598 by H. Liu5 zA conditional planning agent (Fig 13.1) yTo decide T/F of the condition - a sensing action CheckTire(x) yA conditional planner will sometimes create plans that involve carrying out ordinary actions for the purpose of obtaining some needed information. zGenerating conditional plans yThe flat-tire plan example yFrom a usual plan to a conditional plan

CS 471/598 by H. Liu6 yContexts - track which steps can establish or violate the precond’s of which other steps yConditional links yConditional steps yResolve threats by conditioning yCPOP - Fig 13.8

CS 471/598 by H. Liu7 Extending the plan language zA sensing action may have many outcomes. Goal: Color(Chair, c)^Color(Table,c) Plan: SenseC(T),KnowsC(“Color(T,c)”),GetPaint(c),Paint(C,c) yIt’s a parameterized plan as GetPaint & Paint are parameterized. yRuntime variables such as c whose value will not be known until execution yMaintenance goal: Maintain(Color(T,x)) - some control over which facts are changed and which are preserved. yLoop: While(Knows(‘UnevenC(Ch)’),[Paint(Ch,c),CheckC(Ch)])

CS 471/598 by H. Liu8 Replanning - sensing zIn reality, something can go wrong yannotate a plan at each step with preconditions required for successful completion of the remaining steps ydetect a potential failure by comparing the current preconditions with the state description from percepts yExecution monitoring - see what happens when executing a plan

CS 471/598 by H. Liu9 Sensing (2) zAction monitoring ycheck the preconditions of each action as it is executed rather than checking the preconditions of the entire remaining plan yno need for annotation ywork well with realistic systems (action failures) zAM is less effective than EM as it does not look ahead zAM is useful when a goal is serendipitously achieved.

CS 471/598 by H. Liu10 Anticipating the possible contingencies zBounded indeterminacy yunexpected effects can be enumerated yCPOP can handle it zUnbounded indeterminacy yIn complicated cases, no complete enumeration is possible yPlan for some contingencies yReplan for the rest

CS 471/598 by H. Liu11 Conditional planning with execution monitoring zKeep track of both the remaining plan segment (p) and the complete plan (q) zA replanning agent (Fig 13.9, p 402) yChoose-Best-Continuation(current,q) zExamples yunpainted small areas in chair painting yrun-out-of paint

CS 471/598 by H. Liu12 Difference between CP & RP zUnpainted area will make the agent to repaint until the chair is fully painted. zIs it different from the loop of repainting in conditional planning? zThe difference lies in the time at which the computation is done and the information is available to the computation process yCP - anticipates uneven paint yRP - monitors during execution

CS 471/598 by H. Liu13 Combining planning & execution zSituated planning agent yexecute some steps ready to be executed yrefine the plan to resolve standard deficiencies yrefine the plan with additional information yfix the plan according to unexpected changes xrecover from execution errors xremove steps that have been made redundant zGoal ->Partial Plan->Some actions-> Monitoring the world

CS 471/598 by H. Liu14 Revisit the blocks world zGoal: On(C,D)^On(D,B) zAction: Move(x,y) zOp(Act:Move(x,y), Pre:Clear(x)^Clear(y)^On(x,z), Eff:On(x,y)^Clear(x)^!Clear(y)^!On(x,z)^!Clear(y)) Fig 13.10

CS 471/598 by H. Liu15 Plan and execution zSteps in execution: yOrdering - Move(D,B), then Move(C,D) yAnother agent did Move(D,B) - change the plan yRemove the redundant step yMake a mistake, so On(C,A) xStill one open condition yPlanning one more time - Move(C,D) yFinal state: start -> finish

CS 471/598 by H. Liu16 Extensions zRecap some issues of situated planning yexplicit domain descriptions and goals ypartial-order planning yconditional planning, plan to ask for more info yplan fixing when errors occur

CS 471/598 by H. Liu17 CP and RP zConditional planning yThe number of possible conditions vs. the number of steps in the plan yOnly one set of conditions will occur zReplanning yFix problems as they arise during execution yFragile plans due to replanning zIntermediate planning between CP & RP yThe most likely ones done by CP yThe rest done by RP

CS 471/598 by H. Liu18 Coercion and abstraction zCoercion - forcing the state with unknown into a known state to reduce uncertainty yPaint Table and Chair together zAbstraction - ignore details until it’s necessary, another tool for least commitment yA travel case - Fly(Phoenix, NY) zAggregation - a form of abstraction, or summary yDealing with a large number of objects

CS 471/598 by H. Liu19 Summary zThe unexpected or unknown occurs zIn order to overcome that, we need CP or RP zThere exists incorrectness or incompleteness, we need to monitor the result of planning: execution or action monitoring zCP and RP are different and have different strengthnesses zReducing uncertainty via coercion, abstraction and aggregation