-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
14 changed files
with
242 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,15 @@ | |
|
||
import org.uma.jmetal.problem.DoubleProblem; | ||
import org.uma.jmetal.solution.DoubleSolution; | ||
import org.uma.jmetal.util.AlgorithmBuilder; | ||
import org.uma.jmetal.util.evaluator.SolutionListEvaluator; | ||
import org.uma.jmetal.util.evaluator.impl.SequentialSolutionListEvaluator; | ||
|
||
/** | ||
* | ||
* @author Daniel Pusil <[email protected]> | ||
*/ | ||
public class GHSBuilder { | ||
public class GHSBuilder implements AlgorithmBuilder<GHS> { | ||
|
||
private DoubleProblem problem; | ||
private int maxEvaluations;//Maximum number of evaluations of the objective function | ||
|
@@ -36,6 +37,7 @@ public GHSBuilder(DoubleProblem problem) { | |
this.evaluator = new SequentialSolutionListEvaluator<>(); | ||
} | ||
|
||
@Override | ||
public GHS build() { | ||
GHS hs = new GHS(problem, maxEvaluations, HMS, HMCR, PARMIN, PARMAX, evaluator); | ||
return hs; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,16 @@ | |
|
||
import org.uma.jmetal.problem.DoubleProblem; | ||
import org.uma.jmetal.solution.DoubleSolution; | ||
import org.uma.jmetal.util.AlgorithmBuilder; | ||
import org.uma.jmetal.util.evaluator.SolutionListEvaluator; | ||
import org.uma.jmetal.util.evaluator.impl.SequentialSolutionListEvaluator; | ||
|
||
/** | ||
* | ||
* @author Daniel Pusil <[email protected]> | ||
*/ | ||
public class HSBuilder { | ||
public class HSBuilder | ||
implements AlgorithmBuilder<HS> { | ||
|
||
/** | ||
* Parameters | ||
|
@@ -35,6 +37,7 @@ public HSBuilder(DoubleProblem problem) { | |
/** | ||
* @return HarmonySearch algorithm | ||
*/ | ||
@Override | ||
public HS build() { | ||
return new HS(problem, maxEvaluations, HMS, HMCR, PAR, BW, evaluator); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,15 @@ | |
|
||
import org.uma.jmetal.problem.DoubleProblem; | ||
import org.uma.jmetal.solution.DoubleSolution; | ||
import org.uma.jmetal.util.AlgorithmBuilder; | ||
import org.uma.jmetal.util.evaluator.SolutionListEvaluator; | ||
import org.uma.jmetal.util.evaluator.impl.SequentialSolutionListEvaluator; | ||
|
||
/** | ||
* | ||
* @author Daniel Pusil <[email protected]> | ||
*/ | ||
public class IHSBuilder { | ||
public class IHSBuilder implements AlgorithmBuilder<IHS> { | ||
|
||
private DoubleProblem problem; | ||
private int maxEvaluations; | ||
|
@@ -36,6 +37,7 @@ public IHSBuilder(DoubleProblem problem) { | |
this.evaluator = new SequentialSolutionListEvaluator<>(); | ||
} | ||
|
||
@Override | ||
public IHS build() { | ||
IHS hs = new IHS(problem, maxEvaluations, HMS, HMCR, PARMIN, PARMAX, BWMIN, BWMAX, evaluator); | ||
return hs; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,15 @@ | |
|
||
import org.uma.jmetal.problem.DoubleProblem; | ||
import org.uma.jmetal.solution.DoubleSolution; | ||
import org.uma.jmetal.util.AlgorithmBuilder; | ||
import org.uma.jmetal.util.evaluator.SolutionListEvaluator; | ||
import org.uma.jmetal.util.evaluator.impl.SequentialSolutionListEvaluator; | ||
|
||
/** | ||
* | ||
* @author Daniel Pusil <[email protected]> | ||
*/ | ||
public class NGHSBuilder { | ||
public class NGHSBuilder implements AlgorithmBuilder<NGHS>{ | ||
|
||
private DoubleProblem problem; | ||
private int maxEvaluations; | ||
|
@@ -24,6 +25,7 @@ public NGHSBuilder(DoubleProblem problem) { | |
this.evaluator = new SequentialSolutionListEvaluator<>(); | ||
} | ||
|
||
@Override | ||
public NGHS build() { | ||
NGHS hs = new NGHS(problem, maxEvaluations, HMS, PM, evaluator); | ||
return hs; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.