Package dealib.algorithms
Class Algorithm
java.lang.Object
dealib.algorithms.Algorithm
Algorithm is an abstract class representing the basic scheme of an algorithm
of differential evolution.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Alicia Vazquez Ramos
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BoundsChecker
Bounds checker operator.protected Crossover
Configured crossover.protected Execution
Configuration of the current execution.protected Initializer
Configured initializer.protected Mutator
Configured mutator if the algorithm does not use a pool of strategies/mutators.protected String
Name of the algorithm.protected Population
Population of individuals.protected String
Publication reference of the algorithm.protected Individual
Selected individual.protected Selector
Configured selector.protected StoppingCriterion
Configured stopping criterion.protected Individual
Trial individual.protected Individual
Mutant/donor individual.protected Individual
Current/target individual. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets the name of the Algorithm.Gets the publication reference of the Algorithm.protected abstract void
Executed before running an execution of the Algorithm, it is the place were the initialization process of the components which are going to be used by the Algorithm takes place.run()
Runs an execution of the algorithm after an initialization process of its components.protected abstract Individual
Runs the algorithm over the defined configuration.toString()
Gets a string representing the visualization by console of the Algorithm.
-
Field Details
-
name
Name of the algorithm. -
reference
Publication reference of the algorithm. -
exe
Configuration of the current execution. -
X
Current/target individual. -
V
Mutant/donor individual. -
U
Trial individual. -
S
Selected individual. -
p
Population of individuals. -
stopCriterion
Configured stopping criterion. -
initializer
Configured initializer. -
mutator
Configured mutator if the algorithm does not use a pool of strategies/mutators. -
crossover
Configured crossover. -
selector
Configured selector. -
checker
Bounds checker operator.
-
-
Constructor Details
-
Algorithm
Constructor of an Algorithm given the name, the publication reference and the current configuration of the execution.- Parameters:
name
- name of the Algorithm.reference
- reference of the publication of the Algorithm.exe
- configuration of the current execution.
-
-
Method Details
-
run
Runs an execution of the algorithm after an initialization process of its components.- Returns:
- Individual representing the solution of the optimization process.
- Throws:
IncompatibleConfigurationException
- if an incompatibility is detected.
-
runAlgorithm
Runs the algorithm over the defined configuration.- Returns:
- Individual representing the solution of the optimization process.
- Throws:
IncompatibleConfigurationException
- if an incompatibility is detected.
-
initAlgorithmParams
protected abstract void initAlgorithmParams()Executed before running an execution of the Algorithm, it is the place were the initialization process of the components which are going to be used by the Algorithm takes place. -
getName
Gets the name of the Algorithm.- Returns:
- the name of the Algorithm.
-
getReference
Gets the publication reference of the Algorithm.- Returns:
- the publication reference of the Algorothm.
-
toString
Gets a string representing the visualization by console of the Algorithm.
-