struct gpr::neb::OCINEBConfig¶
Overview¶
OCINEB controller config. More…
#include <gpr/neb/OCINEBController.h>
struct OCINEBConfig {
// fields
bool use_mmf = false;
bool rg_minmode_dimer = false;
MmfHandoffPolicy handoff_policy = MmfHandoffPolicy::Auto;
double trigger_force = 0.0;
double trigger_factor = 0.31;
long max_steps = 0;
double alignment_cos_tol = 0.85;
double force_tolerance = 0.05;
std::function<double()> effective_force_tolerance;
int dimer_max_phases = 0;
int dimer_max_inner_iter = 0;
int dimer_max_rot_iter = 10;
double dimer_kappa_beta = 0.0;
bool dimer_eval_image1 = true;
bool keep_force_improving_burst = true;
Eigen::VectorXd initial_orient;
double perturb_along_tangent = 0.05;
double max_burst_displacement = 0.0;
double dimer_variance_tau_rel = std::numeric_limits<double>::quiet_NaN();
double dimer_variance_tau_abs = 0.0;
double dimer_imspe_soft_threshold = 0.0;
int dimer_imspe_history_size = 16;
};
Detailed Documentation¶
OCINEB controller config. All fields match the eOn ~OCINEBController::Config~ shape so existing parameter sweeps over there transfer.
Fields¶
bool use_mmf = false
Master switch. False -> ~runOCINEB~ degenerates to bare NEB.
bool rg_minmode_dimer = false
RgMinMode dimer for the climbing-image burst. Default false keeps AtomicDimer as the campaign / parity harness. When true the burst binds RgMinMode::kOciBurstKind (Dimer, not Lanczos).
MmfHandoffPolicy handoff_policy = MmfHandoffPolicy::Auto
First-lease scheduler. Auto preserves classical adaptive OCINEB for true-PES Standard/OIE/AIE runs and uses MMF as a measured fallback for GP-assisted modes. Explicit values are authoritative for composed workflows and bindings.
double trigger_force = 0.0
Absolute trigger override. When > 0, MMF fires as soon as conv_force drops below it, bypassing the adaptive ~current_threshold~. This is the “static handover” protocol; a fixed 0.5 eV/A override triggers the dimer prematurely, so it follows the local lowest mode to a saddle off the reaction path (OCI-NEB paper, System 01 / HCN). Default 0.0: disabled, so the trigger is purely the adaptive relative threshold.
double trigger_factor = 0.31
Relative trigger factor lambda_rel (OCI-NEB). The adaptive trigger threshold is ~trigger_factor * baseline_force~, where baseline_force is the conv_force at the first MMF-eligible NEB outer iter; MMF hands over once the chain has relaxed to this fraction of that handover baseline. Default 0.31, the OCI-NEB paper optimum.
long max_steps = 0
Optional MMF step budget N_mmf. Nonpositive values leave termination to the dimer certificates; positive values are explicit caller caps.
double alignment_cos_tol = 0.85
Alignment COSINE tolerance alpha_tol (the absolute mode/tangent dot product, a cosine in [0,1], NOT a rotation angle distinct from the dimer min-mode rotation omega used for saddle certification). The dimer is initialized along the NEB tangent; the burst runs while the rotated axis stays aligned, abs(dot(d, tau)) >= alignment_cos_tol, and aborts when alignment drops below it. Default 0.85.
double force_tolerance = 0.05
Force tolerance used for the “already converged, no need to fire MMF” gate inside ~shouldTrigger~. Default mirrors the NEB’s ~conv_tol~.
std::function<double()> effective_force_tolerance
Optional live tolerance provider. Values above force_tolerance raise the OCI/MMF certificate to the model-noise-supported force scale.
int dimer_max_phases = 0
Per-burst dimer outer-iteration budget (passes through to AtomicDimer’s ~num_bigiter~). Nonpositive values are condition-driven; positive values are explicit caller budgets.
int dimer_max_inner_iter = 0
Per-burst dimer inner-iteration budget (passes through to AtomicDimer’s ~num_iter~). Nonpositive values are condition-driven; positive values are explicit caller budgets.
int dimer_max_rot_iter = 10
GP-surface rotations per dimer translation in an MMF burst. The alignment gate is evaluated on the rotated dimer axis, so relaxation-phase rotations are part of the OCI-NEB control law.
double dimer_kappa_beta = 0.0
Xiao contour curvature restraint; zero disables, paper uses 5 Angstrom.
bool dimer_eval_image1 = true
Evaluate the forward dimer image through the oracle at each dimer phase. The improved dimer curvature is a one-sided finite difference, so molecular OCINEB keeps this enabled.
bool keep_force_improving_burst = true
Keep the dimer’s final position when a burst hits the step cap (MaxIterations) but the final oracle force is strictly lower than the pre-burst force. The legacy behaviour unconditionally restored the pre-burst CI on MaxIterations discarding every oracle call of a burst that did make partial progress. The restore exists to guard the force-explosion case (observed 4.45 -> 4538 eV/A), so it is kept whenever the final force is NOT an improvement. Default true; set false to recover the always-restore behaviour.
Eigen::VectorXd initial_orient
Optional override for the initial dimer axis. If empty, uses the cached mode if available, otherwise the path’s improved (energy-weighted) tangent at the CI image.
double perturb_along_tangent = 0.05
Perturbation along the initial mode applied to the CI position before each MMF burst. Required for the dimer to have non-zero starting gradient on systems where the chain has already converged to a GP+oracle fixed point. 0 disables.
double max_burst_displacement = 0.0
Optional per-burst CI image displacement cap, measured in EMD (earth-mover) units the same metric the dimer’s early-stop uses. Non-positive values leave MMF acceptance to the saddle-energy, force, curvature, and adjacent-path certificates.
double dimer_variance_tau_rel = std::numeric_limits<double>::quiet_NaN()
Dimer posterior-variance acceptance gate, expressed as a fraction of the GP signal variance (magnSigma2). When > 0, a dimer outer phase that would query the true potential first probes the posterior variance at the candidate; if it is below ~dimer_variance_tau_rel * magnSigma2(now)~ the GP mean replaces the oracle call. A finite value is authoritative, including 0 to disable the relative gate. The NaN sentinel leaves the gate disabled unless the caller supplies an explicit threshold.
double dimer_variance_tau_abs = 0.0
Absolute dimer posterior-variance gate (eV^2). Takes precedence over ~dimer_variance_tau_rel~ when > 0. Default 0 (defer to the relative gate).
double dimer_imspe_soft_threshold = 0.0
IMSPE soft-skip threshold for the dimer. When > 0, a candidate that passes the variance gate (var >= tau) is additionally scored by IMSPE over the dimer’s EMD-filtered recent-query ring buffer; a score below the threshold suppresses the oracle call (GP mean used instead). Default 0 leaves the soft gate disabled; the variance gate alone fixes the thrashing, and the soft threshold has no system-adaptive default.
int dimer_imspe_history_size = 16
EMD-filtered ring-buffer size for the dimer IMSPE soft-skip.