Open CASCADE Technology 7.8.0
|
Energy Criterium to minimize in Batten. More...
#include <FairCurve_EnergyOfBatten.hxx>
Public Member Functions | |
FairCurve_EnergyOfBatten (const Standard_Integer BSplOrder, const Handle< TColStd_HArray1OfReal > &FlatKnots, const Handle< TColgp_HArray1OfPnt2d > &Poles, const Standard_Integer ContrOrder1, const Standard_Integer ContrOrder2, const FairCurve_BattenLaw &Law, const Standard_Real LengthSliding, const Standard_Boolean FreeSliding=Standard_True, const Standard_Real Angle1=0, const Standard_Real Angle2=0) | |
Angles corresspond to the Ox axis. | |
Standard_Real | LengthSliding () const |
return the lengthSliding = P1P2 + Sliding | |
FairCurve_AnalysisCode | Status () const |
return the status | |
virtual Standard_Boolean | Variable (math_Vector &X) const override |
compute the variables <X> which correspond with the field <MyPoles> | |
Public Member Functions inherited from FairCurve_Energy | |
virtual Standard_Integer | NbVariables () const override |
returns the number of variables of the energy. | |
virtual Standard_Boolean | Value (const math_Vector &X, Standard_Real &E) override |
computes the values of the Energys E for the variable <X>. Returns True if the computation was done successfully, False otherwise. | |
virtual Standard_Boolean | Gradient (const math_Vector &X, math_Vector &G) override |
computes the gradient <G> of the energys for the variable <X>. Returns True if the computation was done successfully, False otherwise. | |
virtual Standard_Boolean | Values (const math_Vector &X, Standard_Real &E, math_Vector &G) override |
computes the Energy <E> and the gradient <G> of the energy for the variable <X>. Returns True if the computation was done successfully, False otherwise. | |
virtual Standard_Boolean | Values (const math_Vector &X, Standard_Real &E, math_Vector &G, math_Matrix &H) override |
computes the Energy <E>, the gradient <G> and the Hessian <H> of the energy for the variable <X>. Returns True if the computation was done successfully, False otherwise. | |
const Handle< TColgp_HArray1OfPnt2d > & | Poles () const |
return the poles | |
Public Member Functions inherited from math_MultipleVarFunction | |
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. | |
virtual | ~math_MultipleVarFunction () |
Additional Inherited Members | |
Protected Attributes inherited from FairCurve_Energy | |
Handle< TColgp_HArray1OfPnt2d > | MyPoles |
Standard_Integer | MyContrOrder1 |
Standard_Integer | MyContrOrder2 |
Standard_Boolean | MyWithAuxValue |
Standard_Integer | MyNbVar |
Energy Criterium to minimize in Batten.
FairCurve_EnergyOfBatten::FairCurve_EnergyOfBatten | ( | const Standard_Integer | BSplOrder, |
const Handle< TColStd_HArray1OfReal > & | FlatKnots, | ||
const Handle< TColgp_HArray1OfPnt2d > & | Poles, | ||
const Standard_Integer | ContrOrder1, | ||
const Standard_Integer | ContrOrder2, | ||
const FairCurve_BattenLaw & | Law, | ||
const Standard_Real | LengthSliding, | ||
const Standard_Boolean | FreeSliding = Standard_True , |
||
const Standard_Real | Angle1 = 0 , |
||
const Standard_Real | Angle2 = 0 |
||
) |
Angles corresspond to the Ox axis.
|
overrideprotectedvirtual |
compute the energy in intermediat format
Implements FairCurve_Energy.
|
overrideprotectedvirtual |
compute the poles which correspond with the variable X
Reimplemented from FairCurve_Energy.
Standard_Real FairCurve_EnergyOfBatten::LengthSliding | ( | ) | const |
return the lengthSliding = P1P2 + Sliding
FairCurve_AnalysisCode FairCurve_EnergyOfBatten::Status | ( | ) | const |
return the status
|
overridevirtual |
compute the variables <X> which correspond with the field <MyPoles>
Reimplemented from FairCurve_Energy.