algorithms module

Full Documentation for hippynn.optimizer.algorithms module. Click here for a summary page.

Abstract optimizers that could be used with other force functions.

class BFGSv1(coords=None, numbers=None, max_steps=100, H0=70.0, maxstep=0.2, fmax=0.0, logfile=False, device='cpu')[source]

Bases: GeometryOptimizer

BFGS algorithm for batch of coordinates, forces will be input to step() function

log(extra_message='')[source]
reset(coords, numbers=None)[source]
step(forces)[source]
update_B(flattened_forces)[source]
class BFGSv2(coords=None, numbers=None, max_steps=100, H0=70.0, maxstep=0.2, fmax=0.0, logfile=False, device='cpu')[source]

Bases: GeometryOptimizer

batch BFGS algorithm with Moore-Penrose pseudoinverse

log(extra_message='')[source]
reset(coords, numbers)[source]
step(forces)[source]
update_B(flattened_forces)[source]
class BFGSv3(coords=None, numbers=None, max_steps=100, H0=0.014285714285714285, maxstep=0.2, fmax=0.0, logfile=False, device='cpu')[source]

Bases: GeometryOptimizer

BFGS algorithm for batch of coordinates, forces will be input to step() function

In this version, instead of maintain the Hessian itself,

we maintain inverse of Hessian and update it with Sherman–Morrison formula

log(extra_message='')[source]
reset(coords, numbers)[source]
step(forces)[source]
update_Binv(flattened_forces)[source]
class FIRE(coords=None, numbers=None, max_steps=100, dt=0.1, maxstep=0.2, dt_max=1.0, N_min=5, f_inc=1.1, f_dec=0.5, a_start=0.1, f_alpha=0.99, fmax=0.0, logfile=False, device='cpu')[source]

Bases: GeometryOptimizer

log(extra_message='')[source]
reset(coords, numbers=None)[source]
step(forces)[source]
class GeometryOptimizer(coords, max_steps=100, logfile=False, device='cpu')[source]

Bases: object

static duq(t)[source]
static fmax_criteria(forces, fmax=0.05)[source]
class NewtonRaphson(coords=None, numbers=None, max_steps=100, etol=0.001, fmax=0.05, logfile=False, device='cpu')[source]

Bases: GeometryOptimizer

emax_criteria(energies)[source]
reset(coords, numbers=None)[source]
step(forces, energies)[source]