Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques?  Where are we failing, and why?  Step back and look at.

Slides:



Advertisements
Similar presentations
Course Overview What is AI? What are the Major Challenges? What are the Main Techniques? Where are we failing, and why? Step back and look at the Science.
Advertisements

REVIEW : Planning To make your thinking more concrete, use a real problem to ground your discussion. –Develop a plan for a person who is getting out of.
Language for planning problems
Planning
Artificial Intelligence 2005/06 Partial Order Planning.
Chapter 5 Plan-Space Planning.
1 Planning Chapter CMSC 471 Adapted from slides by Tim Finin and Marie desJardins. Some material adopted from notes by Andreas Geyer-Schulz,
Planning  We have done a sort of planning already  Consider the “search” applied to general problem solving  The sequence of moves with the “Jugs” was.
Anonymous "Artificial Intelligence is the study of how to make real computers act like the ones in the movies."
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
Plan Generation & Causal-Link Planning 1 José Luis Ambite.
PLANNING IN AI. Determine the set of steps that are necessary to achieve a goal Some steps might be conditional, i.e., they are only taken when a set.
Use “Search” for Pathfinding FactorySchool Library Hospital Park Newsagent University church Example from Alison Cawsey’s book start finish.
Best-First Search: Agendas
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
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.
Artificial Intelligence 2005/06
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Artificial Intelligence Chapter 11: Planning
Planning Planning is a special case of reasoning We want to achieve some state of the world Typical example is robotics Many thanks to Robin Burke, University.
Artificial Intelligence 2005/06 Planning: STRIPS.
CPSC 322, Lecture 17Slide 1 Planning: Representation and Forward Search Computer Science cpsc322, Lecture 17 (Textbook Chpt 8.1 (Skip )- 8.2) February,
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Automated Planning and HTNs Planning – A brief intro Planning – A brief intro Classical Planning – The STRIPS Language Classical Planning – The STRIPS.
Planning Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
Computer Programming My Home Page My Paper Job Description Computer programmers write, test, and maintain the detailed instructions, called programs,
For Wednesday Read chapter 12, sections 3-5 Program 2 progress due.
Anonymous "Artificial Intelligence is the study of how to make real computers act like the ones in the movies."
1 Plan-Space Planning Dr. Héctor Muñoz-Avila Sources: Ch. 5 Appendix A Slides from Dana Nau’s lecture.
Computer Science CPSC 322 Lecture 3 AI Applications 1.
April 3, 2006AI: Chapter 11: Planning1 Artificial Intelligence Chapter 11: Planning Michael Scherger Department of Computer Science Kent State University.
Homework 1 ( Written Portion )  Max : 75  Min : 38  Avg : 57.6  Median : 58 (77%)
22/11/04 AIPP Lecture 16: More Planning and Operators1 More Planning Artificial Intelligence Programming in Prolog.
Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques?  Where are we failing, and why?  Step back and look at.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 07 : Planning.
Planning (Chapter 10)
Artificial Intelligence 2005/06 Partially Ordered Plans - or: "How Do You Put Your Shoes On?"
1 The main topics in AI Artificial intelligence can be considered under a number of headings: –Search (includes Game Playing). –Representing Knowledge.
For Friday No reading Homework: –Chapter 11, exercise 4.
Planning (Chapter 10)
Lecture 3-1CS251: Intro to AI/Lisp II Planning to Learn, Learning to Plan.
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.
Introduction to Planning Dr. Shazzad Hosain Department of EECS North South Universtiy
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques?  Where are we failing, and why?  Step back and look at.
Planning I: Total Order Planners Sections
Consider the task get milk, bananas, and a cordless drill.
Causal-link planning 1 Jim Blythe. 2 USC INFORMATION SCIENCES INSTITUTE Causal Link Planning The planning problem Inputs: 1. A description of the world.
SNS College of Engineering Department of Computer Science and Engineering AI Planning Presented By S.Yamuna AP/CSE 5/23/2018 AI.
Done Done Course Overview What is AI? What are the Major Challenges?
Planning (Chapter 10) Slides by Svetlana Lazebnik, 9/2016 with modifications by Mark Hasegawa-Johnson, 9/2017
Done Done Course Overview What is AI? What are the Major Challenges?
Done Done Course Overview What is AI? What are the Major Challenges?
For Wednesday Read Chapter 18, sections 1-3 Homework:
Planning (Chapter 10)
Planning (Chapter 10)
Planning: Representation and Forward Search
Consider the task get milk, bananas, and a cordless drill
Planning: Representation and Forward Search
Graphplan/ SATPlan Chapter
Done Done Course Overview What is AI? What are the Major Challenges?
Probability and Time: Markov Models
Done Done Course Overview What is AI? What are the Major Challenges?
Class #19 – Monday, November 3
Probability and Time: Markov Models
Graphplan/ SATPlan Chapter
Russell and Norvig: Chapter 11 CS121 – Winter 2003
Search.
Search.
Planning: Representation and Forward Search
Presentation transcript:

Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques?  Where are we failing, and why?  Step back and look at the Science  Step back and look at the History of AI  What are the Major Schools of Thought?  What of the Future? Done

Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques? (How do we do it?)  Where are we failing, and why?  Step back and look at the Science  Step back and look at the History of AI  What are the Major Schools of Thought?  What of the Future?

Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques? (How do we do it?)  Where are we failing, and why?  Step back and look at the Science  Step back and look at the History of AI  What are the Major Schools of Thought?  What of the Future?  Search  Logics (knowledge representation and reasoning)  Planning  Bayesian belief networks  Neural networks  Evolutionary computation  Reinforcement learning  Language parsing and speech techniques  Statistical methods (language, learning)

Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques? (How do we do it?)  Where are we failing, and why?  Step back and look at the Science  Step back and look at the History of AI  What are the Major Schools of Thought?  What of the Future?  Search  Logics (knowledge representation and reasoning)  Planning  Bayesian belief networks  Neural networks  Evolutionary computation  Reinforcement learning  Language parsing and speech techniques  Statistical methods (language, learning)

