public abstract class GeneticAlgorithm
extends java.lang.Object
GeneticAlgorithm is the base clase for all genetic algorithm and programming
algorithms, including the simulate annealing based one. This class
is inherit by the following classes: AlgorithmGAPGen
,
AlgorithmGAPNiches
, AlgorithmGAPSteady
,
GeneticAlgorithmGenerational
, GeneticAlgorithmSteady
and
SimulatedAnnealing
.
Constructor and Description |
---|
GeneticAlgorithm() |
Modifier and Type | Method and Description |
---|---|
abstract GeneticIndividual |
evolve(int MAXITER)
abstract method for evolving the algorithm for a given number of iterations.
|
public abstract GeneticIndividual evolve(int MAXITER) throws invalidCrossover, invalidMutation, invalidOptim
abstract method for evolving the algorithm for a given number of iterations.
MAXITER
- an integer with the number of iterations torun in the evolucionGeneticIndividual
foundinvalidCrossover
- in case of unsupported crossover.invalidMutation
- in case of unsupported mutation.invalidOptim
- in case of local optimization operations.