ec.multiobjective.spea2
Class SPEA2Breeder

java.lang.Object
  extended by ec.Breeder
      extended by ec.simple.SimpleBreeder
          extended by 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

Field Summary
 
Fields inherited from class ec.simple.SimpleBreeder
elite, P_ELITE, P_REEVALUATE_ELITES, reevaluateElites
 
Constructor Summary
SPEA2Breeder()
           
 
Method Summary
 void buildArchive(EvolutionState state, Individual[] oldInds, Individual[] newInds, int archiveSize)
           
 double[] calculateDistancesFromIndividual(Individual ind, Individual[] inds)
           
protected  void loadElites(EvolutionState state, Population newpop)
          A private helper function for breedPopulation which loads elites into a subpopulation.
 
Methods inherited from class ec.simple.SimpleBreeder
breedPopChunk, breedPopulation, computeSubpopulationLength, setup, unmarkElitesEvaluated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPEA2Breeder

public SPEA2Breeder()
Method Detail

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)