[][src]Trait benchmark_functions::Function

pub trait Function {
    const BOUNDS: (f64, f64);
    const MINIMUM: f64;

    fn f(x: Vec<f64>) -> f64;
fn minimizer(n: usize) -> Vec<f64>; }

This is a trait that ensures consistent implementation of different benchmark functions

Associated Constants

const BOUNDS: (f64, f64)

The bounds of the canonical optimization problem

const MINIMUM: f64

The global minimum is constant and zero

Loading content...

Required methods

fn f(x: Vec<f64>) -> f64

Function for evaluating the objective function

fn minimizer(n: usize) -> Vec<f64>

This function returns the minimizer (argument that will return the global minimum)

Loading content...

Implementors

impl Function for Ackley[src]

const BOUNDS: (f64, f64)[src]

The bounds of the canonical sphere optimization problem are infinite.

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

impl Function for Griewank[src]

const BOUNDS: (f64, f64)[src]

The bounds of the canonical sphere optimization problem are infinite.

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

impl Function for Matyas[src]

const BOUNDS: (f64, f64)[src]

The bounds of the canonical sphere optimization problem are infinite.

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

impl Function for Rastrigin[src]

const BOUNDS: (f64, f64)[src]

The bounds of the canonical sphere optimization problem are infinite.

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

impl Function for Ridge[src]

const BOUNDS: (f64, f64)[src]

The bounds of the canonical sphere optimization problem are infinite.

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

impl Function for Rosenbrock[src]

const BOUNDS: (f64, f64)[src]

The bounds of the canonical sphere optimization problem are infinite.

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

impl Function for Salomon[src]

const BOUNDS: (f64, f64)[src]

The bounds of the canonical sphere optimization problem are infinite.

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

impl Function for Sphere[src]

const BOUNDS: (f64, f64)[src]

The bounds of the canonical sphere optimization problem are infinite.

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

impl Function for Zakharov[src]

const BOUNDS: (f64, f64)[src]

The bounds of the canonical sphere optimization problem are infinite.

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

Loading content...