Schwefel

../../_images/Schwefel.png
class gob.benchmarks.schwefel.Schwefel[source]

Bases: Benchmark

The Schwefel function.

\(f(x) = 418.9828d - \sum_{i = 1}^d x_i \sin \left( \sqrt{|x_i|} \right)\).

Its minimum is \(0\) achieved at \(x = 420.9687\).

expr(x)[source]

The expression of the function.

Parameters:

x (array-like) – The point at which to evaluate the function.

Returns:

The value of the function at x.

Return type:

float