Class DifferentialEvolutionSelection
java.lang.Object
org.uma.jmetal.operator.selection.impl.DifferentialEvolutionSelection
- All Implemented Interfaces:
Serializable,Operator<List<DoubleSolution>,,List<DoubleSolution>> SelectionOperator<List<DoubleSolution>,List<DoubleSolution>>
public class DifferentialEvolutionSelection
extends Object
implements SelectionOperator<List<DoubleSolution>,List<DoubleSolution>>
Class implementing the selection operator used in DE: a number of different solutions are
returned from a population. The number of solutions is requested in the class constructor (by
default, its value is 3), and they must be also different from the one indicated by an index
(typically, the current solution being processed by a DE algorithm). This current solution can
belong to the returned list if the
selectCurrentSolution variable is set to True; in
this case, the current solution will be the last one of the returned list.- Author:
- Antonio J. Nebro
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorDifferentialEvolutionSelection(int numberOfSolutionsToSelect, boolean selectCurrentSolution) ConstructorDifferentialEvolutionSelection(BoundedRandomGenerator<Integer> randomGenerator, int numberOfSolutionsToSelect, boolean selectCurrentSolution) Constructor -
Method Summary
Modifier and TypeMethodDescriptionexecute(List<DoubleSolution> solutionList) Execute() methodvoidsetIndex(int index)
-
Constructor Details
-
DifferentialEvolutionSelection
public DifferentialEvolutionSelection()Constructor -
DifferentialEvolutionSelection
public DifferentialEvolutionSelection(int numberOfSolutionsToSelect, boolean selectCurrentSolution) Constructor -
DifferentialEvolutionSelection
public DifferentialEvolutionSelection(BoundedRandomGenerator<Integer> randomGenerator, int numberOfSolutionsToSelect, boolean selectCurrentSolution) Constructor
-
-
Method Details
-
setIndex
public void setIndex(int index) -
execute
Execute() method- Specified by:
executein interfaceOperator<List<DoubleSolution>,List<DoubleSolution>> - Parameters:
solutionList- The data to process
-