jmetal.metaheuristics.randomSearch
Class RandomSearch

java.lang.Object
  extended by jmetal.core.Algorithm
      extended by jmetal.metaheuristics.randomSearch.RandomSearch
All Implemented Interfaces:
java.io.Serializable

public class RandomSearch
extends Algorithm

This class implements a simple random search algorithm.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jmetal.core.Algorithm
inputParameters_, operators_, problem_
 
Constructor Summary
RandomSearch(Problem problem)
          Constructor
 
Method Summary
 SolutionSet execute()
          Runs the RandomSearch algorithm.
 
Methods inherited from class jmetal.core.Algorithm
addOperator, getInputParameter, getOperator, getOutputParameter, getProblem, setInputParameter, setOutputParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomSearch

public RandomSearch(Problem problem)
Constructor

Parameters:
problem - Problem to solve
Method Detail

execute

public SolutionSet execute()
                    throws JMException,
                           java.lang.ClassNotFoundException
Runs the RandomSearch algorithm.

Specified by:
execute in class Algorithm
Returns:
a SolutionSet that is a set of solutions as a result of the algorithm execution
Throws:
JMException
java.lang.ClassNotFoundException