OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    Extrema_GlobOptFuncCS Class Reference

    This class implements function which calculate square Eucluidean distance between point on curve and point on surface in case of continuity is C2. More...

    #include <Extrema_GlobOptFuncCS.hxx>

    Inheritance diagram for Extrema_GlobOptFuncCS:

    Public Member Functions

     Extrema_GlobOptFuncCS (const Adaptor3d_Curve *C, const Adaptor3d_Surface *S)
     Curve and surface should exist during all the lifetime of Extrema_GlobOptFuncCS.
    int NbVariables () const override
     returns the number of variables of the function.
    bool Value (const math_Vector &theX, double &theF) override
     computes the values of the Functions <F> for the variable <X>. Returns True if the computation was done successfully, False otherwise.
    bool Gradient (const math_Vector &theX, math_Vector &theG) override
     computes the gradient <G> of the functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
    bool Values (const math_Vector &theX, double &theF, math_Vector &theG) override
     computes the value <F> and the gradient <G> of the functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
    bool Values (const math_Vector &theX, double &theF, math_Vector &theG, math_Matrix &theH) override
     computes the value <F>, the gradient <G> and the hessian <H> of the functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
    Public Member Functions inherited from math_MultipleVarFunction
    virtual int 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.
    virtual ~math_MultipleVarFunction ()

    Detailed Description

    This class implements function which calculate square Eucluidean distance between point on curve and point on surface in case of continuity is C2.

    Constructor & Destructor Documentation

    ◆ Extrema_GlobOptFuncCS()

    Extrema_GlobOptFuncCS::Extrema_GlobOptFuncCS ( const Adaptor3d_Curve * C,
    const Adaptor3d_Surface * S )

    Curve and surface should exist during all the lifetime of Extrema_GlobOptFuncCS.

    Member Function Documentation

    ◆ Gradient()

    bool Extrema_GlobOptFuncCS::Gradient ( const math_Vector & X,
    math_Vector & G )
    overridevirtual

    computes the gradient <G> of the functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Implements math_MultipleVarFunctionWithHessian.

    ◆ NbVariables()

    int Extrema_GlobOptFuncCS::NbVariables ( ) const
    overridevirtual

    returns the number of variables of the function.

    Implements math_MultipleVarFunctionWithHessian.

    ◆ Value()

    bool Extrema_GlobOptFuncCS::Value ( const math_Vector & X,
    double & F )
    overridevirtual

    computes the values of the Functions <F> for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Implements math_MultipleVarFunctionWithHessian.

    ◆ Values() [1/2]

    bool Extrema_GlobOptFuncCS::Values ( const math_Vector & X,
    double & F,
    math_Vector & G )
    overridevirtual

    computes the value <F> and the gradient <G> of the functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Implements math_MultipleVarFunctionWithHessian.

    ◆ Values() [2/2]

    bool Extrema_GlobOptFuncCS::Values ( const math_Vector & X,
    double & F,
    math_Vector & G,
    math_Matrix & H )
    overridevirtual

    computes the value <F>, the gradient <G> and the hessian <H> of the functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Implements math_MultipleVarFunctionWithHessian.


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