Learn R Programming

EmiR (version 1.0.4)

schwefel_func: Schwefel Function

Description

Implementation of n-dimensional Schwefel function.

Usage

schwefel_func(x)

Value

The value of the function.

Arguments

x

numeric or complex vector.

Details

On an n-dimensional domain it is defined by

f(x) = _i=1^n [ -x_i(|x_i|) ],f(x) = sum_1^n [ -x_i*sin(sqrt(|x_i|) ], and is usually evaluated on x_i [ -500, 500 ]x_i in [-500, 500], for all i=1,...,ni=1,...,n. The function has one global minimum at f(x) = -418.9829nf(x) = -418.9829n for x_i=420.9687x_i=420.9687 for all i=1,...,ni=1,...,n.

References

Schwefel1981EmiR