Open CASCADE Technology
7.7.0
|
Functional for search of extremum of the square Euclidean distance between point P and surface S, starting from approximate solution (u0, v0). More...
#include <Extrema_FuncPSDist.hxx>
Public Member Functions | |
Extrema_FuncPSDist (const Adaptor3d_Surface &theS, const gp_Pnt &theP) | |
Constructor. More... | |
Standard_Integer | NbVariables () const override |
Number of variables. More... | |
Standard_Boolean | Value (const math_Vector &X, Standard_Real &F) override |
Value. More... | |
Standard_Boolean | Gradient (const math_Vector &X, math_Vector &G) override |
Gradient. More... | |
Standard_Boolean | Values (const math_Vector &X, Standard_Real &F, math_Vector &G) override |
Value and gradient. More... | |
![]() | |
virtual Standard_Integer | GetStateNumber () |
return the state of the function corresponding to the latestt call of any methods associated to the function. This function is called by each of the algorithms described later which define the function Integer Algorithm::StateNumber(). The algorithm has the responsibility to call this function when it has found a solution (i.e. a root or a minimum) and has to maintain the association between the solution found and this StateNumber. Byu default, this method returns 0 (which means for the algorithm: no state has been saved). It is the responsibility of the programmer to decide if he needs to save the current state of the function and to return an Integer that allows retrieval of the state. More... | |
virtual | ~math_MultipleVarFunction () |
Functional for search of extremum of the square Euclidean distance between point P and surface S, starting from approximate solution (u0, v0).
The class inherits math_MultipleVarFunctionWithGradient and thus is intended for use in math_BFGS algorithm.
The criteria is: F = SquareDist(P, S(u, v)) - > min
The first derivative are: F1(u,v) = (S(u,v) - P) * Su F2(u,v) = (S(u,v) - P) * Sv
Su and Sv are first derivatives of the surface, * symbol means dot product.
Extrema_FuncPSDist::Extrema_FuncPSDist | ( | const Adaptor3d_Surface & | theS, |
const gp_Pnt & | theP | ||
) |
Constructor.
|
overridevirtual |
Gradient.
Implements math_MultipleVarFunctionWithGradient.
|
overridevirtual |
Number of variables.
Implements math_MultipleVarFunctionWithGradient.
|
overridevirtual |
Value.
Implements math_MultipleVarFunctionWithGradient.
|
overridevirtual |
Value and gradient.
Implements math_MultipleVarFunctionWithGradient.