From 40dcdef138bf19c082236e13100695409c5f5d56 Mon Sep 17 00:00:00 2001 From: Thomas Weise Date: Sat, 13 Jun 2020 10:13:30 +0800 Subject: [PATCH] now testing permutation-based umda with clearing for JSSP --- .../examples/jssp/EJSSPExperimentStage.java | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/main/java/aitoa/examples/jssp/EJSSPExperimentStage.java b/src/main/java/aitoa/examples/jssp/EJSSPExperimentStage.java index db1a14e..6384835 100644 --- a/src/main/java/aitoa/examples/jssp/EJSSPExperimentStage.java +++ b/src/main/java/aitoa/examples/jssp/EJSSPExperimentStage.java @@ -566,9 +566,10 @@ public void configureBuilderForProblem( IMetaheuristic>> 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) { @@ -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(); } },