jmetal.util
Class Spea2Fitness

java.lang.Object
  extended by jmetal.util.Spea2Fitness

public class Spea2Fitness
extends java.lang.Object

This class implements some facilities for calculating the Spea2 fitness


Constructor Summary
Spea2Fitness(SolutionSet solutionSet)
          Constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Spea2Fitness

public Spea2Fitness(SolutionSet solutionSet)
Constructor. Creates a new instance of Spea2Fitness for a given SolutionSet.

Parameters:
solutionSet - The SolutionSet
Method Detail

fitnessAssign

public void fitnessAssign()
Assigns fitness for all the solutions.


environmentalSelection

public SolutionSet environmentalSelection(int size)
Gets 'size' elements from a population of more than 'size' elements using for this de enviromentalSelection truncation

Parameters:
size - The number of elements to get.