-
Notifications
You must be signed in to change notification settings - Fork 1
/
hstrips.tex
31 lines (23 loc) · 896 Bytes
/
hstrips.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
% ----------------------------------------------------------------------
\begin{frame}[fragile,shrink=1]{Simple STRIPS planning}
\begin{semiverbatim}
time(1..k).
holds(P,0) :- init(P).
\{ occurs(A,T) : action(A) \} = 1 :- time(T).
:- occurs(A,T), pre(A,F), not holds(F,T-1).
holds(F,T) :- occurs(A,T), add(A,F).
holds(F,T) :- holds(F,T-1), time(T), not occurs(A,T) : del(A,F).
:- query(F), not holds(F,k).
\only<1>{
}\only<2-4>{\#heuristic occurs(A,T) : action(A), time(T). [\only<2>{2, factor}\only<3>{1, level}\only<4>{T, factor}]
}\only<5>{\#heuristic holds(F,T-1) : holds(F,T). [k-T+1, true]
\#heuristic holds(F,T-1) : not holds(F,T), [k-T+1, false]
fluent(F), time(T).}
\end{semiverbatim}
\end{frame}
% ----------------------------------------------------------------------
%
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "../../main"
%%% End: