Class RandomSelection<S extends Solution<?>>
java.lang.Object
org.uma.jmetal.component.catalogue.ea.selection.impl.RandomSelection<S>
-
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
-
select
-
withReplacement
public boolean withReplacement() -
getNumberOfElementsToSelect
public int getNumberOfElementsToSelect()
-