ec.multiobjective.spea2
Class SPEA2Breeder
- java.lang.Object
-
- ec.Breeder
-
- ec.simple.SimpleBreeder
-
- ec.multiobjective.spea2.SPEA2Breeder
-
public class SPEA2Breeder extends SimpleBreeder
This subclass of SimpleBreeder overrides the loadElites method to build an archive in the top elites[subpopnum] of each subpopulation. It computes the sparsity metric, then constructs the archive.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class ec.simple.SimpleBreeder
backupPopulation, clonePipelineAndPopulation, elite, eliteFrac, NOT_SET, P_CLONE_PIPELINE_AND_POPULATION, P_ELITE, P_ELITE_FRAC, P_REEVALUATE_ELITES, P_SEQUENTIAL_BREEDING, pool, reevaluateElites, sequentialBreeding
-
-
Constructor Summary
Constructors Constructor and Description SPEA2Breeder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidbuildArchive(EvolutionState state, Individual[] oldInds, Individual[] newInds, int archiveSize)double[]calculateDistancesFromIndividual(Individual ind, Individual[] inds)voidsetup(EvolutionState state, Parameter base)Sets up the object by reading it from the parameters stored in state, built off of the parameter base base.-
Methods inherited from class ec.simple.SimpleBreeder
breedPopulation, computeSubpopulationLength, numElites, shouldBreedSubpop, usingElitism
-
-
-
-
Method Detail
-
setup
public void setup(EvolutionState state, Parameter base)
Description copied from interface:SetupSets up the object by reading it from the parameters stored in state, built off of the parameter base base. If an ancestor implements this method, be sure to call super.setup(state,base); before you do anything else.- Specified by:
setupin interfaceSetup- Overrides:
setupin classSimpleBreeder
-
calculateDistancesFromIndividual
public double[] calculateDistancesFromIndividual(Individual ind, Individual[] inds)
-
buildArchive
public void buildArchive(EvolutionState state, Individual[] oldInds, Individual[] newInds, int archiveSize)
-
-
DMelt 3.0 © DataMelt by jWork.ORG