Documentation of 'org.jgap.gp.impl.StaticPopulationCreator' Java class
StaticPopulationCreator
org.jgap.gp.impl

Class StaticPopulationCreator

  • All Implemented Interfaces:
    IPopulationCreator


    public class StaticPopulationCreator
    extends java.lang.Object
    implements IPopulationCreator
    Creates a population by copying a given population into it.
    Since:
    3.3.3
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void initialize(GPPopulation a_pop, java.lang.Class[] a_types, java.lang.Class[][] a_argTypes, CommandGene[][] a_nodeSets, int[] a_minDepths, int[] a_maxDepths, int a_maxNodes, boolean[] a_fullModeAllowed)
      Initializes the given population.
      • Methods inherited from class java.lang.Object

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

      • StaticPopulationCreator

        public StaticPopulationCreator()
        Default constructor, mainly used for dynamic instantiation.
        Since:
        3.3.3
      • StaticPopulationCreator

        public StaticPopulationCreator(GPPopulation a_pop)
        Parameters:
        a_pop - population containing the elements to be preset
        Since:
        3.3.3
    • Method Detail

      • initialize

        public void initialize(GPPopulation a_pop,
                               java.lang.Class[] a_types,
                               java.lang.Class[][] a_argTypes,
                               CommandGene[][] a_nodeSets,
                               int[] a_minDepths,
                               int[] a_maxDepths,
                               int a_maxNodes,
                               boolean[] a_fullModeAllowed)
                        throws InvalidConfigurationException
        Initializes the given population.
        Specified by:
        initialize in interface IPopulationCreator
        Parameters:
        a_pop - the population to initialize
        a_types - the type for each chromosome, the length of the array represents the number of chromosomes
        a_argTypes - the types of the arguments to each chromosome, must be an array of arrays, the first dimension of which is the number of chromosomes and the second dimension of which is the number of arguments to the chromosome
        a_nodeSets - the nodes which are allowed to be used by each chromosome, must be an array of arrays, the first dimension of which is the number of chromosomes and the second dimension of which is the number of nodes
        a_minDepths - contains the minimum depth allowed for each chromosome
        a_maxDepths - contains the maximum depth allowed for each chromosome
        a_maxNodes - reserve space for a_maxNodes number of nodes
        a_fullModeAllowed - array of boolean values. For each chromosome there is one value indicating whether the full mode for creating chromosome generations during evolution is allowed (true) or not (false)
        Throws:
        InvalidConfigurationException - in case of any error
        Since:
        3.3.3

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.