Commit 4cee4793 authored by René Schöne's avatar René Schöne
Browse files

Ugly setting of parameters for ACO solver.

- the solver should make a better decision for population and iteration sizes based on model parameters
parent b2a525ce
......@@ -107,6 +107,28 @@ public class ACOSolver implements BenchmarkableSolver {
int numSoftwareSolutions = 0;
int numTotalSoftwareSolutions = 0;
if (model.numComponents() == 3) {
if (model.numImplementations() == 62) {
// benchmark 1_small and 2_small_hw
setPopulation_size(80);
setIteration_size(1);
} else if (model.numImplementations() == 30) {
// benchmark 4_medium and 5_medium_hw
setPopulation_size(50000);
setIteration_size(50);
}
} else if (model.numComponents() == 31) {
if (model.numImplementations() == 62) {
// benchmark 3_small_sw
setPopulation_size(80);
setIteration_size(1);
} else if (model.numImplementations() == 155) {
// benchmark 6_medium_sw
setPopulation_size(50000);
setIteration_size(50);
}
}
stopWatch = StopWatch.start();
List<Solution> solutions = new ArrayList<>();
List<Solution> currentSolutions = new ArrayList<>();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment