This is the Sphere function.
The function is borrowed from here. Although the function accepts a vector with an arbitrary number of inputs, this is what it looks like in 2D:
impl NDimensional for Sphere[src]
impl SingleObjective for Sphere[src]
The global minimum is constant and zero
Function for evaluating
This function returns the minimizer (argument that will return the global minimum
fn check_minimizer(d: usize)[src]
impl UnConstrained for Sphere[src]
impl RefUnwindSafe for Sphere
impl UnwindSafe for Sphere
type Error = Infallible
The type returned in the event of a conversion error.