Documentation of 'ec.SelectionMethod' Java class
SelectionMethod
ec

Class SelectionMethod

    • Constructor Detail

      • SelectionMethod

        public SelectionMethod()
    • Method Detail

      • produces

        public boolean produces(EvolutionState state,
                                Population newpop,
                                int subpopulation,
                                int thread)
        A default version of produces -- this method always returns true under the assumption that the selection method works with all Fitnesses. If this isn't the case, you should override this to return your own assessment.
        Specified by:
        produces in class BreedingSource
      • produce

        public int produce(int min,
                           int max,
                           int start,
                           int subpopulation,
                           Individual[] inds,
                           EvolutionState state,
                           int thread)
        Description copied from class: BreedingSource
        Produces n individuals from the given subpopulation and puts them into inds[start...start+n-1], where n = Min(Max(q,min),max), where q is the "typical" number of individuals the BreedingSource produces in one shot, and returns n. max must be >= min, and min must be >= 1. For example, crossover might typically produce two individuals, tournament selection might typically produce a single individual, etc.
        Specified by:
        produce in class BreedingSource
      • produce

        public abstract int produce(int subpopulation,
                                    EvolutionState state,
                                    int thread)
        An alternative form of "produce" special to Selection Methods; selects an individual from the given subpopulation and returns its position in that subpopulation.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.