Class RastriginFunction
java.lang.Object
planner.utils.evaluators.testfunctions.TestFunction
planner.utils.evaluators.testfunctions.RastriginFunction
- All Implemented Interfaces:
Evaluator
RastriginFunction is a class implementing the Rastrigin's function over the
TestFunction abstract base class.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Alicia Vazquez Ramos
-
Field Summary
Fields inherited from class planner.utils.evaluators.testfunctions.TestFunction
exe
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RastriginFunction
Constructor.- Parameters:
exe
- configuration of the current execution.
-
-
Method Details
-
evaluate
public double evaluate(double[] genotype) Computes the Rastrigin's function given a candidate solution.- Parameters:
genotype
- candidate solution.- Returns:
- fitness of the candidate solution.
-
toString
Gets a string representing the visualization by console of the Test Function.
-