Package dev.nm.analysis.function.special
Class Rastrigin
java.lang.Object
dev.nm.analysis.function.rn2r1.AbstractRealScalarFunction
dev.nm.analysis.function.special.Rastrigin
- All Implemented Interfaces:
Function<Vector,
,Double> RealScalarFunction
The Rastrigin function is a non-convex function used as a performance test problem for
optimization algorithms. It is a typical example of non-linear multimodal function. Finding the
minimum of this function is a fairly difficult problem due to its large search space and its
large number of local minima.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.nm.analysis.function.Function
Function.EvaluationException
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class dev.nm.analysis.function.rn2r1.AbstractRealScalarFunction
dimensionOfDomain, dimensionOfRange
-
Constructor Details
-
Rastrigin
public Rastrigin(int dim) Constructs a Rastrigin function.- Parameters:
dim
- the dimension of the Rastrigin function
-
-
Method Details
-
evaluate
Description copied from interface:Function
Evaluate the function f at x, where x is from the domain.- Parameters:
x
- x- Returns:
- f(x)
-