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 BoundsCheckerBounds checker operator.protected CrossoverConfigured crossover.protected ExecutionConfiguration of the current execution.protected InitializerConfigured initializer.protected MutatorConfigured mutator if the algorithm does not use a pool of strategies/mutators.protected StringName of the algorithm.protected PopulationPopulation of individuals.protected StringPublication reference of the algorithm.protected IndividualSelected individual.protected SelectorConfigured selector.protected StoppingCriterionConfigured stopping criterion.protected IndividualTrial individual.protected IndividualMutant/donor individual.protected IndividualCurrent/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 voidExecuted 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 IndividualRuns 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.
-