Rosenbrock function functor (for testing optimization). f(x,y) = (a - x)^2 + b*(y - x^2)^2 Default: a = 1, b = 100 Global minimum at (a, a^2) = (1, 1) with f = 0.
More...
#include <MathUtils_FunctorVector.hxx>
Rosenbrock function functor (for testing optimization). f(x,y) = (a - x)^2 + b*(y - x^2)^2 Default: a = 1, b = 100 Global minimum at (a, a^2) = (1, 1) with f = 0.
Usage:
Rosenbrock function functor (for testing optimization). f(x,y) = (a - x)^2 + b*(y - x^2)^2 Default: a...
Definition MathUtils_FunctorVector.hxx:253
STL input iterator that wraps an OCCT More()/Next() iterator.
Definition NCollection_ForwardRange.hxx:142
VectorResult BFGS(Function &theFunc, const math_Vector &theStartingPoint, const Config &theConfig=Config())
BFGS (Broyden-Fletcher-Goldfarb-Shanno) quasi-Newton method. One of the most effective algorithms for...
Definition MathOpt_BFGS.hxx:58
◆ Rosenbrock()
| MathUtils::Rosenbrock::Rosenbrock |
( |
double | theA = 1.0, |
|
|
double | theB = 100.0 ) |
|
inline |
Constructor with parameters.
- Parameters
-
| theA | parameter a (default 1.0) |
| theB | parameter b (default 100.0) |
◆ Gradient()
Evaluates the gradient of the Rosenbrock function.
- Parameters
-
| [in] | theX | input vector |
| [out] | theG | gradient vector |
- Returns
- true if evaluation succeeded
◆ Value()
Evaluates the Rosenbrock function.
- Parameters
-
| [in] | theX | input vector (must have length 2) |
| [out] | theY | function value |
- Returns
- true if evaluation succeeded
◆ Values()
Evaluates both value and gradient.
- Parameters
-
| [in] | theX | input vector |
| [out] | theY | function value |
| [out] | theG | gradient vector |
- Returns
- true if evaluation succeeded
The documentation for this class was generated from the following file: