STRIPS keeps a stack of goals and focused its decision on the objective of the top of the stack. Initially contain only the main objective. Each time the top order is matched with the description of state is removed from the stack. If the goal is made, it adds each of the components in a certain order.
If solving a target component dissolves and the solution obtained for another purpose. The aim has been destroyed is considered again and again resolved, if necessary.
STRIPS recursive procedure (G)
S: Initial state
G: Final state
1) UNTIL I agree with G S, DO: (el bucle principal de STRIPS es iterativo)
2) BEGIN
3) g ß Una componente de G que no concuerda con S; una selección no determinista y por tanto un pto de regreso.
4) f ß A D-rule that contains a list of literal addition to pair with g, another point back.
5) p ß The precondition of a formula adequate particularization
6) STRIPS (p) recursive calls to solve the subproblem
7) S ß result of applying the proper particularization fa S
8) END
1. Take (X)
Pre-condition: desktop (X), manovacia, free (X)
List Removal: desktop (X), manovacia, free (X)
Formula Added: caught (X).
Note that the precondition and the removal will be the same, since the action is removed from the state space.
2. Let (X)
Precondition and Deletion: Caught (X)
Addendum: desktop (X), free (X), manovacia
3. Stack (X, Y)
Precondition and Deletion: caught (X), Free (Y)
Addendum: manovacia on (X, Y), free (X)
4. Unstack (XY)
Precondition and Deletion: manovacia, free (X) on (X, Y)
Addendum: caught (X), free (Y)
(See full algorithm: http://alejandro313.googlepages.com/cursoia53.pdf )
0 comments:
Post a Comment