-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrun_experiments.sh
More file actions
25 lines (22 loc) · 824 Bytes
/
run_experiments.sh
File metadata and controls
25 lines (22 loc) · 824 Bytes
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
#!/bin/bash
f="$(basename -- $1)";
trimmed=$(echo "$f" | cut -f 1 -d '.')
#./run_experiments.sh $map_name $agent_number $timeOut $flags
#even scen
echo "testing even case:"
for i in {1..25}
do
scen_file="dataset/scen-even/"$trimmed"-even-"$i".scen";
output_file=results/$trimmed/even/agent-$2-$3-$4.csv;
echo ./cbs -m $1 -a $scen_file -o $output_file -k $2 -t $3 --cluster_heuristics=$4
./cbs -m $1 -a $scen_file -o $output_file -k $2 -t $3 --cluster_heuristics=$4
done
#random scen
echo "testing random case:"
for i in {1..25}
do
scen_file="dataset/scen-random/"$trimmed"-random-"$i".scen";
output_file=results/$trimmed/random/agent-$2-$3-$4.csv;
echo ./cbs -m $1 -a $scen_file -o $output_file -k $2 -t $3 --cluster_heuristics=$4
./cbs -m $1 -a $scen_file -o $output_file -k $2 -t $3 --cluster_heuristics=$4
done