ivutils
|
Gradient descent with parabolic minima search. More...
#include <gradopt.h>
Public Member Functions | |
virtual int | SetAccuracy (double max_dE, double max_dx, int maxconvit=2, double max_force=-1.) |
Set convergence creiteria: max_dE – maximal energy variance at convergence OR; maximal position variance at convergence, max_dx is normalized by total variable number OR maximal force norm max_force at convergence. | |
Protected Member Functions | |
int | tFunc (double &val, double t) |
function to calcualte value | |
int | ParabolicMin (FILE *f, int vout=1) |
makes linear search using tFunc, grdval | |
Gradient descent with parabolic minima search.
|
protected |
makes linear search using tFunc, grdval
|
inlinevirtual |
Set convergence creiteria:
max_dE – maximal energy variance at convergence OR;
maximal position variance at convergence, max_dx is normalized by total variable number OR
maximal force norm max_force at convergence.
Negative parameters mean that the corresponding criteria are not checked. These conditions have to be repeated for at least maxconvit consecutive iterations.
Reimplemented from base_optimizer.