public class NSGA2Evaluator extends SimpleEvaluator
The evaluator is also responsible for calculating the rank and sparsity values stored in the NSGA2MultiObjectiveFitness class and used largely for statistical information.
NSGA-II has fixed archive size (the population size), and so ignores the 'elites' declaration. However it will adhere to the 'reevaluate-elites' parameter in SimpleBreeder to determine whether to force fitness reevaluation.
| Modifier and Type | Field and Description |
|---|---|
int[] |
originalPopSize
The original population size is stored here so NSGA2 knows how large to create the archive
(it's the size of the original population -- keep in mind that NSGA2Breeder had made the
population larger to include the children.
|
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_MEDIANmasterproblem, P_IAMSLAVE, P_MASTERPROBLEM, p_problem, P_PROBLEM| Constructor and Description |
|---|
NSGA2Evaluator() |
| Modifier and Type | Method and Description |
|---|---|
ArrayList |
assignFrontRanks(Subpopulation subpop)
Divides inds into ranks and assigns each individual's rank to be the rank it was placed into.
|
void |
assignSparsity(Individual[] front)
Computes and assigns the sparsity values of a given front.
|
Individual[] |
buildArchive(EvolutionState state,
int subpop)
Build the auxiliary fitness data and reduce the subpopulation to just the archive, which is
returned.
|
void |
evaluatePopulation(EvolutionState state)
Evaluates the population, then builds the archive and reduces the population to just the archive.
|
void |
setup(EvolutionState state,
Parameter base)
Sets up the object by reading it from the parameters stored
in state, built off of the parameter base base.
|
evalPopChunk, runCompletecloseContacts, initializeContacts, reinitializeContactspublic int[] originalPopSize
public void setup(EvolutionState state, Parameter base)
Setupsetup in interface Setupsetup in class SimpleEvaluatorpublic void evaluatePopulation(EvolutionState state)
evaluatePopulation in class SimpleEvaluatorpublic Individual[] buildArchive(EvolutionState state, int subpop)
public ArrayList assignFrontRanks(Subpopulation subpop)
public void assignSparsity(Individual[] front)
Copyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.