Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

makeModifiedRastriginFunction

Rastrigin Function


Description

A modified version of the Rastrigin function following the formula:

f(\mathbf{x}) = ∑_{i=1}^{n} 10≤ft(1 + \cos(2π k_i \mathbf{x}_i)\right) + 2 k_i \mathbf{x}_i^2.

The box-constraints are given by \mathbf{x}_i \in [0, 1] for i = 1, …, n and k is a numerical vector. Deb et al. (see references) use, e.g., k = (2, 2, 3, 4) for n = 4. See the reference for details.

Usage

makeModifiedRastriginFunction(dimensions, k = rep(1, dimensions))

Arguments

dimensions

[integer(1)]
Size of corresponding parameter space.

k

[numeric]
Vector of numerical values of length dimensions. Default is rep(1, dimensions)

Value

[smoof_single_objective_function]

References

Kalyanmoy Deb and Amit Saha. Multimodal optimization using a bi- objective evolutionary algorithm. Evolutionary Computation, 20(1):27-62, 2012.


smoof

Single and Multi-Objective Optimization Test Functions

v1.6.0.2
BSD_2_clause + file LICENSE
Authors
Jakob Bossek [aut, cre], Pascal Kerschke [ctb]
Initial release
2020-02-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.