Skip to content

Commit

Permalink
now testing permutation-based umda with clearing for JSSP
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasWeise committed Jun 13, 2020
1 parent 0d0333d commit 40dcdef
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions src/main/java/aitoa/examples/jssp/EJSSPExperimentStage.java
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,10 @@ public void configureBuilderForProblem(
IMetaheuristic<int[], JSSPCandidateSolution>>> list =
new ArrayList<>();

for (int muShift = 4; muShift <= 12; muShift += 2) {
for (final int muShift : new int[] { 4, 6, 7, 8, 9, 10,
12 }) {
final int mu = 1 << muShift;
for (int lambdaShift = 10; lambdaShift <= 18;
for (int lambdaShift = 5; lambdaShift <= 18;
lambdaShift++) {
final int lambda = 1 << lambdaShift;
if (mu < lambda) {
Expand All @@ -577,6 +578,22 @@ public void configureBuilderForProblem(
}
}
}

for (final int mu : new int[] { 2, 3, 4, 5, 8, 10 }) {
for (int lambdaShift = 4; lambdaShift <= 18;
lambdaShift++) {
final int lambda = 1 << lambdaShift;
if (mu < lambda) {
if (lambda <= 256) {
list.add(() -> new EDAWithClearing<>(mu, lambda, //
new JSSPUMDAModelP(problem.instance)));
}
list.add(() -> new EDA<>(mu, lambda, //
new JSSPUMDAModelP(problem.instance)));
}
}
}

return list.stream();
}
},
Expand Down

0 comments on commit 40dcdef

Please sign in to comment.