TDDC17AICourse/lab4/part2/exe.sh
2021-08-22 13:07:04 +02:00

27 lines
1.6 KiB
Bash
Executable file

#!/bin/bash
# TDDC17
# Script to run all problems with all configurations
echo "Setting up env."
mkdir output
echo -ne "Working in: "
pwd
echo ""
## CONFIG 1: FF heuristic
echo "$i: Running configuration 1 (Eager greedy search, FF heuristic)"
/courses/TDDC17/sw/fdlog/fast-downward.py domain.pddl p02.pddl --log-file output/output-config1FF-pb2 --heuristic 'hff=ff()' --search 'eager_greedy([hff])'
/courses/TDDC17/sw/fdlog/fast-downward.py domain.pddl p03.pddl --log-file output/output-config1FF-pb3 --heuristic 'hff=ff()' --search 'eager_greedy([hff])'
## CONFIG 2: Goal count heristic
echo "$i: Running configuration 2 (Eager greedy search, Goal count heuristic)"
/courses/TDDC17/sw/fdlog/fast-downward.py domain.pddl p02.pddl --log-file output/output-config2GC-pb2 --heuristic 'gc=goalcount()' --search 'eager_greedy([gc])'
/courses/TDDC17/sw/fdlog/fast-downward.py domain.pddl p03.pddl --log-file output/output-config2GC-pb3 --heuristic 'gc=goalcount()' --search 'eager_greedy([gc])'
## CONFIG 3: Goal count heuristic with FF helpful actions
echo "$i: Running configuration 2 (Eager greedy search, goal count heuristic with FF helpful actions)"
/courses/TDDC17/sw/fdlog/fast-downward.py domain.pddl p02.pddl --log-file output/output-config3GF-pb2 --heuristic 'gc=goalcount()' --heuristic 'hff=ff()' --search 'eager_greedy([gc], preferred=[hff], boost=256)'
/courses/TDDC17/sw/fdlog/fast-downward.py domain.pddl p03.pddl --log-file output/output-config3GF-pb3 --heuristic 'gc=goalcount()' --heuristic 'hff=ff()' --search 'eager_greedy([gc], preferred=[hff], boost=256)'
echo "Done."
exit 0