Trait ka::SingleObjective[−][src]

```pub trait SingleObjective {
const MINIMUM: f64;

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

fn check_minimizer(d: usize) { ... }
}```

This is a trait that ensures consistent implementation of single objective benchmark functions

Associated Constants

`const MINIMUM: f64`[src]

The global minimum is constant and zero

Required methods

`fn f(x: Vec<f64>) -> f64`[src]

Function for evaluating the objective function

`fn minimizer(n: usize) -> Vec<f64>`[src]

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

Provided methods

`fn check_minimizer(d: usize)`[src]

This function is used for testing, and checks the correctness of the minimizer

Implementors

`impl SingleObjective for Ackley`[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

`impl SingleObjective for Griewank`[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

`impl SingleObjective for Matyas`[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

`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

`impl SingleObjective for Ridge`[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

`impl SingleObjective for Rosenbrock`[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

`impl SingleObjective for RosenbrockConst1`[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

`impl SingleObjective for RosenbrockConst2`[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

`impl SingleObjective for Salomon`[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

`impl SingleObjective for Sphere`[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

`impl SingleObjective for Zakharov`[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