public class EvolutionaryAlgorithm extends AbstractOptimizer
EvolutionaryAlgorithm is an implementation of an Evolutionary
Algorithm based on the operators Crossover and Mutate. It
uses a Selector for the mating and environmental selection.| Constructor and Description |
|---|
EvolutionaryAlgorithm(Population population,
Archive archive,
IndividualFactory individualFactory,
IndividualCompleter completer,
Control control,
Selector selector,
Mating mating,
Iteration iteration,
int alpha,
int mu,
int lambda)
Constructs an
EvolutionaryAlgorithm with a Population, an
Archive, an IndividualFactory, a
IndividualCompleter, a Control, a Selector, a
Mating, the number of generations, the population size, the
number of parents, the number of offspring, and a random number
generator. |
| Modifier and Type | Method and Description |
|---|---|
void |
optimize()
Starts the optimization process.
|
addOptimizerIterationListener, addOptimizerStateListener, getIteration, isRunning, removeOptimizerIterationListener, removeOptimizerStateListener, startOptimization, stopOptimization@Inject public EvolutionaryAlgorithm(Population population, Archive archive, IndividualFactory individualFactory, IndividualCompleter completer, Control control, Selector selector, Mating mating, Iteration iteration, int alpha, int mu, int lambda)
EvolutionaryAlgorithm with a Population, an
Archive, an IndividualFactory, a
IndividualCompleter, a Control, a Selector, a
Mating, the number of generations, the population size, the
number of parents, the number of offspring, and a random number
generator.population - the populationarchive - the archiveindividualFactory - the individual factorycompleter - the completercontrol - the controlselector - the selectormating - the matingiteration - the iteration counteralpha - the population sizemu - the number of parentslambda - the number of offspringpublic void optimize()
throws TerminationException,
StopException
OptimizerTerminationException - if the optimization is terminatedStopException - if the optimization is stopped