Documentation of 'ec.multiobjective.nsga2.NSGA2Evaluator' Java class
NSGA2Evaluator
ec.multiobjective.nsga2

Class NSGA2Evaluator

  • All Implemented Interfaces:
    Setup, Singleton, java.io.Serializable


    public class NSGA2Evaluator
    extends SimpleEvaluator
    The NSGA2Evaluator is a simple generational evaluator which evaluates every single member of the population (in a multithreaded fashion). Then it reduces the population size to an archive consisting of the best front ranks. When there isn't enough space to fit another front rank, individuals in that final front rank vie for the remaining slots in the archive based on their sparsity.

    The evaluator is also responsible for calculating the rank and sparsity values stored in the NSGA2MultiObjectiveFitness class and used largely for statistical information.

    NSGA-II has fixed archive size (the population size), and so ignores the 'elites' declaration. However it will adhere to the 'reevaluate-elites' parameter in SimpleBreeder to determine whether to force fitness reevaluation.

    See Also:
    Serialized Form
    • Field Detail

      • originalPopSize

        public int[] originalPopSize
        The original population size is stored here so NSGA2 knows how large to create the archive (it's the size of the original population -- keep in mind that NSGA2Breeder had made the population larger to include the children.
    • Constructor Detail

      • NSGA2Evaluator

        public NSGA2Evaluator()
    • 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.
        Specified by:
        setup in interface Setup
        Overrides:
        setup in class SimpleEvaluator
      • buildArchive

        public Individual[] buildArchive(EvolutionState state,
                                         int subpop)
        Build the auxiliary fitness data and reduce the subpopulation to just the archive, which is returned.
      • assignFrontRanks

        public java.util.ArrayList assignFrontRanks(Subpopulation subpop)
        Divides inds into ranks and assigns each individual's rank to be the rank it was placed into. Each front is an ArrayList.
      • assignSparsity

        public void assignSparsity(Individual[] front)
        Computes and assigns the sparsity values of a given front.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.