Class RandomSelection<S extends Solution<?>>
java.lang.Object
org.uma.jmetal.component.catalogue.ea.selection.impl.RandomSelection<S>
- Type Parameters:
S-
- All Implemented Interfaces:
Selection<S>
Randomly select a number of solutions from a list, with or without replacement
- Author:
- Antonio J. Nebro (ajnebro@uma.es)
-
Constructor Summary
ConstructorsConstructorDescriptionRandomSelection(int numberOfElementsToSelect) RandomSelection(int numberOfElementsToSelect, boolean withReplacement) RandomSelection(int numberOfElementsToSelect, boolean withReplacement, BoundedRandomGenerator<Integer> pseudoRandomGenerator) Constructor The check of invalid parameter values are omitted assuming that they are applied in theListUtils.randomSelectionWithoutReplacement(int, List)andListUtils.randomSelectionWithReplacement(int, List)methods used in the implementation of methodselect(List) -
Method Summary
Modifier and TypeMethodDescriptionintboolean
-
Constructor Details
-
RandomSelection
public RandomSelection(int numberOfElementsToSelect) -
RandomSelection
public RandomSelection(int numberOfElementsToSelect, boolean withReplacement) -
RandomSelection
public RandomSelection(int numberOfElementsToSelect, boolean withReplacement, BoundedRandomGenerator<Integer> pseudoRandomGenerator) Constructor The check of invalid parameter values are omitted assuming that they are applied in theListUtils.randomSelectionWithoutReplacement(int, List)andListUtils.randomSelectionWithReplacement(int, List)methods used in the implementation of methodselect(List)- Parameters:
numberOfElementsToSelect-withReplacement-pseudoRandomGenerator-
-
-
Method Details