public class Spea2Fitness
extends java.lang.Object
| Constructor and Description |
|---|
Spea2Fitness(SolutionSet solutionSet)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SolutionSet |
environmentalSelection(int size)
Gets 'size' elements from a population of more than 'size' elements
using for this de enviromentalSelection truncation
|
void |
fitnessAssign()
Assigns fitness for all the solutions.
|
public Spea2Fitness(SolutionSet solutionSet)
SolutionSet.solutionSet - The SolutionSetpublic void fitnessAssign()
public SolutionSet environmentalSelection(int size)
size - The number of elements to get.