Skip to main content

Module single

Module single 

Source
Expand description

Single-objective benchmark functions, all minimised with optimum 0 unless noted.

Structs§

Tour
A symmetric travelling-salesperson instance over points in the plane.

Functions§

ellipsoid
The axis-parallel ellipsoid Σ 10^(6 (i-1)/(n-1)) x_i² with condition number 10^6, as in Hansen’s tutorial; optimum 0 at the origin. For n = 1 it is the sphere.
leading_ones
LeadingOnes as a cost: n minus the length of the leading run of ones; optimum 0.
one_max
OneMax as a cost: the number of zero bits; optimum 0 (all ones).
rastrigin
Rastrigin’s function 10 n + Σ (x_i² - 10 cos(2π x_i)); optimum 0 at the origin, highly multimodal.
rosenbrock
Rosenbrock’s function Σ 100 (x_{i+1} - x_i²)² + (1 - x_i)²; optimum 0 at (1, …, 1). For n >= 4 it has a second local minimum near (-1, 1, …, 1).
sphere
The sphere Σ x_i²; optimum 0 at the origin.