jmetal.operators.selection
Class BestSolutionSelection

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

public class BestSolutionSelection
extends Selection

This class implements a selection operator used for selecting the best solution in a SolutionSet according to a given comparator

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jmetal.core.Operator
parameters_
 
Constructor Summary
BestSolutionSelection(java.util.HashMap<java.lang.String,java.lang.Object> parameters)
           
 
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

BestSolutionSelection

public BestSolutionSelection(java.util.HashMap<java.lang.String,java.lang.Object> parameters)
Method Detail

execute

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

Specified by:
execute in class Operator
Parameters:
object - Object representing a SolutionSet.
Returns:
the best solution found