- pip install -r requirements.txt
Important variables for Hill Climber experiment:
- runs: number of runs
- maxFunctionEvaluations: maximum number of function evaluations per run
- poolProcessed: number of processors used on machine
- resultFolder: folder to save results
- intermediateFolder: folder to save intermediate results during runs.
Important variables for PPA experiment:
- runs: number of runs
- maxFunctionEvaluations: maximum number of function evaluations per run
- poolProcessed: number of processors used on machine
- populationSize: number of individuals selected per generation
- maxOffspring: maximum number of offspring per individual
- relativeMaxSwaps: maximum number of swaps relative to the permutation list size
- resultFolder: folder to save results
- intermediateFolder: folder to save intermediate results during runs.
- Choose library, the current library (full_full_library.txt) is the one used in the (original) experiment
- Choose the
Experiments.runHillClimberComparisonExperiment(library, sortedInstances)function for hill climber experiment.
- When the run needs to be stopped/paused, it will continue once you start again. The intermediateResults folder will be used to resume.
- IMPORTANT NOTE: When you restart a run, empty the
files/taken.txtfile. (Do not delete it) - The results for the experiment for EvoStar can be found in
files/output/hc2.
- All results should be visible in the
resultFolderchosen. To create a single file with all results, run theUtil.createAllResultsFilefunction, with the sameresultFolderas argument. An example is thefiles/output/hc2/allResults.csvfile. - Results of Weise et al.'s original experiment can also be found for comparison:
files/weiseResultsOriginal.csv.
- Run makeFigures.py
- You can also choose to run other instances, by changing the
instancesvariable. I hope it works with more or less than 6 instances, but not sure.
- Run makeTables.py
- This will create three files in main directory:
own_results.csv,weise_resultsandcomparison_results.csv - The first is a summary of our own results. For this the
files/output/hc2/allResults.csvfile is used. - The second is a summary of Weise et al.'s results. For this the
files/weiseResultsOriginal.csvfile is used. - The third is a comparison with Weise et al.'s original results. For this the same files are used.
- Both result files can be found in
files.