Package jeco.core.algorithms
Class EvolutionaryStrategy<V extends Variable<?>>
java.lang.Object
jeco.core.algorithms.Algorithm<V>
jeco.core.algorithms.EvolutionaryStrategy<V>
Evolutionary Strategy algorithm.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SinglePointCrossover<V> Crossover operatorprotected intCurrent generationprotected SimpleDominance<V> Dominance operatorprotected intNumber of offspringprotected intMaximum number of generationsprotected intPopulation sizePopulationprotected MutationOperator<V> Mutation operatorprotected intRecombination offspring numberstatic final intRecombination offspring numberstatic final intstatic final intSelection typesprotected SelectionOperator<V> Selection operatorprotected intSelection typeprotected booleanStop if the optimal solution is found -
Constructor Summary
ConstructorsConstructorDescriptionEvolutionaryStrategy(Problem<V> problem, MutationOperator<V> mutationOperator, int mu, int lambda, int maxGenerations) ConstructorEvolutionaryStrategy(Problem<V> problem, MutationOperator<V> mutationOperator, int mu, int rho, int selectionType, int lambda, int maxGenerations, boolean stopWhenSolved) Constructor -
Method Summary
Methods inherited from class jeco.core.algorithms.Algorithm
initialize, setProblem
-
Field Details
-
SELECTION_PLUS
public static final int SELECTION_PLUSSelection types- See Also:
-
SELECTION_DEFAULT
public static final int SELECTION_DEFAULT- See Also:
-
RHO_DEFAULT
public static final int RHO_DEFAULTRecombination offspring number- See Also:
-
stopWhenSolved
protected boolean stopWhenSolvedStop if the optimal solution is found -
maxGenerations
protected int maxGenerationsMaximum number of generations -
mu
protected int muPopulation size -
selectionType
protected int selectionTypeSelection type -
rho
protected int rhoRecombination offspring number -
lambda
protected int lambdaNumber of offspring -
dominance
Dominance operator -
currentGeneration
protected int currentGenerationCurrent generation -
muPopulation
Population -
mutationOperator
Mutation operator -
crossoverOperator
Crossover operator -
selectionOperator
Selection operator
-
-
Constructor Details
-
EvolutionaryStrategy
public EvolutionaryStrategy(Problem<V> problem, MutationOperator<V> mutationOperator, int mu, int rho, int selectionType, int lambda, int maxGenerations, boolean stopWhenSolved) Constructor- Parameters:
problem- Problem to solvemutationOperator- Mutation operatormu- Population sizerho- Recombination offspring numberselectionType- Selection typelambda- Number of offspringmaxGenerations- Maximum number of generationsstopWhenSolved- Stop if the optimal solution is found
-
EvolutionaryStrategy
public EvolutionaryStrategy(Problem<V> problem, MutationOperator<V> mutationOperator, int mu, int lambda, int maxGenerations) Constructor- Parameters:
problem- Problem to solvemutationOperator- Mutation operatormu- Population sizelambda- Number of offspringmaxGenerations- Maximum number of generations
-
-
Method Details
-
initialize
Description copied from class:AlgorithmInitializes the algorithm- Specified by:
initializein classAlgorithm<V extends Variable<?>>- Parameters:
initialSolutions- initial population. If null, a random population is generated.
-
execute
Description copied from class:AlgorithmExecutes the algorithm -
step
public void step()Description copied from class:AlgorithmExecutes one step of the algorithm -
main
-