[−][src]Struct benchfun::single::Rastrigin
This is the Rastrigin 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:
Trait Implementations
impl Bounded for Rastrigin
[src]
const BOUNDS: (f64, f64)
[src]
The bounds of the canonical sphere optimization problem are infinite.
fn in_bounds(x: Vec<f64>) -> bool
[src]
impl NDimensional for Rastrigin
[src]
impl SingleObjective for Rastrigin
[src]
const MINIMUM: f64
[src]
The global minimum is constant and zero
fn f(x: Vec<f64>) -> f64
[src]
Function for evaluating
fn minimizer(n: usize) -> Vec<f64>
[src]
This function returns the minimizer (argument that will return the global minimum
fn check_minimizer(d: usize)
[src]
impl UnConstrained for Rastrigin
[src]
const CONSTRAINED: bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for Rastrigin
impl Send for Rastrigin
impl Sync for Rastrigin
impl Unpin for Rastrigin
impl UnwindSafe for Rastrigin
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,