Struct optimization::problems::Rosenbrock [] [src]

pub struct Rosenbrock { /* fields omitted */ }

Two-dimensional Rosenbrock function.

A non-convex function with its global minimum inside a long, narrow, parabolic shaped flat valley:

f(x, y) = (a - x)² + b (y - x²)²

Global minimum: f(a, a²) = 0

Methods

impl Rosenbrock
[src]

Creates a new Rosenbrock function given a and b, commonly definied with 1 and 100, respectively, which also corresponds to the default.

Trait Implementations

impl Debug for Rosenbrock
[src]

Formats the value using the given formatter.

impl Copy for Rosenbrock
[src]

impl Clone for Rosenbrock
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Rosenbrock
[src]

Returns the "default value" for a type. Read more

impl Function for Rosenbrock
[src]

Computes the objective function at a given position x, i.e., f(x) = y.

impl Function1 for Rosenbrock
[src]

Computes the gradient of the objective function at a given position x, i.e., ∀ᵢ ∂/∂xᵢ f(x) = ∇f(x). Read more

impl Problem for Rosenbrock
[src]

Returns the dimensionality of the input domain.

Returns the input domain of the function in terms of upper and lower, respectively, for each input dimension. Read more

Returns the position as well as the value of the global minimum.

Generates a random and feasible position to start a minimization.

Tests whether the supplied position is legal for this function.