Struct optimization::problems::Sphere [] [src]

pub struct Sphere {
    // some fields omitted
}

n-dimensional Sphere function.

It is continuous, convex and unimodal:

f(x) = ∑ᵢ xᵢ²

Global minimum: f(0,...,0) = 0

Methods

impl Sphere

fn new(dimensions: usize) -> Sphere

Trait Implementations

impl Default for Sphere

fn default() -> Self

impl Function for Sphere

fn value(&self, x: &[f64]) -> f64

impl Function1 for Sphere

fn gradient(&self, x: &[f64]) -> Vec<f64>

impl Problem for Sphere

fn dimensions(&self) -> usize

fn domain(&self) -> Vec<(f64, f64)>

fn minimum(&self) -> (Vec<f64>, f64)

fn random_start(&self) -> Vec<f64>

Derived Implementations

impl Clone for Sphere

fn clone(&self) -> Sphere

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for Sphere

impl Debug for Sphere

fn fmt(&self, __arg_0: &mut Formatter) -> Result