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(xi2−10cos(2πxi)).[REMOVEME2]
The box-constraints are given by xi∈[−5.12,5.12] for i=1,…,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=1∑n(xi2−10cos(2πxi)).
The box-constraints are given by xi∈[−5.12,5.12] for i=1,…,n.
References
L. A. Rastrigin. Extremal control systems. Theoretical Foundations of Engineering Cybernetics Series. Nauka, Moscow, 1974.