public class RouletteWheelSelectionTask extends ComputeTaskAdapter<LinkedHashMap<Long,Double>,List<Long>>
| Constructor and Description |
|---|
RouletteWheelSelectionTask(GAConfiguration cfg) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Map<ComputeJob,ClusterNode> |
map(List<ClusterNode> nodes,
LinkedHashMap<Long,Double> chromosomeKeyFitness) |
List<Long> |
reduce(List<ComputeJobResult> list)
Return list of parent Chromosomes.
|
ComputeJobResultPolicy |
result(ComputeJobResult res,
List<ComputeJobResult> rcvd) |
public RouletteWheelSelectionTask(GAConfiguration cfg)
cfg - GAConfiguration@NotNull public @NotNull Map<ComputeJob,ClusterNode> map(List<ClusterNode> nodes, LinkedHashMap<Long,Double> chromosomeKeyFitness) throws IgniteException
nodes - List of ClusterNode.chromosomeKeyFitness - Map of key/fitness score pairs.IgniteExceptionpublic List<Long> reduce(List<ComputeJobResult> list) throws IgniteException
list - List of ComputeJobResult.IgniteExceptionpublic ComputeJobResultPolicy result(ComputeJobResult res, List<ComputeJobResult> rcvd)
result in interface ComputeTask<LinkedHashMap<Long,Double>,List<Long>>result in class ComputeTaskAdapter<LinkedHashMap<Long,Double>,List<Long>>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.23-p1 Release Date : November 19 2025