Loading...
Searching...
No Matches
AtomicDimer.h File Reference
#include <Eigen/Dense>
#include <algorithm>
#include <chrono>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <exception>
#include <functional>
#include <iosfwd>
#include <limits>
#include <memory>
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include "../data_types/Field.h"
#include "../managers/io/LogManager.h"
#include "../structures/Structures.h"
#include "auxiliary/ProblemSetUp.h"
#include "covariance_functions/ConstantCF.h"
#include "covariance_functions/SexpatCF.h"
#include "gpr/Enums.h"
#include "gpr/PublicLayout.h"
#include "gpr/policy/TrainingPolicy.h"
#include "ml/GaussianProcessRegression.h"
#include "ml/ScaleFreeTrustRegion.h"
#include "ml/TrustRadius.h"
#include "neb/ObservationArchive.h"
#include "neb/RgSellaSaddle.h"
#include "neb/RgsaddleClient.h"
#include "optimization/CoordinateResolution.h"
#include "optimization/RgminStep.h"
#include "optimization/SecantCurvature.h"
#include "optimization/StencilIndex.h"
#include "optimization/VibrationalStencil.h"
#include "potentials/PotentialWrapper.h"
#include "AtomicDimer.inl"

Go to the source code of this file.

Classes

struct  atmd::DimerRelaxationCycleCertificate
struct  atmd::DimerRelaxationBacktrackResult
class  atmd::OracleBudgetExhausted
struct  atmd::DimerSurrogateActionCertificate
struct  atmd::DimerSaddleMeritBacktrackResult
class  atmd::AtomicDimer
 Atomic dimer. More...
struct  atmd::AtomicDimer::DimerPhaseRecord
 One entry of the dimer trajectory history – the midpoint configuration and dimer curvature estimate at the end of one relaxation phase. More...
struct  atmd::AtomicDimer::VarianceGateConfig

Namespaces

namespace  readcon_db
namespace  gpr
 Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.
namespace  atmd
 The atomic dimer search (class AtomicDimer) and its status types.

Enumerations

enum class  atmd::HssvdModeSelectionPolicy : std::uint8_t { atmd::LowestCurvature = 0 , atmd::ReferenceConnectedNegative = 1 }
enum class  atmd::DimerRelaxationCycleKind : std::uint8_t { atmd::None = 0 , atmd::PeriodOne = 1 , atmd::PeriodTwo = 2 }
enum class  atmd::DimerResidualGlobalizationAction { atmd::AcceptTrial , atmd::AcceptBacktrackedTrial , atmd::OracleTrustedTrial }
enum class  atmd::DimerProposalGlobalizationAction { atmd::AcceptTrustedTrial , atmd::SearchLocalResidualDescent , atmd::OracleTrustedTrial }
enum class  atmd::DimerOracleProgressAction { atmd::ContinueBurst , atmd::RestoreBestAndHandBack }
enum class  atmd::DimerRelaxationTerminationReason {
  atmd::Unspecified , atmd::ForceConverged , atmd::MeasuredNonDescent , atmd::DegenerateProbe ,
  atmd::MeasuredIndexZero , atmd::UninformativeRotation , atmd::AlignmentLoss , atmd::PhaseBudget ,
  atmd::InteratomicCollapse , atmd::InvalidAtomsConfiguration , atmd::OracleBudget , atmd::InvalidParameters ,
  atmd::UncertifiedForceStop , atmd::WallClockLimit
}
enum class  atmd::DimerSurrogateActionTermination : std::uint8_t {
  atmd::Uncertifiable = 0 , atmd::Continue , atmd::ForceConverged , atmd::GeometryCycle ,
  atmd::InteratomicTrustBoundary , atmd::IterationBudget , atmd::MeasuredTrustBoundary
}

Functions

