Class NoDuplicatesEvolutionaryAlgorithm

java.lang.Object
org.opt4j.core.optimizer.AbstractOptimizer
org.opt4j.optimizer.ea.EvolutionaryAlgorithm
de.uka.ipd.sdq.dsexplore.opt4j.optimizer.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)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class org.opt4j.core.optimizer.AbstractOptimizer

    addOptimizerIterationListener, addOptimizerStateListener, getIteration, injectListeners, isRunning, nextIteration, removeOptimizerIterationListener, removeOptimizerStateListener, startOptimization, stopOptimization

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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