jmetal.problems.singleObjective
Class Rastrigin

java.lang.Object
  extended by jmetal.core.Problem
      extended by jmetal.problems.singleObjective.Rastrigin
All Implemented Interfaces:
java.io.Serializable

public class Rastrigin
extends Problem

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jmetal.core.Problem
length_, lowerLimit_, numberOfConstraints_, numberOfObjectives_, numberOfVariables_, problemName_, solutionType_, upperLimit_
 
Constructor Summary
Rastrigin(java.lang.String solutionType, java.lang.Integer numberOfVariables)
          Constructor Creates a default instance of the Rastrigin problem
 
Method Summary
 void evaluate(Solution solution)
          Evaluates a solution
 
Methods inherited from class jmetal.core.Problem
evaluateConstraints, getLength, getLowerLimit, getName, getNumberOfBits, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables, getPrecision, getPrecision, getSolutionType, getUpperLimit, setNumberOfVariables, setPrecision, setSolutionType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rastrigin

public Rastrigin(java.lang.String solutionType,
                 java.lang.Integer numberOfVariables)
          throws java.lang.ClassNotFoundException
Constructor Creates a default instance of the Rastrigin problem

Parameters:
numberOfVariables - Number of variables of the problem
solutionType - The solution type must "Real" or "BinaryReal".
Throws:
java.lang.ClassNotFoundException
Method Detail

evaluate

public void evaluate(Solution solution)
              throws JMException
Evaluates a solution

Specified by:
evaluate in class Problem
Parameters:
solution - The solution to evaluate
Throws:
JMException