Docsity

Planning Graphs and SATPlan: Lecture Notes for CS40022, Summaries of Artificial Intelligence

Partial preview of the text

Download Planning Graphs and SATPlan: Lecture Notes for CS40022 and more Summaries Artificial Intelligence in PDF only on Docsity!

GraphPLAN

GraphPLAN

and

and

SATPlan

SATPlan

Course: CS Course: CS

Instructor: Dr. Instructor: Dr.

Pallab Dasgupta

Pallab Dasgupta

Department of Computer Science & Engineering Department of Computer Science & Engineering

Indian Institute of Technology Indian Institute of Technology

Kharagpur Kharagpur

CSE, IIT

Kharagpur

Planning Graphs

Planning Graphs

„ „

Consists of a sequence of levels that

Consists of a sequence of levels that

correspond to time steps in the plan

correspond to time steps in the plan

„ „

Each level contains a set of actions and a set

Each level contains a set of actions and a set

of literals that

of literals that

could could

be true at that time step be true at that time step

depending on the actions taken in previous

depending on the actions taken in previous

time steps

time steps

„ „

For every +

For every +

ve ve

and and

ve ve

literal C, we add a literal C, we add a

persistence action persistence action

with precondition C and with precondition C and

effect C effect C

CSE, IIT

Kharagpur

Mutex

Mutex

Actions

Actions

„ „

Mutex

Mutex

relation between two actions if: relation between two actions if:

‹ ‹

Inconsistent effects Inconsistent effects

one action negates one action negates

an effect of the other an effect of the other

‹ ‹

Interference Interference

one of the effects of one one of the effects of one

action is the negation of a precondition of action is the negation of a precondition of

the other the other

‹ ‹

Competing needs Competing needs

one of the one of the

preconditions of one action is mutually preconditions of one action is mutually

exclusive with a precondition of the other exclusive with a precondition of the other

CSE, IIT

Kharagpur

Mutex

Mutex

Literals

Literals

„ „

Mutex

Mutex

relation between two literals if: relation between two literals if:

‹ ‹

One is the negation of the other, or One is the negation of the other, or

‹ ‹

Each possible pair of actions that could Each possible pair of actions that could

achieve the two literals is mutually achieve the two literals is mutually

exclusive (inconsistent support) exclusive (inconsistent support)

CSE, IIT

Kharagpur

Termination of

Termination of

GraphPLAN

GraphPLAN

„ „

Literals increase monotonically

Literals increase monotonically

„ „

Actions increase monotonically

Actions increase monotonically

„ „

Mutexes

Mutexes

decrease monotonically decrease monotonically

This guarantees the existence of a

This guarantees the existence of a

fixpoint fixpoint

CSE, IIT

Kharagpur

Planning with

Planning with

Propositional

Propositional

Logic

Logic

„ „

The planning problem is translated into a

The planning problem is translated into a

CNF satisfiability problem

CNF satisfiability problem

„ „

The goal is asserted to hold at a time step T,

The goal is asserted to hold at a time step T,

and clauses are included for each time step

and clauses are included for each time step

up to T.

up to T.

„ „

If the clauses are satisfiable, then a plan is

If the clauses are satisfiable, then a plan is

extracted by examining the actions that are

extracted by examining the actions that are

true.

true.

„ „

Otherwise, we increment T and repeat

Otherwise, we increment T and repeat

CSE, IIT

Kharagpur

Modeling for

Modeling for

SATPlan

SATPlan

„ „

Precondition Axioms

Precondition Axioms

‹ ‹

Action occurrence requires the Action occurrence requires the

precondition to be satisfied precondition to be satisfied

„ „

Action exclusion Axioms

Action exclusion Axioms

‹ ‹

Prevent simultaneous actions Prevent simultaneous actions

„ „

State constraints

State constraints

‹ ‹

Generalization of exclusion axioms Generalization of exclusion axioms