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
public class Rastrigin extends AbstractRealScalarFunction
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:
- Wikipedia: Rastrigin function
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface dev.nm.analysis.function.Function
Function.EvaluationException
-
-
Constructor Summary
Constructors Constructor Description Rastrigin(int dim)
Constructs a Rastrigin function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
evaluate(Vector x)
Evaluate the function f at x, where x is from the domain.-
Methods inherited from class dev.nm.analysis.function.rn2r1.AbstractRealScalarFunction
dimensionOfDomain, dimensionOfRange
-
-