Package dealib.components.selectors
Class BinarySelector
java.lang.Object
dealib.components.selectors.BinarySelector
- All Implemented Interfaces:
Selector
BinarySelector is a class implementing a binary selection scheme over the
interface Selector.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Alicia Vazquez Ramos
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionselectIndividual
(Individual... candidates) Executes a binary scheme as a selector.toString()
Gets a string representing the visualization by console of the Selector.
-
Constructor Details
-
BinarySelector
Constructor.- Parameters:
exe
- Configurarion of the current execution.
-
-
Method Details
-
selectIndividual
public Individual selectIndividual(Individual... candidates) throws IncompatibleConfigurationException Executes a binary scheme as a selector. The candidates must be evaluated as a precondition before the use of this operator.- Specified by:
selectIndividual
in interfaceSelector
- Parameters:
candidates
- a set of candidates for selecting the best of them with a concrete selector operator.- Returns:
- S, the selected individual.
- Throws:
IncompatibleConfigurationException
- when selector is not enabled with the defined configuration or when the Evaluator used throws this exception because of an incorrect dimensionality of the problem.
-
toString
Gets a string representing the visualization by console of the Selector.
-