optymus.benchmark.Rosenbrock

class optymus.benchmark.Rosenbrock(dimension=2)[source]

Rosenbrock Function

The Rosenbrock function is a non-convex function used as a performance test problem for optimization algorithms. It is defined as:

\[f(x) = \sum_{i=1}^{n-1} [100(x_{i+1} - x_i^2)^2 + (1 - x_i)^2]\]

Reference: https://www.sfu.ca/~ssurjano/rosen.html

__init__(dimension=2)[source]

Initialize the Rosenbrock function.

Parameters:

dimension (int) – The number of dimensions (variables) of the function.

Methods

__init__([dimension])

Initialize the Rosenbrock function.

Attributes

BOUNDS

NAME

TRUE_MINIMUM