Dixon-Price

../../_images/Dixonprice.png
class gob.benchmarks.dixonprice.Dixonprice

Bases: Benchmark

The Dixon-Price function.

\(f(x) = (x_1 - 1)^2 + \sum_{i=1}^d i (2x_i^2 - x_{i-1})^2\).

Its minimum is \(0\) achieved at \(x_i = 2^\frac{2^i - 2}{2^i}\).

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