Planning  We have done a sort of planning already  Consider the “search” applied to general problem solving  The sequence of moves with the “Jugs” was a plan  Fill 3 litre  Pour 3 litre into 4 litre  Fill 3 litre …  The sequence of moves in a game is a plan  Why not apply same techniques for general planning?  Try going to the shop to buy milk and a light bulb  We need:  Initial situation  Goal situation  Actions that can be done  + cost of action  Constraints

Planning Initial situation: At home, no milk, broken bulb Read a book

Planning Initial situation: At home, no milk, broken bulb Read a book Take a nap

Planning Initial situation: At home, no milk, broken bulb Read a book Take a nap Eat bread

Planning Initial situation: At home, no milk, broken bulb Read a book Take a nap Eat bread Drink juice

Planning Initial situation: At home, no milk, broken bulb Read a book Take a nap Eat bread Drink juice Make a phone call

Planning Initial situation: At home, no milk, broken bulb Read a book Take a nap Eat bread Drink juice Make a phone call Browse the Web Go out the door

Planning Initial situation: At home, no milk, broken bulb Read a book Take a nap Eat bread Drink juice Make a phone call Browse the Web Go out the door Read a book

Planning Initial situation: At home, no milk, broken bulb Read a book Take a nap Eat bread Drink juice Make a phone call Browse the Web Go out the door Read a book Take another nap

Planning Initial situation: At home, no milk, broken bulb Read a book Take a nap Eat bread Drink juice Make a phone call Browse the Web Go out the door Read a book Take another nap Eat bread

Planning Initial situation: At home, no milk, broken bulb Read a book Take a nap Eat bread Drink juice Make a phone call Browse the Web Go out the door Go to Uni Go to friend Go to beach Go to food shop Go to clothes shop Read a book Take another nap Eat bread

Planning  Why not apply same techniques for general planning?  Try going to the shop to buy milk and light bulb  We need:  Initial situation  Goal situation  Actions that can be done  + cost of action  Constraints  Problem is not tightly constrained (like jugs, or game)  too many silly (irrelevant) actions  We know they’re silly because of commonsense  Solution (3 parts):

Planning  Solution: 1.Represent states, actions with logic sentences  Start state is not just a node, but a description  (NOT have(milk)) AND (NOT have (light_bulb)) AND my_location(home)  Same for goal state  Action is not node to node, where node is complete state  buy(X)  achieves  have(X)  Action does not affect other aspects 2.Allow planner to add actions in any order  Not necessary to work from the top, searching  E.g. add subgoal “buy(milk)” before leaving house  Do important or obvious parts first  Note: state representation important here 3.Divide and conquer  Most things in the world are independent  Can solve subgoals separately (compare with jugs/games)

STRIPS Planning (STRIPS = Stanford Research Institute Problem Solver)  Initial state:  (NOT have(milk)) AND (NOT have (light_bulb)) AND my_location(home)  Goal state:  have(milk) AND have (light_bulb) AND my_location(home)  Actions: STRIPS operators Op  Example: go(X)  Precondition  Must be true before action can be performed  Example: my_location(Y) AND path (Y,X)  Effect  How action changes state, ADD facts and DELETE facts  Example: ADD: my_location(X) –DELETE: my_location(Y)