bool atmd::shouldLogDimerFinalState (const gpr::Index_t debug_level) noexcept
void atmd::writeDimerCampaignSummary (std::ostream &os, double energy, bool converged, double energy_zero)
Eigen::Index atmd::selectHssvdModeIndex (const Eigen::VectorXd &eigenvalues, const Eigen::MatrixXd &eigenvectors, const Eigen::VectorXd &reference, HssvdModeSelectionPolicy policy) noexcept
const gpr::Coord & atmd::selectHssvdModeReference (const gpr::Coord &initial_reference, const gpr::Coord &current_orientation, HssvdModeSelectionPolicy policy, bool preserve_initial_reference) noexcept
bool atmd::dimerPhaseBudgetAllows (gpr::Index_t phase, gpr::Index_t limit) noexcept
bool atmd::dimerSearchStalled (gpr::Index_t consecutive_degenerate_probes) noexcept
bool atmd::dimerGeometriesCoincide (const gpr::Coord &a, const gpr::Coord &b) noexcept
 Numerical geometry identity for cycle detection and measured-force rescue.
bool atmd::refusalRepeatsIndexZeroExpansion (const gpr::Coord &midpoint, const gpr::Coord &expansion_midpoint, double curvature, double curvature_resolution, double separation) noexcept
DimerRelaxationCycleCertificate atmd::certifyDimerRelaxationCycle (const gpr::Coord &current, const gpr::Coord &proposed, const gpr::Coord *preceding, double force_current, double force_preceding) noexcept
bool atmd::repeatedProjectedTrustStep (const gpr::Coord &step, double curvature, const gpr::Coord &previous_step, double previous_curvature) noexcept
bool atmd::shouldTerminateDimerRelaxationForLostProgress (double curvature, double current_residual, double proposed_residual) noexcept
bool atmd::shouldBacktrackDimerRelaxationForResidualDecrease (double curvature, double current_residual) noexcept
double atmd::dimerPosteriorActionForceScale (double current_residual, double force_tolerance) noexcept
bool atmd::posteriorForceResolved (double proposed_force_variance, double action_scale) noexcept
bool atmd::measuredRadiusClipRequestsOracle (bool clipped, double proposed_force_variance, double action_scale) noexcept
DimerResidualGlobalizationAction atmd::resolvedPointKeepsTheSurrogateWalk (DimerResidualGlobalizationAction action, double proposed_force_variance, double action_scale) noexcept
double atmd::posteriorResolvedStep (double force_sigma, double curvature) noexcept
double atmd::rejectedTrialRadius (double shrunk, double displacement, double force_sigma, double curvature, double prediction_error, double force_increase=std::numeric_limits< double >::quiet_NaN(), bool transverse_residual_exceeds_step=false) noexcept
double atmd::modelAgreementTrustDistance (double configured, double length_scale, double force_error, double force_scale, double energy_error, double energy_scale) noexcept
DimerOracleProgressAction atmd::selectDimerOracleProgressAction (bool path_leashed_recovery, bool oracle_certified, double best_oracle_force, double trial_oracle_force) noexcept
bool atmd::dimerOracleTrialNeedsRefit (double reference_force, double trial_force, double measured_change, double prediction_error, double force_tolerance) noexcept
DimerProposalGlobalizationAction atmd::selectDimerProposalGlobalizationAction (double curvature, double current_residual, double force_tolerance, double proposed_force_variance, double posterior_action_force_scale) noexcept
DimerProposalGlobalizationAction atmd::selectDimerProposalGlobalizationAction (double curvature, double current_residual, double force_tolerance, double proposed_force_variance) noexcept
DimerResidualGlobalizationAction atmd::selectDimerResidualGlobalizationAction (double curvature, double current_residual, bool backtrack_accepted) noexcept
DimerResidualGlobalizationAction atmd::selectDimerPosteriorResidualGlobalizationAction (DimerProposalGlobalizationAction proposal_action, double curvature, double current_residual, bool backtrack_accepted) noexcept
DimerRelaxationBacktrackResult atmd::backtrackDimerRelaxationForResidualDecrease (const gpr::Coord &current, const gpr::Coord &proposed, double current_residual, const std::function< double(const gpr::Coord &)> &evaluate_residual)
DimerSaddleMeritBacktrackResult atmd::backtrackDimerSaddleMerit (const gpr::Coord &current, const gpr::Coord &proposed, const gpr::Coord &gradient, const gpr::Coord &orientation, double curvature, const std::function< double(const gpr::Coord &)> &energy_change)

Variables

constexpr gpr::Index_t atmd::kMaxStalledDegenerateProbes = 30
constexpr int atmd::kMaxConsecutiveOracleFailures = 8