ec.app.sequence
Class SubpopulationExt

java.lang.Object
  extended by ec.Subpopulation
      extended by ec.app.sequence.SubpopulationExt
All Implemented Interfaces:
ec.Group, ec.Setup, java.io.Serializable, java.lang.Cloneable

public class SubpopulationExt
extends ec.Subpopulation

This class extends Subpopulation and decreases the size of it every time by 25% for example.

Author:
udaykamath
See Also:
Serialized Form

Field Summary
 
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
SubpopulationExt()
           
 
Method Summary
 ec.Group emptyClone()
          Returns an instance of Subpopulation just like it had been before it was populated with individuals.
 void populate(ec.EvolutionState state, int thread)
           
 
Methods inherited from class ec.Subpopulation
defaultBase, printSubpopulation, printSubpopulation, printSubpopulation, printSubpopulationForHumans, printSubpopulationForHumans, readSubpopulation, readSubpopulation, setup, writeSubpopulation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubpopulationExt

public SubpopulationExt()
Method Detail

emptyClone

public ec.Group emptyClone()
Description copied from class: ec.Subpopulation
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:
emptyClone in interface ec.Group
Overrides:
emptyClone in class ec.Subpopulation
See Also:
Group.emptyClone()

populate

public void populate(ec.EvolutionState state,
                     int thread)
Overrides:
populate in class ec.Subpopulation