STRIPS Planning (STRIPS = Stanford Research Institute Problem Solver) go(food_shop) my_location(home) AND path (home,food_shop) ADD: my_location(food_shop) DELETE: my_location(home)

STRIPS Planning (STRIPS = Stanford Research Institute Problem Solver) go(X) my_location(Y) AND path (Y,X) ADD: my_location(X) DELETE: my_location(Y) go(food_shop) my_location(home) AND path (home,food_shop) ADD: my_location(food_shop) DELETE: my_location(home)

How to Search for a Plan?  We could search forward from our initial state  We saw that this would search loads of silly actions  We could search backwards from our goal state  Works better, but still searching silly actions  No heuristic to find actions that get closer to initial state  Need a heuristic…  Means-ends analysis  Find actions that reduce the difference between initial and goal states  Newell and Simon’s General Problem Solver  Generates heuristics from a table  “Table of differences”  identifies operators (actions) to reduce types of differences  Needs a lot of human input

Newell & Simon " Human Problem Solving" “I want to take my son to nursery school. What’s the difference between what I have and what I want? One of distance. What changes distance? My automobile. My automobile doesn’t work. What is needed to make it work? A new battery. What has new batteries? An auto repair shop. I want the repair shop to put in a new battery; but the shop doesn’t know I need one. What is the difficulty? One of communication. What allows communication? A telephone...”

How to Search for a Plan?  We could search forward from our initial state  We saw that this would search loads of silly actions  We could search backwards from our goal state  Works better, but still searching silly actions  No heuristic to find actions that get closer to initial state  Need a heuristic…  Means-ends analysis  Find actions that reduce the difference between initial and goal states  Newell and Simon’s General Problem Solver  Generates heuristics from a table  “Table of differences”  identifies operators (actions) to reduce types of differences  Needs a lot of human input

How to Search for a Plan?  Modern Approach: Search space of plans, not states  Nodes can be partial bits of plans  Search what action to add  Backtrack if stuck  Least commitment  Leave choices to be worked out later if possible  Variable values  e.g. shop: buy(milk,X)  Partial Ordering  e.g. socks example  What is a plan?  Actions you will take  Fix variable values in a step  Ordering among actions  Causal links

Start Left Sock Right Sock Right Shoe Left Shoe Finish

 Modern Approach: Search space of plans, not states  Nodes can be partial bits of plans  Search what action to add  Backtrack if stuck  Least commitment  Leave choices to be worked out later if possible  Variable values  e.g. shop: buy(milk,X)  Partial Ordering  e.g. socks example  What is a plan?  Actions you will take  Fix variable values in a step  Ordering among actions  Causal links How to Search for a Plan? go(X) X= food_shop go(Y) Y= hardware_shop go(X) before go(Y) go(X) causes buy(milk,X)

How to Search for a Plan? go(X) X= food_shop go(Y)Y= hardware_shop go(X) before go(Y) go(X) causes buy(milk,X) go(X) X= food_shop go(Y)Y= hardware_shop go(X) causes buy(milk,X)

How to Search for a Plan? GOAL: have(milk) have (light_bulb) my_location(home) INITIAL STATE: (NOT have(milk)) (NOT have (light_bulb)) my_location(home)

How to Search for a Plan? GOAL: have(milk) have (light_bulb) my_location(home) buy(milk) my_location(food_shop) INITIAL STATE: (NOT have(milk)) (NOT have (light_bulb)) my_location(home)

How to Search for a Plan? GOAL: have(milk) have (light_bulb) my_location(home) buy(milk) my_location(food_shop) INITIAL STATE: (NOT have(milk)) (NOT have (light_bulb)) my_location(home) Black arrow indicates Causal Link (this implies 1.Causal link protected and 2.Ordering in this way too)

How to Search for a Plan? GOAL: have(milk) have (light_bulb) my_location(home) buy(milk) my_location(food_shop) buy(bulb) my_location(hardware_shop) INITIAL STATE: (NOT have(milk)) (NOT have (light_bulb)) my_location(home)

How to Search for a Plan? GOAL: have(milk) have (light_bulb) my_location(home) buy(milk) my_location(food_shop) buy(bulb) my_location(hardware_shop) go(home,food_shop) my_location(home) INITIAL STATE: (NOT have(milk)) (NOT have (light_bulb)) my_location(home)

How to Search for a Plan? GOAL: have(milk) have (light_bulb) my_location(home) buy(milk) my_location(food_shop) buy(bulb) my_location(hardware_shop) go(home,hardware_shop) go(home,food_shop) my_location(home) INITIAL STATE: (NOT have(milk)) (NOT have (light_bulb)) my_location(home)

