Documentation of 'ec.select.FitProportionateSelection' Java class
FitProportionateSelection
ec.select

Class FitProportionateSelection

  • All Implemented Interfaces:
    Prototype, Setup, RandomChoiceChooserD, java.io.Serializable, java.lang.Cloneable
    Direct Known Subclasses:
    BoltzmannSelection, SigmaScalingSelection


    public class FitProportionateSelection
    extends SelectionMethod
    Picks individuals in a population in direct proportion to their fitnesses as returned by their fitness() methods. This is expensive to set up and bring down, so it's not appropriate for steady-state evolution. If you're not familiar with the relative advantages of selection methods and just want a good one, use TournamentSelection instead. Not appropriate for multiobjective fitnesses.

    Note: Fitnesses must be non-negative. 0 is assumed to be the worst fitness.

    Typical Number of Individuals Produced Per produce(...) call
    Always 1.

    Default Base
    select.fitness-proportionate

    See Also:
    Serialized Form
    • Field Detail

      • P_FITNESSPROPORTIONATE

        public static final java.lang.String P_FITNESSPROPORTIONATE
        Default base
        See Also:
        Constant Field Values
      • fitnesses

        public double[] fitnesses
        Normalized, totalized fitnesses for the population
    • Constructor Detail

      • FitProportionateSelection

        public FitProportionateSelection()
    • Method Detail

      • defaultBase

        public Parameter defaultBase()
        Description copied from interface: Prototype
        Returns the default base for this prototype. This should generally be implemented by building off of the static base() method on the DefaultsForm object for the prototype's package. This should be callable during setup(...).
      • produce

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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.