Chemical Data Processing Library Python API - Version 1.1.1
|
Fletcher's implementation of the BFGS method. More...
Classes | |
class | Status |
Public Member Functions | |
None | __init__ (DoubleDVectorFunctor func, object grad_func) |
Initializes the DVectorBFGSMinimizer instance. More... | |
int | getObjectID () |
Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
float | getGradientNorm () |
float | getFunctionDelta () |
float | getFunctionValue () |
int | getNumIterations () |
Status | getStatus () |
Status | minimize (DVector x, DVector g, int max_iter, float g_norm, float delta_f, bool do_setup=True) |
float | setup (DVector x, DVector g, float step_size=0.001, float tol=0.15) |
tuple | iterate (float f, DVector x, DVector g) |
Properties | |
objectID = property(getObjectID) | |
gradientNorm = property(getGradientNorm) | |
functionDelta = property(getFunctionDelta) | |
functionValue = property(getFunctionValue) | |
numIterations = property(getNumIterations) | |
status = property(getStatus) | |
Fletcher's implementation of the BFGS method.
The implementation has been taken from the GNU Scientific Library.
None CDPL.Math.DVectorBFGSMinimizer.__init__ | ( | DoubleDVectorFunctor | func, |
object | grad_func | ||
) |
Initializes the DVectorBFGSMinimizer instance.
func | |
grad_func |
int CDPL.Math.DVectorBFGSMinimizer.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python DVectorBFGSMinimizer instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b
thus cannot tell reliably whether the two DVectorBFGSMinimizer instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID()
.
float CDPL.Math.DVectorBFGSMinimizer.getGradientNorm | ( | ) |
float CDPL.Math.DVectorBFGSMinimizer.getFunctionDelta | ( | ) |
float CDPL.Math.DVectorBFGSMinimizer.getFunctionValue | ( | ) |
int CDPL.Math.DVectorBFGSMinimizer.getNumIterations | ( | ) |
Status CDPL.Math.DVectorBFGSMinimizer.getStatus | ( | ) |
Status CDPL.Math.DVectorBFGSMinimizer.minimize | ( | DVector | x, |
DVector | g, | ||
int | max_iter, | ||
float | g_norm, | ||
float | delta_f, | ||
bool | do_setup = True |
||
) |
x | |
g | |
max_iter | |
g_norm | |
delta_f | |
do_setup |
float CDPL.Math.DVectorBFGSMinimizer.setup | ( | DVector | x, |
DVector | g, | ||
float | step_size = 0.001 , |
||
float | tol = 0.15 |
||
) |
x | |
g | |
step_size | |
tol |