mod rosenbrock

module rosenbrock

N-dimensional Rosenbrock: classic banana-shaped valley benchmark.

Structs and Unions

struct Rosenbrock<const D: usize>

N-dimensional Rosenbrock: sum_{i=0}^{D-2} (100 * (x_{i+1} - x_i^2)^2 + (1 - x_i)^2). Domain [-2.048, 2.048]^D. Global minimum at x = (1, 1, ..., 1) with value 0.

Implementations

impl<const D: usize> Rosenbrock<D>

Functions

fn new() -> Self

Constructs a Rosenbrock objective in D dimensions.

Traits implemented

impl<const D: usize> Default for Rosenbrock<D>