update the experiments config

- feat add a template in target-runner to change the problem
- loop over irace runs for each problem
This commit is contained in:
Johann Dreo 2021-01-23 16:34:28 +01:00
commit 2fe6d03c8a
5 changed files with 26 additions and 42 deletions

View file

@ -8,14 +8,12 @@ runs=50
problems=($(seq 0 18))
# Capture anything passed to the script
algo="$@"
outdir="$1"
algo="${@:2}"
# You most probably want to run on release builds.
exe="./release/fastga"
outdir="results"
mkdir -p ${outdir}
i=1 # Loop counter.
for pb in "${problems[@]}" ; do # Iterate over the problems array.
for seed in $(seq ${runs}) ; do # Iterates over runs/seeds.
@ -25,7 +23,7 @@ for pb in "${problems[@]}" ; do # Iterate over the problems array.
# This is the command to be ran.
cmd="${exe} --problem=${pb} --seed=${seed} ${algo}"
# echo ${cmd} # Print the command.
echo ${cmd} # Print the command.
# Progress print.
echo -n "problem ${pb}, run ${seed}"