Scan Method: LBFGS
The LBFGS (Limited-memory Broyden–Fletcher–Goldfarb–Shanno) method is the default geometry optimizer in the Scan module and is used to relax each constrained structure along the scan grid.
The LBFGS (Limited-memory Broyden–Fletcher–Goldfarb–Shanno) method is the default geometry optimizer in the Scan module and is used to relax each constrained structure along the scan grid. For every scan point, it iteratively updates atomic positions using a compact history of past displacements and force changes to build a low-rank approximation to the inverse Hessian, enabling efficient convergence without storing the full Hessian matrix. A maximum per-step atomic displacement (maxstep) is enforced to prevent unstable jumps, and at each iteration the method evaluates energy, forces, and standard convergence metrics (maximum/RMS force and maximum/RMS displacement). The optimization for a given scan point terminates once all force and displacement thresholds are satisfied or the maximum number of iterations is reached, and the resulting optimized structure is written to an _opt.xyz file.
I. Adjustable Parameters
memory
L-BFGS history size. Controls how many previous optimization steps are retained to build the approximate Hessian of the potential energy surface; larger values use more history and can improve convergence on difficult landscapes, while smaller values keep the optimizer lighter but more local in character.
(default: memory = 5)
curvature
Initial Hessian scaling factor. Sets the initial effective stiffness of the system before any optimization history is accumulated, thereby controlling how conservative or aggressive the first few LBFGS steps are; its influence naturally decreases as more iterative curvature information is gathered.
(default: curvature = 70.0)
maxstep
Maximum allowed atomic displacement (Å). Limits the largest geometry change permitted in a single optimization step, preventing atoms from moving too far at once and helping to avoid overshooting, numerical instability, or unphysical structural distortions during relaxation.
(default: maxstep = 0.2)
maxiteration
Maximum number of optimization steps. Defines the upper bound on how many LBFGS iterations are allowed for one optimization run (e.g., one scan point), acting as a safety cap when convergence is slow or unattainable while typical cases terminate earlier upon meeting force and displacement criteria.
(default: maxiteration = 128)