Trid¶

- class gob.benchmarks.trid.Trid¶
Bases:
Benchmark
The Trid function. The function is normalized according to the dimension to ensure consistency in the global minima.
\(f(x) = \frac{1}{d(d+4)(d-1)} \left(\sum_{i=1}^d (x_i - 1)^2 - \sum_{i=2}^d x_i x_{i-1}\right)\).
Its minimum is \(-\frac{1}{6}\) achieved at \(x_i = i(d + 1 - 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