-
Notifications
You must be signed in to change notification settings - Fork 0
Sphere
Description view source
The Sphere function is a commonly used benchmark for testing optimization algorithms. It is defined mathematically as:
Where Sphere.dimensionality) with a default value of 2. The
Here is a link to an interactive Desmos version we created : https://www.desmos.com/3d/wnvkpux9oy
Sphere().visualize()
- Unimodality: The function has a single global minimum, making it easier for optimization algorithms to find the optimal solution.
-
Global minimum: The global minimum is located at
$f(x^{*}=<0,...,0>)=0$ . -
Search space: Typically, it is evaluated over
$[-5.12, 5.12]$ for each dimension. - Smoothness: The function is smooth and differentiable, which is advantageous for gradient-based optimization methods.
This function is trivial for gradient-based optimizers, but not necessarily for others. As such, it can be used to measure how well an algorithm does compared to a gradient-based alternative. Similarly, a baseline can be established to quantitatively assess the exploration-exploitation properties of various algorithms.
The Sphere function is a well-known mathematical function used in optimization literature. More information can be found in relevant optimization textbooks and research papers.