-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_multiple_param_loop_Cmake_p_test.sh
106 lines (101 loc) · 2.73 KB
/
run_multiple_param_loop_Cmake_p_test.sh
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#!/bin/bash
# Script to run multiple simulations
#
# Usage, locally:
#
# ./run_multiple_param_loop.sh
#
# Usage, on Peregrine:
#
# sbatch ./run_multiple_param_loop.sh
#
# Peregrine directives:
#SBATCH --time=00:10:00
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --ntasks=1
#SBATCH --mem=3GB
#SBATCH --job-name=run_arc_evo_loop
#SBATCH --output=run_arc_evo_loop_p_test.log
# to get arc_evo.pro command interface
#run arc_evo.exe with command line argument -h
module load git
module load CMake
module load binutils
mkdir build_test
cd build_test
cmake -DCMAKE_BUILD_TYPE=Release ..
make
declare -a architectures=("1,2,2,2,1")
declare -a max_architectures=("1,2,2,2,1")
declare -a change_freq_As=(0.1)
declare -a change_freq_Bs=(0.01)
declare -a sel_strs=(0.1 0.5 1)
declare -a gen=(10000)
declare -a mut_types=("weights")
declare -a sel_types=("constant")
declare -a change_freq_types=("regular")
declare -a change_sym_types=("asymmetrical")
declare -a adaptation_periods=("on")
declare -a type_of_responses=("plastic")
declare -a sel_freqs=(0)
declare record_top_ind_freq=1000
declare n_observations_reaction_norm=100
declare n_trials=10
for seed in $(seq 1 1)
do
for arc in "${architectures[@]}"
do
for max_arc in "${max_architectures[@]}"
do
for change_freq_A in "${change_freq_As[@]}"
do
for gen in "${gen[@]}"
do
for mut_type in "${mut_types[@]}"
do
for sel_type in "${sel_types[@]}"
do
for sel_freq in "${sel_freqs[@]}"
do
for adaptation_period in "${adaptation_periods[@]}"
do
for change_freq_type in "${change_freq_types[@]}"
do
for change_sym_type in "${change_sym_types[@]}"
do
for change_freq_B in "${change_freq_Bs[@]}"
do
for sel_str in "${sel_strs[@]}"
do
for type_of_response in "${type_of_responses[@]}"
do
echo $seed
echo $arc
echo $max_arc
echo $change_freq_A
echo $gen
echo $mut_type
echo $sel_type
echo $sel_freq
echo $adaptation_period
echo $change_freq_type
echo $change_sym_type
echo $change_freq_B
echo $sel_str
echo $type_of_response
sbatch ../run_loop_plastic.sh $seed $arc $max_arc $change_freq_A $gen $mut_type $sel_type $sel_freq $record_top_ind_freq $n_observations_reaction_norm $n_trials $adaptation_period $change_freq_type $change_sym_type $change_freq_B $sel_str $type_of_response
done
done
done
done
done
done
done
done
done
done
done
done
done
done