ec.multiobjective.spea2
Class SPEA2Breeder
java.lang.Object
ec.Breeder
ec.simple.SimpleBreeder
ec.multiobjective.spea2.SPEA2Breeder
- All Implemented Interfaces:
- Setup, Singleton, java.io.Serializable
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SPEA2Breeder
public SPEA2Breeder()
loadElites
protected void loadElites(EvolutionState state,
Population newpop)
- Description copied from class:
SimpleBreeder
- A private helper function for breedPopulation which loads elites into
a subpopulation.
- Overrides:
loadElites
in class SimpleBreeder
calculateDistancesFromIndividual
public double[] calculateDistancesFromIndividual(Individual ind,
Individual[] inds)
buildArchive
public void buildArchive(EvolutionState state,
Individual[] oldInds,
Individual[] newInds,
int archiveSize)