Package jeco.core.operator.selection
Class DiversificationRandom<T extends Variable<?>>
java.lang.Object
jeco.core.operator.selection.SelectionOperator<T>
jeco.core.operator.selection.DiversificationRandom<T>
- Type Parameters:
T
- Type of the variables of the solutions. This operator is designed to be used in metaheuristics that require a diversification mechanism, like Scatter Search or Genetic Algorithms.
Random diversification operator.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.DiversificationRandom
(Integer diversificationSize) Constructor. -
Method Summary
-
Field Details
-
DEFAULT_DIVERSIFICATION_RATIO
Default diversification ratio, as a percentage of the population size. -
diversificationSize
Size of the diversification set.
-
-
Constructor Details
-
DiversificationRandom
Constructor.- Parameters:
diversificationSize
- Size of the diversification set.
-
DiversificationRandom
public DiversificationRandom()Constructor.
-
-
Method Details
-
execute
Description copied from class:SelectionOperator
Execute the selection operator.- Specified by:
execute
in classSelectionOperator<T extends Variable<?>>
- Parameters:
solutions
- Set of solutions to select from.- Returns:
- Selected solutions.
-