The Sphere function is a simple unimodal test function commonly used to evaluate the performance of optimization algorithms. It has a single global minimum at the origin.
F01(x)Numeric scalar representing the function value.
Formula: $$f(x) = \sum_{i=1}^{n} x_i^2$$
Global minimum: \(f(0, 0, ..., 0) = 0\)
Characteristics:
Type: Unimodal
Separable: Yes
Differentiable: Yes
Convex: Yes
Default bounds: \([-100, 100]^n\)
Default dimensions: 50
test-functions for an overview of all test functions,
get_function_details to retrieve function parameters.