ForceBalance API
1.3
Automated optimization of force fields and empirical potentials
|
A target for fitting general experimental data sets. More...
Public Member Functions | |
def | __init__ (self, options, tgt_opts, forcefield) |
def | retrieve (self, dp) |
Retrieve the molecular dynamics (MD) results and store the calculated quantities in the Point object dp. More... | |
def | submit_jobs (self, mvals, AGrad=True, AHess=True) |
This routine is called by Objective.stage() and will run before "get". More... | |
def | indicate (self) |
Shows optimization state. More... | |
def | objective_term (self, quantity) |
Calculates the contribution to the objective function (the term) for a given quantity. More... | |
def | get (self, mvals, AGrad=True, AHess=True) |
Return the contribution to the total objective function. More... | |
Public Attributes | |
loop_over_snapshots | |
Initialize base class. More... | |
simpfx | |
points | |
denoms | |
weights | |
Xp | |
Wp | |
Pp | |
Gp | |
Objective | |
A target for fitting general experimental data sets.
The experimental data is described in a .txt file and is handled with a Quantity
subclass.
def src.thermo.Thermo.__init__ | ( | self, | |
options, | |||
tgt_opts, | |||
forcefield | |||
) |
def src.thermo.Thermo.get | ( | self, | |
mvals, | |||
AGrad = True , |
|||
AHess = True |
|||
) |
Return the contribution to the total objective function.
This is a weighted average of the calculated quantities.
mvals : list Mathematical parameter values. AGrad : Boolean Switch to turn on analytic gradient. AHess : Boolean Switch to turn on analytic Hessian.
Answer : dict Contribution to the objective function. Answer
is a dict with keys X
for the objective function, G
for its gradient and H
for its Hessian.
Definition at line 417 of file thermo.py.
def src.thermo.Thermo.indicate | ( | self | ) |
def src.thermo.Thermo.objective_term | ( | self, | |
quantity | |||
) |
Calculates the contribution to the objective function (the term) for a given quantity.
quantity : string Calculate the objective term for this quantity.
term : dict term
is a dict with keys X
, G
, H
and info
. The values of these keys are the objective term itself (X
), its gradient (G
), its Hessian (H
), and an OrderedDict with print information on individiual data points (info
).
Definition at line 329 of file thermo.py.
def src.thermo.Thermo.retrieve | ( | self, | |
dp | |||
) |
def src.thermo.Thermo.submit_jobs | ( | self, | |
mvals, | |||
AGrad = True , |
|||
AHess = True |
|||
) |
This routine is called by Objective.stage() and will run before "get".
It submits the jobs and the stage() function will wait for jobs to complete.
mvals : list Mathematical parameter values. AGrad : Boolean Switch to turn on analytic gradient. AHess : Boolean Switch to turn on analytic Hessian.
Nothing.
Definition at line 236 of file thermo.py.
src.thermo.Thermo.loop_over_snapshots |