How to Search for a Plan? GOAL: have(milk) have (light_bulb) my_location(home) buy(milk) my_location(food_shop) buy(bulb) my_location(hardware_shop) go(home,hardware_shop) go(home,food_shop) my_location(home) INITIAL STATE: (NOT have(milk)) (NOT have (light_bulb)) my_location(home)

How to Search for a Plan? GOAL: have(milk) have (light_bulb) my_location(home) buy(milk) my_location(food_shop) buy(bulb) my_location(hardware_shop) go(home,hardware_shop) go(home,food_shop) my_location(home) INITIAL STATE: (NOT have(milk)) (NOT have (light_bulb)) my_location(home)

How to Search for a Plan? GOAL: have(milk) have (light_bulb) my_location(home) buy(milk) my_location(food_shop) buy(bulb) my_location(hardware_shop) go(home,hardware_shop) go(home,food_shop) my_location(home) INITIAL STATE: (NOT have(milk)) (NOT have (light_bulb)) my_location(home) clash

How to Search for a Plan? GOAL: have(milk) have (light_bulb) my_location(home) buy(milk) my_location(food_shop) buy(bulb) my_location(hardware_shop) go(home,food_shop) my_location(home) INITIAL STATE: (NOT have(milk)) (NOT have (light_bulb)) my_location(home) BACKTRACK Try a different way to achieve my_location(hardware_shop)

How to Search for a Plan? GOAL: have(milk) have (light_bulb) my_location(home) buy(milk) my_location(food_shop) buy(bulb) my_location(hardware_shop) go(home,food_shop) my_location(home) INITIAL STATE: (NOT have(milk)) (NOT have (light_bulb)) my_location(home) go(food_shop,hardware_shop) my_location(food_shop) Try a different way to achieve my_location(hardware_shop)

How to Search for a Plan? GOAL: have(milk) have (light_bulb) my_location(home) buy(milk) my_location(food_shop) buy(bulb) my_location(hardware_shop) go(home,food_shop) my_location(home) INITIAL STATE: (NOT have(milk)) (NOT have (light_bulb)) my_location(home) go(food_shop,hardware_shop) my_location(food_shop) Clash!

How to Search for a Plan? GOAL: have(milk) have (light_bulb) my_location(home) buy(milk) my_location(food_shop) buy(bulb) my_location(hardware_shop) go(home,food_shop) my_location(home) INITIAL STATE: (NOT have(milk)) (NOT have (light_bulb)) my_location(home) go(food_shop,hardware_shop) my_location(food_shop) Need a constraint on ordering Clash!

How to Search for a Plan? GOAL: have(milk) have (light_bulb) my_location(home) buy(milk) my_location(food_shop) buy(bulb) my_location(hardware_shop) go(home,food_shop) my_location(home) INITIAL STATE: (NOT have(milk)) (NOT have (light_bulb)) my_location(home) go(food_shop,hardware_shop) my_location(food_shop) Red arrow indicates Ordering

How to Search for a Plan? GOAL: have(milk) have (light_bulb) my_location(home) buy(milk) my_location(food_shop) buy(bulb) my_location(hardware_shop) go(home,food_shop) my_location(home) INITIAL STATE: (NOT have(milk)) (NOT have (light_bulb)) my_location(home) go(food_shop,hardware_shop) my_location(food_shop) go(hardware_shop,home)

How to Search for a Plan? GOAL: have(milk) have (light_bulb) my_location(home) buy(milk) my_location(food_shop) buy(bulb) my_location(hardware_shop) go(home,food_shop) my_location(home) INITIAL STATE: (NOT have(milk)) (NOT have (light_bulb)) my_location(home) go(food_shop,hardware_shop) my_location(food_shop) go(hardware_shop,home)

Industrial Planners  Applications  Assembly, Integration, Verification of spacecraft (European Space Agency)  Space missions  Job Shop scheduling (Hitachi)  Other issues  Hierarchical  Top level: prepare booster, capsule, cargo, launch  Low level: insert nuts, fasten bolts  Conditional effects  Depends on state  Time  e.g. window when machine is available  Resources  Budget  Number of Workers  Number of machines / robots  Changing/uncertain world  Conditional planning  Action/execution monitoring

Planning – Recap…  Problem solving was already a type of planning  Why not use it for general planning?  Other way: What about general planning for problem solving?  Solution: 1.Represent states, actions with logic sentences 2.Allow planner to add actions in any order 3.Divide and conquer  Search…  Forwards, Backwards, Heuristic?  Search space of plans, not states  What is a plan?  Actions you will take  Fix variable values in a step  Ordering among actions  Causal links  Least commitment  Variable values  Partial Ordering  Real world planning:  Hierarchical, Conditional effects, Time, Resources, Changing/uncertain world