-
Notifications
You must be signed in to change notification settings - Fork 3
/
scriptEntry.py
31 lines (23 loc) · 1.29 KB
/
scriptEntry.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
27
28
29
30
31
import experiment_1.experiment1Algos as alg1
import experiment_2.experiment2Algos as alg2
import experiment_2.createImage as image2
import experiment_3.experiment3Algos as alg3
import experiment_3.createImage as image3
import geneticAlgorithm.constants as constants
fitnessFuncs = ['random', 'functional', 'coherence', 'multiobjective']
inputToVary = "default"
numSimulations = 1000
numFiles = 25
############################################# Experiment 1 ############################################
for fitnessFunc in fitnessFuncs:
alg1.scExperiment(fitnessFunc, numFiles)
############################################# Experiment 2 ############################################
for fitnessFunc in fitnessFuncs:
filename = constants.getExperimentResultPath(number=2, func=fitnessFunc, suff='_expData')
alg2.runExperiment(filename, inputToVary, numSimulations, numFiles, fitnessFunc)
image2.statusOverTime(filename, fitnessFunc)
############################################# Experiment 3 ############################################
for fitnessFunc in fitnessFuncs:
filename = constants.getExperimentResultPath(number=3, func=fitnessFunc, suff='_expData')
alg3.runExperiment(filename, inputToVary, numSimulations, numFiles, fitnessFunc)
image3.statusOverTime(filename, fitnessFunc)