-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautomate.sh
More file actions
executable file
·65 lines (53 loc) · 2.09 KB
/
automate.sh
File metadata and controls
executable file
·65 lines (53 loc) · 2.09 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
make
javac -cp $CLASSPATH:/home/dong/jar/* fitness.java
for i in {1..30}; do
./GAfunction.exe 0 2 300 500 2 50 2 -1 -1 "2_sphere_fourier" 0
./GAfunction.exe 0 4 300 500 2 50 2 -1 -1 "4_sphere_fourier" 0
./GAfunction.exe 0 8 300 500 2 50 2 -1 -1 "8_sphere_fourier" 0
./GAfunction.exe 0 2 300 500 3 50 2 -1 -1 "2_schwefel_fourier" 0
./GAfunction.exe 0 4 300 500 3 50 2 -1 -1 "4_schwefel_fourier" 0
./GAfunction.exe 0 8 300 500 3 50 2 -1 -1 "8_schwefel_fourier" 0
./GAfunction.exe 0 2 300 500 4 50 2 -1 -1 "2_rastrigin_fourier" 0
./GAfunction.exe 0 4 300 500 4 50 2 -1 -1 "4_rastrigin_fourier" 0
./GAfunction.exe 0 8 300 500 4 50 2 -1 -1 "8_rastrigin_fourier" 0
#./GAfunction.exe 0 8 300 500 2 50 2 -1 -1 "8_sphere_fourier" 0
#./GAfunction.exe 0 16 300 500 2 50 2 -1 -1 "16_sphere_fourier" 0
#./GAfunction.exe 0 32 300 500 2 50 2 -1 -1 "24_sphere_fourier" 0
#./GAfunction.exe 0 8 300 500 3 50 2 -1 -1 "8_schwefel_fourier" 0
#./GAfunction.exe 0 16 300 500 3 50 2 -1 -1 "16_schwefel_fourier" 0
#./GAfunction.exe 0 32 300 500 3 50 2 -1 -1 "24_schwefel_fourier" 0
#./GAfunction.exe 0 8 300 500 4 50 2 -1 -1 "8_rastrigin_fourier" 0
#./GAfunction.exe 0 16 300 500 4 50 2 -1 -1 "16_rastrigin_fourier" 0
#./GAfunction.exe 0 32 300 500 4 50 2 -1 -1 "32_rastrigin_fourier" 0
# problem type
# 1 : rosenbrock
# 2 : sphere
# 3 : schwefel
# 4 : rastrigin
# ./GAfunction.exe 1 25 100 1000 7 50 2 -1 1 "25_1_normal" 0
# ./GAfunction.exe 1 50 100 1000 7 50 2 -1 1 "50_1_normal" 0
done
# binaryOrNot, chromosome_size, population_size, number_iterations, problem_type, crossover_rate, mutation_rate, royal_number, num_k, path, transformOrNot
# not transform - 0
# transform - 1
: <<'END'
for i in 20
do
for j in {1..50}
do
./GAfunction.exe 0 $i 300 100 1 50 2 -1 -1 rosenbrock$i.txt
done
for j in {1..50}
do
./GAfunction.exe 0 $i 300 100 2 50 2 -1 -1 sphere$i.txt
done
for j in {1..50}
do
./GAfunction.exe 0 $i 300 100 3 50 2 -1 -1 schwefel$i.txt
done
for j in {1..50}
do
./GAfunction.exe 0 $i 300 100 4 50 2 -1 -1 rastrigin$i.txt
done
done
END