Class NoDuplicatesEvolutionaryAlgorithm

  • All Implemented Interfaces:
    org.opt4j.core.optimizer.Optimizer

    public class NoDuplicatesEvolutionaryAlgorithm
    extends org.opt4j.optimizer.ea.EvolutionaryAlgorithm
    Copy of EvolutionaryAlgorithm that detects duplicates in the population and creates new random candidates to replace them.
    • Field Summary

      • Fields inherited from class org.opt4j.optimizer.ea.EvolutionaryAlgorithm

        alpha, individualFactory, lambda, mating, mu, selector
      • Fields inherited from class org.opt4j.core.optimizer.AbstractOptimizer

        archive, completer, control, iteration, iterationListeners, optimizing, population, stateListeners
    • Constructor Summary

      Constructors 
      Constructor Description
      NoDuplicatesEvolutionaryAlgorithm​(org.opt4j.core.optimizer.Population population, org.opt4j.core.optimizer.Archive archive, org.opt4j.core.IndividualFactory individualFactory, org.opt4j.core.optimizer.IndividualCompleter completer, org.opt4j.core.optimizer.Control control, org.opt4j.optimizer.ea.Selector selector, org.opt4j.optimizer.ea.Mating mating, org.opt4j.core.optimizer.Iteration generations, int alpha, int mu, int lambda)
    • Constructor Detail

      • NoDuplicatesEvolutionaryAlgorithm

        @Inject
        public NoDuplicatesEvolutionaryAlgorithm​(org.opt4j.core.optimizer.Population population,
                                                 org.opt4j.core.optimizer.Archive archive,
                                                 org.opt4j.core.IndividualFactory individualFactory,
                                                 org.opt4j.core.optimizer.IndividualCompleter completer,
                                                 org.opt4j.core.optimizer.Control control,
                                                 org.opt4j.optimizer.ea.Selector selector,
                                                 org.opt4j.optimizer.ea.Mating mating,
                                                 org.opt4j.core.optimizer.Iteration generations,
                                                 int alpha,
                                                 int mu,
                                                 int lambda)
    • Method Detail

      • optimize

        public void optimize()
                      throws org.opt4j.core.optimizer.TerminationException,
                             org.opt4j.core.optimizer.StopException
        Specified by:
        optimize in interface org.opt4j.core.optimizer.Optimizer
        Overrides:
        optimize in class org.opt4j.optimizer.ea.EvolutionaryAlgorithm
        Throws:
        org.opt4j.core.optimizer.TerminationException
        org.opt4j.core.optimizer.StopException