#include <math.h>
#include <RDGeneral/Invariant.h>
#include <cstring>
#include <algorithm>
Go to the source code of this file.
|
template<typename EnergyFunctor > |
void | BFGSOpt::linearSearch (unsigned int dim, double *oldPt, double oldVal, double *grad, double *dir, double *newPt, double &newVal, EnergyFunctor func, double maxStep, int &resCode) |
| Do a Quasi-Newton minimization along a line. More...
|
|
template<typename EnergyFunctor , typename GradientFunctor > |
int | BFGSOpt::minimize (unsigned int dim, double *pos, double gradTol, unsigned int &numIters, double &funcVal, EnergyFunctor func, GradientFunctor gradFunc, double funcTol=TOLX, unsigned int maxIts=MAXITS) |
| Do a BFGS minimization of a function. More...
|
|
Value:{ delete [] grad; delete [] dGrad; delete [] hessDGrad;\
delete [] newPos; delete [] xi; delete [] invHessian; }
Definition at line 147 of file BFGSOpt.h.
Referenced by BFGSOpt::minimize().