Beale function functor (for testing optimization). f(x,y) = (1.5 - x + xy)^2 + (2.25 - x + xy^2)^2 + (2.625 - x + xy^3)^2 Global minimum at (3, 0.5) with f = 0.
More...
#include <MathUtils_FunctorVector.hxx>
Beale function functor (for testing optimization). f(x,y) = (1.5 - x + xy)^2 + (2.25 - x + xy^2)^2 + (2.625 - x + xy^3)^2 Global minimum at (3, 0.5) with f = 0.
◆ Gradient()
Evaluates the gradient of the Beale function.
- Parameters
-
| [in] | theX | input vector |
| [out] | theG | gradient vector |
- Returns
- true (always succeeds)
◆ Value()
Evaluates the Beale 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: