jeco.kernel.algorithm.moga
Class SPEA2
java.lang.Object
jeco.kernel.algorithm.Algorithm
jeco.kernel.algorithm.moga.SPEA2
public class SPEA2
- extends Algorithm
Input parameters:
- MAX_GENERATIONS
- MAX_POPULATION_SIZE
Operators:
- CROSSOVER: Crossover operator
- MUTATION: Mutation operator
- SELECTION: Selection operator
- Author:
- José L. Risco-Martín
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxGenerations
protected int maxGenerations
maxPopulationSize
protected int maxPopulationSize
dominance
protected java.util.Comparator<Solution> dominance
currentGeneration
protected int currentGeneration
population
protected Solutions population
archive
protected Solutions archive
mutationOperator
protected MutationOperator mutationOperator
crossoverOperator
protected CrossoverOperator crossoverOperator
selectionOperator
protected SelectionOperator selectionOperator
K
protected int K
SPEA2
public SPEA2(Problem problem,
int maxPopulationSize,
int maxGenerations,
MutationOperator mutationOperator,
CrossoverOperator crossoverOperator,
SelectionOperator selectionOperator)
initialize
public void initialize()
- Specified by:
initialize
in class Algorithm
execute
public Solutions execute()
- Specified by:
execute
in class Algorithm
step
public void step()
- Specified by:
step
in class Algorithm
assignFitness
public void assignFitness(Solutions solutions)
reduceByFitness
public Solutions reduceByFitness(Solutions pop)
expand
public void expand(Solutions pop,
Solutions all,
int nElems)
reduce
public Solutions reduce(Solutions pop,
int maxSize)
setMutationOperator
public void setMutationOperator(MutationOperator mutationOperator)
setCrossoverOperator
public void setCrossoverOperator(CrossoverOperator crossoverOperator)
setSelectionOperator
public void setSelectionOperator(SelectionOperator selectionOperator)
setMaxGenerations
public void setMaxGenerations(int maxGenerations)
setMaxPopulationSize
public void setMaxPopulationSize(int maxPopulationSize)