ec.multiobjective.spea2
Class SPEA2TournamentSelection

java.lang.Object
  extended by ec.BreedingSource
      extended by ec.SelectionMethod
          extended by ec.select.TournamentSelection
              extended by ec.multiobjective.spea2.SPEA2TournamentSelection
All Implemented Interfaces:
Prototype, Setup, SteadyStateBSourceForm, RandomChoiceChooser, java.io.Serializable, java.lang.Cloneable

public class SPEA2TournamentSelection
extends TournamentSelection

This is a special version of TournamentSelection which restricts the selection to only the archive region (the top 'archiveSize' elements in the subpopulation).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ec.select.TournamentSelection
DEFAULT_SIZE, P_PICKWORST, P_SIZE, P_TOURNAMENT, pickWorst, probabilityOfPickingSizePlusOne
 
Fields inherited from class ec.SelectionMethod
INDS_PRODUCED
 
Fields inherited from class ec.BreedingSource
NO_PROBABILITY, P_PROB, probability
 
Constructor Summary
SPEA2TournamentSelection()
           
 
Method Summary
 int getRandomIndividual(int number, int subpopulation, EvolutionState state, int thread)
          Produces the index of a (typically uniformly distributed) randomly chosen individual to fill the tournament.
 
Methods inherited from class ec.select.TournamentSelection
betterThan, defaultBase, getTournamentSizeToUse, individualReplaced, produce, setup, sourcesAreProperForm
 
Methods inherited from class ec.SelectionMethod
finishProducing, prepareToProduce, produce, produces, typicalIndsProduced
 
Methods inherited from class ec.BreedingSource
clone, getProbability, pickRandom, preparePipeline, setProbability, setupProbabilities
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPEA2TournamentSelection

public SPEA2TournamentSelection()
Method Detail

getRandomIndividual

public int getRandomIndividual(int number,
                               int subpopulation,
                               EvolutionState state,
                               int thread)
Description copied from class: TournamentSelection
Produces the index of a (typically uniformly distributed) randomly chosen individual to fill the tournament. number is the position of the individual in the tournament.

Overrides:
getRandomIndividual in class TournamentSelection