Documentation of 'ec.simple.SimpleInitializer' Java class
SimpleInitializer
ec.simple

Class SimpleInitializer

  • All Implemented Interfaces:
    Setup, Singleton, java.io.Serializable
    Direct Known Subclasses:
    GPInitializer, RuleInitializer


    public class SimpleInitializer
    extends Initializer
    SimpleInitializer is a default Initializer which initializes a Population by calling the Population's populate(...) method. For most applications, this should suffice.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Population initialPopulation(EvolutionState state, int thread)
      Creates, populates, and returns a new population by making a new population, calling setup(...) on it, and calling populate(...) on it, assuming an unthreaded environment (thread 0).
      void setup(EvolutionState state, Parameter base)
      Sets up the object by reading it from the parameters stored in state, built off of the parameter base base.
      Population setupPopulation(EvolutionState state, int thread)
      Loads a Population from the parameter file, sets it up, and returns it.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleInitializer

        public SimpleInitializer()
    • Method Detail

      • setup

        public void setup(EvolutionState state,
                          Parameter base)
        Description copied from interface: Setup
        Sets up the object by reading it from the parameters stored in state, built off of the parameter base base. If an ancestor implements this method, be sure to call super.setup(state,base); before you do anything else.
      • initialPopulation

        public Population initialPopulation(EvolutionState state,
                                            int thread)
        Creates, populates, and returns a new population by making a new population, calling setup(...) on it, and calling populate(...) on it, assuming an unthreaded environment (thread 0). Obviously, this is an expensive method. It should only be called once typically in a run.
        Specified by:
        initialPopulation in class Initializer

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.