Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
MathUtils::Beale Class Reference

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>

Public Member Functions

bool Value (const math_Vector &theX, double &theY) const
 Evaluates the Beale function.
 
bool Gradient (const math_Vector &theX, math_Vector &theG) const
 Evaluates the gradient of the Beale function.
 
bool Values (const math_Vector &theX, double &theY, math_Vector &theG) const
 Evaluates both value and gradient.
 

Detailed Description

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.

Member Function Documentation

◆ Gradient()

bool MathUtils::Beale::Gradient ( const math_Vector & theX,
math_Vector & theG ) const
inline

Evaluates the gradient of the Beale function.

Parameters
[in]theXinput vector
[out]theGgradient vector
Returns
true (always succeeds)

◆ Value()

bool MathUtils::Beale::Value ( const math_Vector & theX,
double & theY ) const
inline

Evaluates the Beale function.

Parameters
[in]theXinput vector (must have length 2)
[out]theYfunction value
Returns
true (always succeeds)

◆ Values()

bool MathUtils::Beale::Values ( const math_Vector & theX,
double & theY,
math_Vector & theG ) const
inline

Evaluates both value and gradient.

Parameters
[in]theXinput vector
[out]theYfunction value
[out]theGgradient vector
Returns
true (always succeeds)

The documentation for this class was generated from the following file: