ec.multiobjective.spea2
Class SPEA2Evaluator
- java.lang.Object
-
- ec.Evaluator
-
- ec.simple.SimpleEvaluator
-
- ec.multiobjective.spea2.SPEA2Evaluator
-
public class SPEA2Evaluator extends SimpleEvaluator
This subclass of SimpleEvaluator evaluates the population, then computes auxiliary fitness data of each subpopulation.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class ec.simple.SimpleEvaluator
C_AUTO, cloneProblem, MERGE_BEST, MERGE_MEAN, MERGE_MEDIAN, mergeForm, numTests, P_CHUNK_SIZE, P_CLONE_PROBLEM, P_MERGE, P_NUM_TESTS, pool, V_AUTO, V_BEST, V_MEAN, V_MEDIAN
-
Fields inherited from class ec.Evaluator
masterproblem, P_IAMSLAVE, P_MASTERPROBLEM, p_problem, P_PROBLEM
-
-
Constructor Summary
Constructors Constructor and Description SPEA2Evaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double[][]calculateDistances(EvolutionState state, Individual[] inds)Returns a matrix of sum squared distances from each individual to each other individual.voidcomputeAuxiliaryData(EvolutionState state, Individual[] inds)Computes the strength of individuals, then the raw fitness (wimpiness) and kth-closest sparsity measure.voidevaluatePopulation(EvolutionState state)A simple evaluator that doesn't do any coevolutionary evaluation.-
Methods inherited from class ec.simple.SimpleEvaluator
runComplete, setup
-
Methods inherited from class ec.Evaluator
closeContacts, initializeContacts, reinitializeContacts
-
-
-
-
Method Detail
-
evaluatePopulation
public void evaluatePopulation(EvolutionState state)
Description copied from class:SimpleEvaluatorA simple evaluator that doesn't do any coevolutionary evaluation. Basically it applies evaluation pipelines, one per thread, to various subchunks of a new population.- Overrides:
evaluatePopulationin classSimpleEvaluator
-
computeAuxiliaryData
public void computeAuxiliaryData(EvolutionState state, Individual[] inds)
Computes the strength of individuals, then the raw fitness (wimpiness) and kth-closest sparsity measure. Finally, computes the final fitness of the individuals.
-
calculateDistances
public double[][] calculateDistances(EvolutionState state, Individual[] inds)
Returns a matrix of sum squared distances from each individual to each other individual.
-
-
DMelt 3.0 © DataMelt by jWork.ORG