-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindividuals_main.py
26 lines (20 loc) · 936 Bytes
/
individuals_main.py
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
import sys
from evolutionary_algorithm.individuals.IndividualMutateNormalDist import IndividualMutateNormalDist
from evolutionary_algorithm.individuals.IndividualRandomNormalDist import IndividualRandomNormalDist
from evolutionary_algorithm.runnable_main import default_ea_runnable_settings, do_an_ea_run, execute_ea_runs
run_settings_1 = default_ea_runnable_settings
run_settings_1['individual_class'] = IndividualMutateNormalDist
run_settings_2 = default_ea_runnable_settings
run_settings_2['individual_class'] = IndividualRandomNormalDist
if __name__ == '__main__':
try:
runnable_int = int(sys.argv[1])
except IndexError:
runnable_int = 0
folder = 'individual'
if runnable_int == 1:
print('Running setting 1')
execute_ea_runs('_single_dist', run_settings_1, folder)
else:
print('Running setting other')
execute_ea_runs('_double_dist', run_settings_2, folder)