|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectec.Subpopulation
ec.multiobjective.spea2.SPEA2Subpopulation
public class SPEA2Subpopulation
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 | species.f_prototype (the prototypical fitness) |
Subpopulation
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
ARCHIVE_PREAMBLE
|
int |
archiveSize
The SPEA2 archive size |
static java.lang.String |
P_ARCHIVESIZE
|
Fields inherited from class ec.Subpopulation |
---|
INDIVIDUAL_INDEX_PREAMBLE, individuals, loadInds, NUM_INDIVIDUALS_PREAMBLE, numDuplicateRetries, P_FILE, P_RETRIES, P_SPECIES, P_SUBPOPSIZE, P_SUBPOPULATION, species |
Constructor Summary | |
---|---|
SPEA2Subpopulation()
|
Method Summary | |
---|---|
void |
printSubpopulation(EvolutionState state,
int log,
int verbosity)
Overridden to include the archive size in the stream. |
void |
printSubpopulation(EvolutionState state,
java.io.PrintWriter writer)
Overridden to include the archive size in the stream. |
void |
printSubpopulationForHumans(EvolutionState state,
int log,
int verbosity)
Overridden to include the archive size in the stream. |
void |
readSubpopulation(EvolutionState state,
java.io.DataInput dataInput)
Overridden to include the archive size in the stream. |
void |
readSubpopulation(EvolutionState state,
java.io.LineNumberReader reader)
Overridden to include the archive size in the stream. |
void |
setup(EvolutionState state,
Parameter base)
Returns an instance of Subpopulation just like it had been before it was populated with individuals. |
void |
writeSubpopulation(EvolutionState state,
java.io.DataOutput dataOutput)
Overridden to include the archive size in the stream. |
Methods inherited from class ec.Subpopulation |
---|
defaultBase, emptyClone, populate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int archiveSize
public static final java.lang.String P_ARCHIVESIZE
public static final java.lang.String ARCHIVE_PREAMBLE
Constructor Detail |
---|
public SPEA2Subpopulation()
Method Detail |
---|
public void setup(EvolutionState state, Parameter base)
setup
in interface Setup
setup
in class Subpopulation
Group.emptyClone()
public void printSubpopulationForHumans(EvolutionState state, int log, int verbosity)
printSubpopulationForHumans
in class Subpopulation
public void printSubpopulation(EvolutionState state, int log, int verbosity)
printSubpopulation
in class Subpopulation
public void printSubpopulation(EvolutionState state, java.io.PrintWriter writer)
printSubpopulation
in class Subpopulation
public void readSubpopulation(EvolutionState state, java.io.LineNumberReader reader) throws java.io.IOException
readSubpopulation
in class Subpopulation
java.io.IOException
public void writeSubpopulation(EvolutionState state, java.io.DataOutput dataOutput) throws java.io.IOException
writeSubpopulation
in class Subpopulation
java.io.IOException
public void readSubpopulation(EvolutionState state, java.io.DataInput dataInput) throws java.io.IOException
readSubpopulation
in class Subpopulation
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |