optymus.benchmark.Rastrigin¶
- class optymus.benchmark.Rastrigin[source]¶
Rastrigin Function
The Rastrigin function is a non-convex function used as a performance test problem for optimization algorithms. It is defined as:
\[f(x) = 20 + x_0^2 + x_1^2 - 10(\cos(2\pi x_0) + \cos(2\pi x_1))\]Reference: https://www.sfu.ca/~ssurjano/rastr.html
Methods
__init__()Attributes
BOUNDSNAMETRUE_MINIMUM