diff options
| author | Tom Harley | 2019-01-27 15:37:06 +0000 |
|---|---|---|
| committer | Tom Harley | 2019-01-27 15:37:06 +0000 |
| commit | a996283af7c21baaff0e114d58c34db820902c6f (patch) | |
| tree | 2fe5b6f7a800d4a7b8a65ee345f8c98aa138e36b /solvability.sh | |
| parent | Split code into 3 files (diff) | |
| download | metasol-a996283af7c21baaff0e114d58c34db820902c6f.tar.gz metasol-a996283af7c21baaff0e114d58c34db820902c6f.zip | |
Reorganise repo
All solvitaire content has been shoved into a subdirectory to tidy up the root of the project. This also means solvitaire is treated similarly to other dependencies of the project, and allows other dependencies to be added easily.
There’s also a lot of other work done here, such as usign a thread pool library to manage the running of the voters.
Diffstat (limited to 'solvability.sh')
| -rwxr-xr-x | solvability.sh | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/solvability.sh b/solvability.sh deleted file mode 100755 index 6f423b5..0000000 --- a/solvability.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - - -if [ "$#" != 4 ]; then - echo "Usage: <seeds> <cores> \"<solvitaire_command>\" <output_file>" - echo "e.g.: ./solvability.sh 1000 40 \"sol --type alpha-star --timeout 6000 --str smart-solvability\" results" - exit 1 -fi - -seeds="$1" -cores="$2" -sol_command="$3" -minramfree="100G" -out="$4" -time_command="/usr/bin/time -f \" %e, %U, %S\"" -combine_command="sed -e 'H;\${x;s/\n/,/g;s/^,//;p;};d'" - -echo "Attempted Seed, Outcome, Time Taken(ms), States Searched, Unique States Searched, Backtracks, Dominance Moves, States Removed From Cache, Final States In Cache, Final Buckets In Cache, Maximum Search Depth, Final Search Depth, real (time), user (time), sys (time) " > "$out.csv" - -seq "$seeds" | parallel --joblog $out.log --progress --memfree $minramfree -j"$cores" "exec $time_command $sol_command --ra {} --class 2>&1 | $combine_command >> $out.csv" - - |
