[go: nahoru, domu]

Skip to content

Commit

Permalink
fx
Browse files Browse the repository at this point in the history
  • Loading branch information
castellanos94 committed Jul 5, 2021
1 parent 2295368 commit fe6064d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/castellanos94/experimentation/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ public void run() {
|| algorithmName == AlgorithmNames.MOGWOPFN || algorithmName == AlgorithmNames.MOGWOV
|| algorithmName == AlgorithmNames.PIMOGWO) {
String suffix = (mogwoExternalPopulation != -1) ? "-EP" + mogwoExternalPopulation : "";

suffix = (mogwoExternalPopulationBoolean) ? "-EPN" + setup(numberOfObjectives).get("pop_size") : "";
if (mogwoExternalPopulationBoolean)
suffix = "-EPN" + setup(numberOfObjectives).get("pop_size");
DIRECTORY = base + "MOGWO" + File.separator + algorithmName + suffix;
} else if (algorithmName == AlgorithmNames.MOEAD || algorithmName == AlgorithmNames.MOEADO) {
String suffix = "";
Expand Down Expand Up @@ -385,8 +385,8 @@ else if (numberOfObjectives == 8)
return algorithm;
}
int ep_mogwo = (mogwoExternalPopulation != -1) ? mogwoExternalPopulation : (int) options.get("pop_size") / 2;
if(mogwoExternalPopulationBoolean){
ep_mogwo =(int) setup(numberOfObjectives).get("pop_size");
if (mogwoExternalPopulationBoolean) {
ep_mogwo = (int) setup(numberOfObjectives).get("pop_size");
}
if (_algorithmName == AlgorithmNames.MOGWO) {
return new MOGWO<>(problem, (int) options.get("pop_size"), maxIterations, ep_mogwo, new RepairBoundary());
Expand Down

0 comments on commit fe6064d

Please sign in to comment.