DualLinearCombinationHessian¶
-
class
DualLinearCombinationHessian
(*args)¶ Dual linear combination hessian implementation.
Available constructors:
DualLinearCombinationHessian(myDLCEI)
- Parameters
- myDLCEI
DualLinearCombinationEvaluation
A dual linear combination evaluation implementation.
- myDLCEI
Notes
It returns the implementation of the hessian. By default, the analytical hessian is implemented.
Methods
getCallsNumber
(self)Accessor to the number of times the hessian has been called.
getClassName
(self)Accessor to the object’s name.
getId
(self)Accessor to the object’s id.
getInputDimension
(self)Accessor to the number of the inputs.
getMarginal
(self, \*args)Accessor to the hessian implementation of a specific output.
getName
(self)Accessor to the object’s name.
getOutputDimension
(self)Accessor to the number of the outputs.
getParameter
(self)Accessor to the parameter values.
getShadowedId
(self)Accessor to the object’s shadowed id.
getVisibility
(self)Accessor to the object’s visibility state.
hasName
(self)Test if the object is named.
hasVisibleName
(self)Test if the object has a distinguishable name.
hessian
(self, inP)Return the Jacobian transposed matrix of the implementation at a point.
isActualImplementation
(self)Accessor to the validity flag.
setName
(self, name)Accessor to the object’s name.
setParameter
(self, parameter)Accessor to the parameter values.
setShadowedId
(self, id)Accessor to the object’s shadowed id.
setVisibility
(self, visible)Accessor to the object’s visibility state.
-
__init__
(self, \*args)¶ Initialize self. See help(type(self)) for accurate signature.
-
getCallsNumber
(self)¶ Accessor to the number of times the hessian has been called.
- Returns
- calls_numberint
Integer that counts the number of times the hessian has been called since its creation.
-
getClassName
(self)¶ Accessor to the object’s name.
- Returns
- class_namestr
The object class name (object.__class__.__name__).
-
getId
(self)¶ Accessor to the object’s id.
- Returns
- idint
Internal unique identifier.
-
getInputDimension
(self)¶ Accessor to the number of the inputs.
- Returns
- number_inputsint
Number of inputs.
-
getMarginal
(self, \*args)¶ Accessor to the hessian implementation of a specific output.
- Parameters
- iinteger
Integer corresponding to the output (Care: it starts at 0).
- indicessequence of integer
The set of indices for which the outputs are extracted.
- Returns
- hessianImplementation
HessianImplementation
A hessian implementation restricted to its compenents functions which indices are i or indices.
- hessianImplementation
-
getName
(self)¶ Accessor to the object’s name.
- Returns
- namestr
The name of the object.
-
getOutputDimension
(self)¶ Accessor to the number of the outputs.
- Returns
- number_outputsint
Number of outputs.
-
getShadowedId
(self)¶ Accessor to the object’s shadowed id.
- Returns
- idint
Internal unique identifier.
-
getVisibility
(self)¶ Accessor to the object’s visibility state.
- Returns
- visiblebool
Visibility flag.
-
hasName
(self)¶ Test if the object is named.
- Returns
- hasNamebool
True if the name is not empty.
-
hasVisibleName
(self)¶ Test if the object has a distinguishable name.
- Returns
- hasVisibleNamebool
True if the name is not empty and not the default one.
-
hessian
(self, inP)¶ Return the Jacobian transposed matrix of the implementation at a point.
- Parameters
- pointsequence of float
Point where the Jacobian transposed matrix is calculated.
- Returns
- hessian
Matrix
The Jacobian transposed matrix of the function at point.
- hessian
-
isActualImplementation
(self)¶ Accessor to the validity flag.
- Returns
- is_implbool
Whether the implementation is valid.
-
setName
(self, name)¶ Accessor to the object’s name.
- Parameters
- namestr
The name of the object.
-
setParameter
(self, parameter)¶ Accessor to the parameter values.
- Parameters
- parametersequence of float
The parameter values.
-
setShadowedId
(self, id)¶ Accessor to the object’s shadowed id.
- Parameters
- idint
Internal unique identifier.
-
setVisibility
(self, visible)¶ Accessor to the object’s visibility state.
- Parameters
- visiblebool
Visibility flag.