Himmelblau function functor (for testing optimization). f(x,y) = (x^2 + y - 11)^2 + (x + y^2 - 7)^2 Has four local minima, all with f = 0: (3.0, 2.0), (-2.805118, 3.131312), (-3.779310, -3.283186), (3.584428, -1.848126)
More...
#include <MathUtils_FunctorVector.hxx>
Himmelblau function functor (for testing optimization). f(x,y) = (x^2 + y - 11)^2 + (x + y^2 - 7)^2 Has four local minima, all with f = 0: (3.0, 2.0), (-2.805118, 3.131312), (-3.779310, -3.283186), (3.584428, -1.848126)
◆ Gradient()
Evaluates the gradient of the Himmelblau function.
- Parameters
-
| [in] | theX | input vector |
| [out] | theG | gradient vector |
- Returns
- true (always succeeds)
◆ Value()
Evaluates the Himmelblau function.
- Parameters
-
| [in] | theX | input vector (must have length 2) |
| [out] | theY | function value |
- Returns
- true (always succeeds)
◆ Values()
Evaluates both value and gradient.
- Parameters
-
| [in] | theX | input vector |
| [out] | theY | function value |
| [out] | theG | gradient vector |
- Returns
- true (always succeeds)
The documentation for this class was generated from the following file: