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 Integer
protected SelectionOperator
<V> protected SimpleDominance
<V> protected MutationOperator
<V> protected Integer
protected Integer
protected 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:Algorithm
Initializes the algorithm- Specified by:
initialize
in classAlgorithm<V extends Variable<?>>
- Parameters:
initialSolutions
- initial population. If null, a random population is generated.
-
step
public void step()Description copied from class:Algorithm
Executes one step of the algorithm -
execute
Description copied from class:Algorithm
Executes the algorithm -
main
-