ForceBalance API
1.3
Automated optimization of force fields and empirical potentials
|
A custom optimisation target which employs the openff-evaluator
package to rapidly estimate a collection of condensed phase physical properties at each optimisation epoch.
More...
Classes | |
class | OptionsFile |
Represents the set of options that a Evaluator_SMIRNOFF target will be run with. More... | |
Public Member Functions | |
def | __init__ (self, options, tgt_opts, forcefield) |
def | submit_jobs (self, mvals, AGrad=True, AHess=True) |
Submit jobs for evaluating the objective function. More... | |
def | wq_complete (self) |
Check if all jobs are finished This function should have a sleep in it if not finished. More... | |
def | get (self, mvals, AGrad=True, AHess=True) |
Get the objective function value, gradient, and hessian. More... | |
def | indicate (self) |
print information into the output file about the last objective function evaluated This function should be called after get() More... | |
A custom optimisation target which employs the openff-evaluator
package to rapidly estimate a collection of condensed phase physical properties at each optimisation epoch.
Definition at line 46 of file evaluator_io.py.
def src.evaluator_io.Evaluator_SMIRNOFF.__init__ | ( | self, | |
options, | |||
tgt_opts, | |||
forcefield | |||
) |
def src.evaluator_io.Evaluator_SMIRNOFF.get | ( | self, | |
mvals, | |||
AGrad = True , |
|||
AHess = True |
|||
) |
Get the objective function value, gradient, and hessian.
mvals: np.ndarray mvals array containing the math values of the parameters AGrad: bool Flag for computing gradients of not AHess: bool Flag for computing hessian or not
Answer: dict Answer = {'X':obj_value, 'G':obj_grad, 'H':obj_hess} obj_value: float obj_grad: np.ndarray of shape (n_param, ) obj_hess: np.ndarray of shape (n_param, n_param)
Definition at line 721 of file evaluator_io.py.
def src.evaluator_io.Evaluator_SMIRNOFF.indicate | ( | self | ) |
print information into the output file about the last objective function evaluated This function should be called after get()
Definition at line 821 of file evaluator_io.py.
def src.evaluator_io.Evaluator_SMIRNOFF.submit_jobs | ( | self, | |
mvals, | |||
AGrad = True , |
|||
AHess = True |
|||
) |
Submit jobs for evaluating the objective function.
mvals: np.ndarray mvals array containing the math values of the parameters AGrad: bool Flag for computing gradients of not AHess: bool Flag for computing hessian or not
Definition at line 437 of file evaluator_io.py.
def src.evaluator_io.Evaluator_SMIRNOFF.wq_complete | ( | self | ) |
Check if all jobs are finished This function should have a sleep in it if not finished.
finished: bool True if all jobs are finished, False if not
Definition at line 685 of file evaluator_io.py.