ec.multiobjective.spea2
Class SPEA2Subpopulation

java.lang.Object
  extended byec.Subpopulation
      extended byec.multiobjective.spea2.SPEA2Subpopulation
All Implemented Interfaces:
java.lang.Cloneable, Group, java.io.Serializable, Setup

public class SPEA2Subpopulation
extends Subpopulation

SPEA2Subpopulation is a simple subclass of Subpopulation which adds the archiveSize field. The archive is portion of the subpopulation so archive size may not exceed the population size.

Parameters

base.archive-size
int >= 1 < populationSize
(total number of individuals from the population which are in the archive)

Parameter bases

base.species species (the subpopulations' species)
base.fitness f_prototype (the prototypical fitness)

See Also:
Subpopulation, Serialized Form

Field Summary
 int archiveSize
          The SPEA2 archive size
static java.lang.String P_ARCHIVESIZE
           
 
Fields inherited from class ec.Subpopulation
f_prototype, individuals, loadInds, numDuplicateRetries, P_FILE, P_FITNESS, P_RETRIES, P_SPECIES, P_SUBPOPSIZE, species
 
Constructor Summary
SPEA2Subpopulation()
           
 
Method Summary
 void setup(EvolutionState state, Parameter base)
          Returns an instance of Subpopulation just like it had been before it was populated with individuals.
 
Methods inherited from class ec.Subpopulation
emptyClone, populate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

archiveSize

public int archiveSize
The SPEA2 archive size


P_ARCHIVESIZE

public static final java.lang.String P_ARCHIVESIZE
See Also:
Constant Field Values
Constructor Detail

SPEA2Subpopulation

public SPEA2Subpopulation()
Method Detail

setup

public void setup(EvolutionState state,
                  Parameter base)
Returns an instance of Subpopulation just like it had been before it was populated with individuals. You may need to override this if you override Subpopulation. IMPORTANT NOTE: if the size of the array in Subpopulation has been changed, then the clone will take on the new array size. This helps some evolution strategies.

Specified by:
setup in interface Setup
Overrides:
setup in class Subpopulation
See Also:
Group.emptyClone()