-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSynthetic.sh
More file actions
45 lines (39 loc) · 1.16 KB
/
Synthetic.sh
File metadata and controls
45 lines (39 loc) · 1.16 KB
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
42
43
44
#!/bin/bash
depu=0 # depuracao
#a_mks=(1 0.001 0.5) # alpha do makespam
#a_cst=(0.001 1 0.5) # alpha do custo financeiro
a_mks=(1 0.001 0.5 0.75 0.25 0.6 0.4) # alpha do makespam
a_cst=(0.001 1 0.5 0.25 0.75 0.4 0.6) # alpha do custo financeiro
for i in {0..6}
do
#echo
echo "@@ alpha_mks= ${a_mks[i]} alpha_cst=${a_cst[i]} @@"
# No artigo rodamos o 0, 2, 3 e 4 (Guloso normal, Multi, Grasp e Exato)
for alg in 0 2 3 4 #{0..4} #0-Guloso 1-Guloso com rexc 2-MultiStart 3-Grasp 4-Exato
do
if [ $alg -eq 0 ]; then
echo "@@ GULOSO SEM REEXECUCAO @@"
fi
if [ $alg -eq 1 ]; then
echo "@@ GULOSO COM REEXECUCAO @@"
fi
if [ $alg -eq 2 ]; then
echo "@@ MULTI-START @@"
fi
if [ $alg -eq 3 ]; then
echo "@@ GRASP @@"
fi
if [ $alg -eq 4 ]; then
echo "@@ EXATO @@"
fi
echo "@@ METODO INSTANCIA FO MKS BUDGET TEMPO @@"
for num in 7 11 12 13 22
do
for letra in A B C
do
echo "./cache ./Synthetic/_toy_${num}_${letra}.dag $depu $alg ${a_mks[i]} ${a_cst[i]}"
./cache ./Synthetic/_toy_${num}_${letra}.dag $depu $alg ${a_mks[i]} ${a_cst[i]}
done
done
done
done