makeRastriginFunction function

Rastrigin Function

Rastrigin Function

One of the most popular single-objective test functions consists of many local optima and is thus highly multimodal with a global structure. The implementation follows the formula [REMOVE_ME]f(x)=10n+i=1n(xi210cos(2πxi)).[REMOVEME2] f(\mathbf{x}) = 10n + \sum_{i=1}^{n} \left(\mathbf{x}_i^2 - 10 \cos(2\pi \mathbf{x}_i)\right). [REMOVE_ME_2]

The box-constraints are given by xi[5.12,5.12]\mathbf{x}_i \in [-5.12, 5.12] for i=1,,ni = 1, \ldots, n.

makeRastriginFunction(dimensions)

Arguments

  • dimensions: [integer(1)]

    Size of corresponding parameter space.

Returns

[smoof_single_objective_function]

Description

One of the most popular single-objective test functions consists of many local optima and is thus highly multimodal with a global structure. The implementation follows the formula

f(x)=10n+i=1n(xi210cos(2πxi)). f(\mathbf{x}) = 10n + \sum_{i=1}^{n} \left(\mathbf{x}_i^2 - 10 \cos(2\pi \mathbf{x}_i)\right).

The box-constraints are given by xi[5.12,5.12]\mathbf{x}_i \in [-5.12, 5.12] for i=1,,ni = 1, \ldots, n.

References

L. A. Rastrigin. Extremal control systems. Theoretical Foundations of Engineering Cybernetics Series. Nauka, Moscow, 1974.

  • Maintainer: Jakob Bossek
  • License: BSD_2_clause + file LICENSE
  • Last published: 2023-03-10