STRIPS

From Wikipedia, the free encyclopedia

Jump to: navigation, search

In artificial intelligence, STRIPS (Stanford Research Institute Problem Solver) is an automated planner developed by Richard Fikes and Nils Nilsson in 1971. The same name was later used to refer to the formal language of the inputs to this planner. This language is the base for most of the languages for expressing automated planning problem instances in use today. This article only describes the language, not the planner.

Contents

[edit] Definition

A STRIPS instance is composed of:

  • An initial state;
  • The specification of the goal states – situations which the planner is trying to reach;
  • A set of actions. For each action, the following are included:
    • preconditions (what must be established before the action is performed);
    • postconditions (what is established after the action is performed).

Mathematically, a STRIPS instance is a quadruple \langle P,O,I,G \rangle, in which each component has the following meaning:

  1. P is a set of conditions (i.e., propositional variables);
  2. O is a set of operators (i.e., actions); each operator is itself a quadruple \langle \alpha, \beta, \gamma, \delta \rangle , each element being a set of conditions. These four sets specify, in order, which conditions must be true for the action to be executable, which ones must be false, which ones are made true by the action and which ones are made false;
  3. I is the initial state, given as the set of conditions that are initially true (all others are assumed false);
  4. G is the specification of the goal state; this is given as a pair \langle N,M \rangle, which specify which conditions are true and false, respectively, in order for a state to be considered a goal state.

A plan for such a planning instance is a sequence of operators that can be executed from the initial state and that leads to a goal state.

Formally, a state is a set of conditions: a state is represented by the set of conditions that are true in it. Transitions between states are modeled by a transition function, which is a function mapping states into new states that result from the execution of actions. Since states are represented by sets of conditions, the transition function relative to the STRIPS instance \langle P,O,I,G \rangle is a function

\operatorname{succ}: 2^P \times O \rightarrow 2^P,

where 2P is the set of all subsets of P, and is therefore the set of all possible states.

The transition function can be defined as follows, in the assumption that actions can always be executed but they do not have effects if their preconditions are not met (this is a simplifying assumption):

\operatorname{succ}(C,\langle \alpha,\beta,\gamma,\delta \rangle) = C \backslash \delta \cup \gamma         if \alpha \subseteq C and \beta \cap C = \varnothing
  = P otherwise

The function \operatorname{succ} can be extended to sequences of actions by the following recursive equations:

\operatorname{succ}(C,[\ ]) = C
\operatorname{succ}(C,[a_1,a_2,\ldots,a_n])=\operatorname{succ}(\operatorname{succ}(C,a_1),[a_2,\ldots,a_n])

A plan for a STRIPS instance is a sequence of actions such that the state that results from executing the actions in order from the initial state satisfies the goal conditions. Formally, [a_1,a_2,\ldots,a_n] is a plan for G = \langle N,M \rangle if F=\operatorname{succ}(I,[a_1,a_2,\ldots,a_n]) satisfies the following two conditions:

N \subseteq F
M \cap F = \varnothing

[edit] Extensions

The above language is actually the propositional version of STRIPS; in practice, conditions are often about objects: for example, that the position of a robot can be modeled by a predicate At, and At(room1) means that the robot is in Room1. In this case, actions can have free variables, which are implicitly existentially quantified. In other words, an action represents all possible propositional actions that can be obtained by replacing each free variable with a value.

The initial state is considered fully known in the language described above: conditions that are not in I are all assumed false. This is often a limiting assumption, as there are natural examples of planning problems in which the initial state is not fully known. Extensions of STRIPS have been developed to deal with partially known initial states. Other extensions exist.

[edit] An example STRIPS problem

A monkey is in a lab. The monkey wants some bananas. There are three locations in the lab – locations A, B and C. The monkey is at location A. There is a box in location C. There are some bananas in location B, but they are hanging from the ceiling. The monkey needs the box to get to the bananas.

Initial state: At(A), Level(low), BoxAt(C), BananasAt(B)
Goal state:    Have(Bananas)
Actions:       _Move(X, Y)_
                //move from X to Y
               Preconditions: At(X), Level(low)
               Postconditions: not At(X), At(Y)
               _ClimbUp(Location)_
               //climb up on the box
               Preconditions: At(Location), BoxAt(Location), Level(low)
               Postconditions: Level(high), not Level(low)
               _ClimbDown(Location)_
               //climb down from the box
               Preconditions: At(Location), BoxAt(Location), Level(high)
               Postconditions: Level(low), not Level(high)
               _MoveBox(X, Y)_
               //move the box from X to Y -- And the monkey moves, too
               Preconditions: At(X), BoxAt(X), Level(low)
               Postconditions: BoxAt(Y), not BoxAt(X), At(Y), not At(X)
               _TakeBananas(Location)_
               //take the bananas
               Preconditions: At(Location), BananasAt(Location), Level(high)
               Postcondition: Have(bananas)

[edit] Complexity

Deciding the existence of a plan for a propositional STRIPS instance is PSPACE-complete. Various restrictions can be enforced on the instances to make the problem NP-complete.

[edit] See also

[edit] References

  • C. Bäckström and B. Nebel (1995). Complexity results for SAS+ planning. Computational Intelligence, 11:625-656.
  • T. Bylander (1991). Complexity results for planning. In Proceedings of the Twelfth International Joint Conference on Artificial Intelligence (IJCAI'91), pages 274-279.
  • R. Fikes and N. Nilsson (1971). STRIPS: a new approach to the application of theorem proving to problem solving. Artificial Intelligence, 2:189-208.
  • Russell, Stuart J.; Norvig, Peter (2003), Artificial Intelligence: A Modern Approach (2nd ed.), Upper Saddle River, NJ: Prentice Hall, ISBN 0-13-790395-2, http://aima.cs.berkeley.edu/ 
Personal tools