Package jeco.core.algorithms
Class ScatterSearch<V extends Variable<?>>
java.lang.Object
jeco.core.algorithms.Algorithm<V>
jeco.core.algorithms.ScatterSearch<V>
- Type Parameters:
V- Type of the variables
Scatter Search algorithm
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Integerprotected SelectionOperator<V> protected SimpleDominance<V> protected MutationOperator<V> protected Integerprotected Integerprotected Boolean -
Constructor Summary
ConstructorsConstructorDescriptionScatterSearch(Problem<V> problem, Integer maxPopulationSize, Integer maxGenerations, Boolean stopWhenSolved, SelectionOperator<V> diversificationOperator, MutationOperator<V> improvementOperator) Constructor -
Method Summary
Methods inherited from class jeco.core.algorithms.Algorithm
initialize, setProblem
-
Field Details
-
population
-
maxGenerations
-
maxPopulationSize
-
stopWhenSolved
-
currentGeneration
-
diversificationOperator
-
improvementOperator
-
dominance
-
-
Constructor Details
-
ScatterSearch
public ScatterSearch(Problem<V> problem, Integer maxPopulationSize, Integer maxGenerations, Boolean stopWhenSolved, SelectionOperator<V> diversificationOperator, MutationOperator<V> improvementOperator) Constructor- Parameters:
problem- The problem to solvemaxPopulationSize- The maximum population sizemaxGenerations- The maximum number of generationsstopWhenSolved- Stop when the optimal solution is founddiversificationOperator- The diversification operatorimprovementOperator- The improvement operator
-
-
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.
-
step
public void step()Description copied from class:AlgorithmExecutes one step of the algorithm -
execute
Description copied from class:AlgorithmExecutes the algorithm -
main
-