Zakharov

../../_images/Zakharov.png
class gob.benchmarks.zakharov.Zakharov

Bases: Benchmark

The Zakharov function.

\(f(x) = \sum_{i=1}^d x_i^2 + \left(\sum_{i=1}^d \frac{1}{2} i x_i\right)^2 + \left(\sum_{i=1}^d \frac{1}{2} i x_i\right)^4\).

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

expr(x)

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