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 int
Current generationprotected SimpleDominance
<V> Dominance operatorprotected int
Number of offspringprotected int
Maximum number of generationsprotected int
Population sizePopulationprotected MutationOperator
<V> Mutation operatorprotected int
Recombination offspring numberstatic final int
Recombination offspring numberstatic final int
static final int
Selection typesprotected SelectionOperator
<V> Selection operatorprotected int
Selection typeprotected boolean
Stop 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:Algorithm
Initializes the algorithm- Specified by:
initialize
in classAlgorithm<V extends Variable<?>>
- Parameters:
initialSolutions
- initial population. If null, a random population is generated.
-
execute
Description copied from class:Algorithm
Executes the algorithm -
step
public void step()Description copied from class:Algorithm
Executes one step of the algorithm -
main
-