public class RouletteWheelSelectionJob extends ComputeJobAdapter
Constructor and Description |
---|
RouletteWheelSelectionJob(Double totalFitnessScore,
LinkedHashMap<Long,Double> map) |
Modifier and Type | Method and Description |
---|---|
Chromosome |
execute()
Perform Roulette Wheel selection
|
argument, arguments, call, cancel, isCancelled, setArguments
public RouletteWheelSelectionJob(Double totalFitnessScore, LinkedHashMap<Long,Double> map)
totalFitnessScore
- Total fitness scoremap
- Chromosome key / fitness score mappublic Chromosome execute() throws IgniteException
IgniteException
- If job execution caused an exception. This exception will be
returned in ComputeJobResult.getException()
method passed into
ComputeTask.result(ComputeJobResult, List)
task method on caller node.
If execution produces a RuntimeException
or Error
, then
it will be wrapped into IgniteCheckedException
.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024