-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfd-clean
executable file
·41 lines (31 loc) · 936 Bytes
/
fd-clean
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
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
#-*- mode:sh -*-
SCRDIR=$(dirname $(readlink -ef $0))
. $SCRDIR/fdutil.sh
################################################################
#### default options
################################################################
#### main
plan(){
echo $(whoami)@$(hostname)
OPTIONS=${OPTIONS:-"--search astar(lmcut())"}
time $fdscript --translate --log-level info domain.pddl problem.pddl
time $fdscript --preprocess --log-level info output.sas > output
time $fdscript --search --validate \
--plan-file $probdir/$probname.plan --log-level info output \
$OPTIONS
}
finalize (){
:
}
negatively-proven (){
grep "Completely explored state space" $log &> /dev/null
}
report-results (){
awk "/Plan cost:/{print $2}" $log | sort | head -n 1
}
plan-found (){
ls $probdir/$probname.plan*
}
################################################################
. $SCRDIR/common.sh