|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
I - individual typepublic interface EvolutionaryAlgorithm<I>
An evolutionary algorithm function.
| Method Summary | |
|---|---|
void |
addEvolutionaryAlgorithmListener(EvolutionaryAlgorithmListener<I> l)
Add the specified evolutionary algorithm listener. |
Collection<I> |
evolve(Collection<I> individuals,
ExitStrategy<I> exitStrategy,
Recombination<I> recombination,
Mutation<I> mutation,
Fitness<I> fitness,
Selection<I> selection)
Evolve the specified population of individuals, using all of the specified exit strategy, recombination, mutation, fitness, and selection functions. |
int |
getEvolutionaryAlgorithmListenerCount()
Return the number of evolutionary algorithm listeners registered to this evolutionary algorithm. |
EvolutionaryAlgorithmListener<I>[] |
getEvolutionaryAlgorithmListeners()
Return an array of evolutionary algorithm listeners registered to this evolutionary algorithm. |
void |
removeEvolutionaryAlgorithmListener(EvolutionaryAlgorithmListener<I> l)
Remove the specified evolutionary algorithm listener. |
| Method Detail |
|---|
Collection<I> evolve(Collection<I> individuals,
ExitStrategy<I> exitStrategy,
Recombination<I> recombination,
Mutation<I> mutation,
Fitness<I> fitness,
Selection<I> selection)
individuals - population of individuals, must not be null and must contain
at least one individualexitStrategy - exit strategy function, must not be nullrecombination - recombination function, must not be nullmutation - mutation function, must not be nullfitness - fitness function, must not be nullselection - selection function, must not be null
void addEvolutionaryAlgorithmListener(EvolutionaryAlgorithmListener<I> l)
l - evolutionary algorithm listener to addvoid removeEvolutionaryAlgorithmListener(EvolutionaryAlgorithmListener<I> l)
l - evolutionary algorithm listener to removeint getEvolutionaryAlgorithmListenerCount()
EvolutionaryAlgorithmListener<I>[] getEvolutionaryAlgorithmListeners()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||