Expand description
Objective function and gradient computation.
Exact port of computef.f90, computeg.f90, fparc.f90, gparc.f90.
Traits§
- Objective
- Abstracts the packer’s objective function so the optimizer can talk to
any
(f, g)oracle, not justPackContext.
Functions§
- compute_
f - Compute objective function value and update
sys.xcart. Port ofcomputef.f90. - compute_
fg - Compute objective function value and gradient in one pass over geometry/state. This avoids rebuilding Cartesian coordinates and cell lists twice.
- compute_
g - Compute gradient
gfrom current system state. Port ofcomputeg.f90.