Skip to content

Commit

Permalink
Refresh contents from local project jMetalAuto
Browse files Browse the repository at this point in the history
  • Loading branch information
Yebisu committed Mar 19, 2020
1 parent 18e187f commit ffe63a3
Show file tree
Hide file tree
Showing 193 changed files with 7,589 additions and 2,751 deletions.
Expand Up @@ -2,7 +2,7 @@

import org.uma.jmetal.problem.doubleproblem.DoubleProblem;
import org.uma.jmetal.qualityindicator.impl.Epsilon;
import org.uma.jmetal.qualityindicator.impl.hypervolume.PISAHypervolume;
import org.uma.jmetal.qualityindicator.impl.hypervolume.impl.PISAHypervolume;
import org.uma.jmetal.solution.doublesolution.DoubleSolution;
import org.uma.jmetal.util.front.Front;
import org.uma.jmetal.util.front.impl.ArrayFront;
Expand Down
Expand Up @@ -5,11 +5,10 @@
import org.uma.jmetal.operator.selection.SelectionOperator;
import org.uma.jmetal.problem.Problem;
import org.uma.jmetal.solution.Solution;
import org.uma.jmetal.util.SolutionListUtils;

import java.util.ArrayList;
import java.util.List;
import org.uma.jmetal.algorithm.multiobjective.ibea.IBEA;
import org.uma.jmetal.util.SolutionListUtils;

/** This class implements the IBEA algorithm */
@SuppressWarnings("serial")
Expand Down
Expand Up @@ -32,7 +32,6 @@ public class MOEAD<S extends Solution<?>> extends ComponentBasedEvolutionaryAlgo

/** Constructor */
public MOEAD(
Problem<S> problem,
Evaluation<S> evaluation,
InitialSolutionsCreation<S> initialPopulationCreation,
Termination termination,
Expand All @@ -41,7 +40,6 @@ public MOEAD(
MOEADReplacement<S> replacement) {
super(
"MOEAD",
problem,
evaluation,
initialPopulationCreation,
termination,
Expand Down Expand Up @@ -125,6 +123,8 @@ public MOEAD(

this.termination = termination;

this.evaluation = new SequentialEvaluation<>();
this.evaluation = new SequentialEvaluation<>(problem);

this.archive = null ;
}
}
Expand Up @@ -31,7 +31,6 @@ public class MOEADDE extends ComponentBasedEvolutionaryAlgorithm<DoubleSolution>

/** Constructor */
public MOEADDE(
Problem<DoubleSolution> problem,
Evaluation<DoubleSolution> evaluation,
InitialSolutionsCreation<DoubleSolution> initialPopulationCreation,
Termination termination,
Expand All @@ -40,7 +39,6 @@ public MOEADDE(
MOEADReplacement replacement) {
super(
"MOEAD-DE",
problem,
evaluation,
initialPopulationCreation,
termination,
Expand Down Expand Up @@ -78,7 +76,6 @@ public MOEADDE(
this.observable = new DefaultObservable<>(name);
this.attributes = new HashMap<>();


SequenceGenerator<Integer> subProblemIdGenerator =
new IntegerPermutationGenerator(populationSize);

Expand Down Expand Up @@ -134,6 +131,8 @@ public MOEADDE(

this.termination = termination ;

this.evaluation = new SequentialEvaluation<>() ;
this.evaluation = new SequentialEvaluation<>(problem) ;

this.archive = null ;
}
}

This file was deleted.

This file was deleted.

Expand Up @@ -31,7 +31,6 @@ public class NSGAII<S extends Solution<?>> extends ComponentBasedEvolutionaryAlg
/**
* Constructor
*
* @param problem
* @param evaluation
* @param initialPopulationCreation
* @param termination
Expand All @@ -40,7 +39,6 @@ public class NSGAII<S extends Solution<?>> extends ComponentBasedEvolutionaryAlg
* @param replacement
*/
public NSGAII(
Problem<S> problem,
Evaluation<S> evaluation,
InitialSolutionsCreation<S> initialPopulationCreation,
Termination termination,
Expand All @@ -49,7 +47,6 @@ public NSGAII(
RankingAndDensityEstimatorReplacement<S> replacement) {
super(
"NSGA-II",
problem,
evaluation,
initialPopulationCreation,
termination,
Expand All @@ -67,8 +64,8 @@ public NSGAII(
MutationOperator<S> mutationOperator,
Termination termination,
Ranking<S> ranking) {
this.name = "NSGA-II" ;
this.problem = problem ;
this.name = "NSGA-II";
this.problem = problem;
this.observable = new DefaultObservable<>(name);
this.attributes = new HashMap<>();

Expand All @@ -94,7 +91,9 @@ public NSGAII(

this.termination = termination;

this.evaluation = new SequentialEvaluation<>();
this.evaluation = new SequentialEvaluation<>(problem);

this.archive = null;
}

/** Constructor */
Expand Down

This file was deleted.

Expand Up @@ -4,7 +4,7 @@
import org.uma.jmetal.operator.mutation.MutationOperator;
import org.uma.jmetal.operator.selection.SelectionOperator;
import org.uma.jmetal.problem.Problem;
import org.uma.jmetal.qualityindicator.impl.hypervolume.PISAHypervolume;
import org.uma.jmetal.qualityindicator.impl.hypervolume.impl.PISAHypervolume;
import org.uma.jmetal.solution.Solution;
import org.uma.jmetal.util.SolutionListUtils;
import org.uma.jmetal.util.evaluator.SolutionListEvaluator;
Expand Down
Expand Up @@ -210,7 +210,7 @@ protected List<DoubleSolution> createInitialSwarm() {

@Override
protected List<DoubleSolution> evaluateSwarm(List<DoubleSolution> swarm) {
return evaluation.evaluate(swarm, problem);
return evaluation.evaluate(swarm);
}

@Override
Expand Down

0 comments on commit ffe63a3

Please sign in to comment.