struct gpr_neb_config_t

Overview

NEB search configuration. More…

#include <gpr/capi/gpridge_c.h>
 
struct gpr_neb_config_t {
    // fields
 
    gpr_neb_mode_t mode;
    double conv_tol;
    int max_outer_iter;
    int max_inner_iter;
    double inner_step_size;
    double spring_constant;
    int climbing_image;
    double ci_activation_tol;
    int n_atoms;
    int use_idpp;
    gpr_acquisition_t acquisition;
    double ucb_kappa;
    int evals_per_iter;
    int use_triplet;
    unsigned int seed;
    int verbose;
    gpr_uncertainty_mode_t uncertainty_mode;
    int use_psis_laplace;
    int use_psis_deterministic;
    int use_delta_method;
    int use_zbl_prior_mean;
    int rff_features;
    gpr_hyperparameter_mode_t hyperparameter_mode;
    gpr_hyperparameter_objective_t hyperparameter_objective;
    int max_inner_iter_gp;
    double inner_conv_tol;
    gpr_distance_metric_t trust_metric;
    int use_adaptive_trust;
    double trust_radius;
    double trust_adaptive_A;
    double trust_adaptive_floor;
    double trust_t_min;
    double trust_delta_explore;
    int trust_half_life;
    double trust_ratio_at_limit;
    int scalapack_block_size;
    int scalapack_nprow;
    double lbfgs_max_move;
    int lbfgs_memory;
    double lbfgs_inverse_curvature;
    double lbfgs_finite_difference;
    int lbfgs_auto_scale;
    int lbfgs_angle_reset;
    int lbfgs_distance_reset;
    int reparam_period;
    double reparam_tol;
    int use_ff_prior_mean;
};

Detailed Documentation

NEB search configuration.

The layered-chain knobs (uncertainty_mode, use_psis_laplace, use_psis_deterministic, use_delta_method, rff_features, hyperparameter_mode, max_inner_iter_gp, inner_conv_tol) and the trust fields act in the GP modes GPR_NEB_GP_OIE and GPR_NEB_GP_AIE, which run through gpr_neb_search_gp, gpr_neb_search_gp_potential and gpr_ocineb_search (ABI 1.2): those entry points carry the atoms and the GP settings the surrogate is built from. gpr_neb_search runs GPR_NEB_GP_OIE and GPR_NEB_GP_AIE when n_coords is a multiple of 3, by building all-moving atoms with gpr_atoms_create_simple and calling gpr_neb_search_gp. It returns NULL with GPR_ERR_INVALID_ARG and the message kGpModeWithoutGp only when a GP mode has n_coords % 3 != 0. gpr_neb_search_potential requires a positive multiple of 3 for every mode, then runs a GP mode with all-moving atoms built from atomic_nrs and typed by element. Both return NULL with GPR_ERR_INVALID_ARG and the message kLocalModeEntry for GPR_NEB_GP_LOCAL (the potential entry checks the length first). n_atoms is ignored by the GP entry points, which take the atom count from the atoms handle or from n_coords.

Fields

gpr_neb_mode_t mode

Evaluation mode. Default: GPR_NEB_GP_OIE

double conv_tol

Max force convergence. Default: 0.05

int max_outer_iter

Default: 200

int max_inner_iter

Legacy AIE inner step count. Default: 100

double inner_step_size

Steepest descent step. Default: 0.01

double spring_constant

NEB spring constant k_max. Default: 5.0

int climbing_image

0=off, 1=on. Default: 1

double ci_activation_tol

CI activation threshold. Default: 0.5

int n_atoms

For IDPP init. Default: 0

int use_idpp

0=off, 1=on. Default: 0

gpr_acquisition_t acquisition

OIE acquisition. Default: TPE

double ucb_kappa

UCB exploration param. Default: 1.0

int evals_per_iter

OIE images per outer iter. Default: 1

int use_triplet

OIE: eval i-1,i,i+1. Default: 0

unsigned int seed

RNG seed. Default: 42

int verbose

Default: 1

gpr_uncertainty_mode_t uncertainty_mode

Default: GPR_UQ_MAP

int use_psis_laplace

0=off, 1=on. Default: 0

int use_psis_deterministic

Axial-grid sampler. Default: 1

int use_delta_method

INLA-Delta variance. Default: 0

int use_zbl_prior_mean

Residual ZBL GP prior mean. Default: 0

int rff_features

0=off, >0 fixed count, -1 selects the count by held-out validation. Default: 0

gpr_hyperparameter_mode_t hyperparameter_mode

Default: GPR_HOPT_SCG

gpr_hyperparameter_objective_t hyperparameter_objective

Default: GPR_HOBJ_NLML

int max_inner_iter_gp

GP-only inner steps. Nonpositive selects condition-driven stopping. Default: 0

double inner_conv_tol

Inner GP-force tol. Default: 1e-3

gpr_distance_metric_t trust_metric

Default: GPR_DIST_EMD

int use_adaptive_trust

0=fixed, 1=adaptive. Default: 0 (fixed-EMD certificate).

double trust_radius

Fixed radius. Default: 0.5

double trust_adaptive_A

A/sqrt(N) cap. Default: 1.3

double trust_adaptive_floor

Cap floor. Default: 0.25

double trust_t_min

Adaptive floor. Default: 0.15

double trust_delta_explore

Adaptive span. Default: 0.35

int trust_half_life

Training half-life. Default: 50

double trust_ratio_at_limit

MAX_1D_LOG ratio. Default: 0.4

int scalapack_block_size

0=backend default; >0 requests ScaLAPACK block size. Default: 0

int scalapack_nprow

0=backend default; >0 requests BLACS process rows. Default: 0

double lbfgs_max_move

Unweighted per-atom Cartesian cap, A. Not a mass-weighted Matter displacement. Default: 0.1 (matches GPNEBConfig)

int lbfgs_memory

History size m. Default: 20

double lbfgs_inverse_curvature

Default H0 scaling. Default: 0.01

double lbfgs_finite_difference

FD probe for first step. Default: 1e-6

int lbfgs_auto_scale

0=off, 1=on. Default: 1

int lbfgs_angle_reset

0=off, 1=on. Default: 1

int lbfgs_distance_reset

0=off, 1=on. Default: 1

int reparam_period

Legacy periodic control, retained for ABI compatibility. Default: 0

double reparam_tol

Legacy spacing control, retained for ABI compatibility. Default: -1

int use_ff_prior_mean

Teng Morse FF prior mean. Default: 0