jmetal.operators.selection
Class RankingAndCrowdingSelection

java.lang.Object
  extended by jmetal.core.Operator
      extended by jmetal.operators.selection.Selection
          extended by jmetal.operators.selection.RankingAndCrowdingSelection
All Implemented Interfaces:
java.io.Serializable

public class RankingAndCrowdingSelection
extends Selection

This class implements a selection for selecting a number of solutions from a solutionSet. The solutions are taken by mean of its ranking and crowding ditance values. NOTE: if you use the default constructor, the problem has to be passed as a parameter before invoking the execute() method -- see lines 67 - 74

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jmetal.core.Operator
parameters_
 
Constructor Summary
RankingAndCrowdingSelection(java.util.HashMap<java.lang.String,java.lang.Object> parameters)
          Constructor
 
Method Summary
 java.lang.Object execute(java.lang.Object object)
          Performs the operation
 
Methods inherited from class jmetal.core.Operator
getParameter, setParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RankingAndCrowdingSelection

public RankingAndCrowdingSelection(java.util.HashMap<java.lang.String,java.lang.Object> parameters)
Constructor

Method Detail

execute

public java.lang.Object execute(java.lang.Object object)
                         throws JMException
Performs the operation

Specified by:
execute in class Operator
Parameters:
object - Object representing a SolutionSet.
Returns:
an object representing a SolutionSet with the selected parents
Throws:
JMException