Documentation of 'ec.Initializer' Java class
Initializer
ec

Class Initializer

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


    public abstract class Initializer
    extends java.lang.Object
    implements Singleton
    The Initializer is a singleton object whose job is to initialize the population at the beginning of the run. It does this by providing a population through the initialPopulation(...) method.

    Parameters

    pop
    classname, inherits or = ec.Population
    (the class for a new population)

    Parameter bases

    pop The base for a new population's set up parameters
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String P_POP
      parameter for a new population
    • Constructor Summary

      Constructors 
      Constructor and Description
      Initializer() 
    • Field Detail

      • P_POP

        public static final java.lang.String P_POP
        parameter for a new population
        See Also:
        Constant Field Values
    • Constructor Detail

      • Initializer

        public Initializer()
    • Method Detail

      • initialPopulation

        public abstract Population initialPopulation(EvolutionState state,
                                                     int thread)
        Creates and returns a new initial population for the evolutionary run. This is commonly done by setting up a Population (by calling setupPopulation below) then calling its populate() method. This method will likely only be called once in a run.
      • setupPopulation

        public abstract Population setupPopulation(EvolutionState state,
                                                   int thread)
        Loads a Population from the parameter file, sets it up, and returns it.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.