jeco.kernel.algorithm.moga
Class NSGAII
java.lang.Object
jeco.kernel.algorithm.Algorithm
jeco.kernel.algorithm.moga.NSGAII
public class NSGAII
- 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
mutationOperator
protected MutationOperator mutationOperator
crossoverOperator
protected CrossoverOperator crossoverOperator
selectionOperator
protected SelectionOperator selectionOperator
NSGAII
public NSGAII(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
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)