The sphere function is arguably the simplest test function. It is defined as
sphere_function(dimensions)
dimensions
Size of parameter space.
f(x) = x'x.
A soo_function.
soo_function