.. index:: pair: class; atmd::AtomicDimer .. _doxid-classatmd_1_1_atomic_dimer: class atmd::AtomicDimer ======================= .. toctree:: :hidden: struct_atmd_AtomicDimer_AccurateObservationResult.rst struct_atmd_AtomicDimer_DimerPhaseRecord.rst struct_atmd_AtomicDimer_InterAtomicTrustDistance.rst struct_atmd_AtomicDimer_LocalPotentialReference.rst struct_atmd_AtomicDimer_SurrogateSpectrum.rst struct_atmd_AtomicDimer_VarianceGateConfig.rst struct_atmd_AtomicDimer_early_stopping_t.rst Overview ~~~~~~~~ Atomic dimer. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class AtomicDimer { public: // structs struct :ref:`AccurateObservationResult`; struct :ref:`DimerPhaseRecord`; struct :ref:`InterAtomicTrustDistance`; struct :ref:`LocalPotentialReference`; struct :ref:`SurrogateSpectrum`; struct :ref:`VarianceGateConfig`; struct :ref:`early_stopping_t`; // fields :ref:`gpr::AtomsConfiguration` :ref:`atoms_config`; // construction :ref:`AtomicDimer`(); virtual :target:`~AtomicDimer`(); // methods void :ref:`initialize`(const :ref:`gpr::InputParameters`& parameters, const :ref:`gpr::Observation`& initial_data, const :ref:`gpr::Observation`& middle_point, const :ref:`gpr::Coord`& initial_orientation, const :ref:`gpr::AtomsConfiguration`& init_atom_config); void :ref:`setAtomsConfiguration`(const :ref:`gpr::AtomsConfiguration`& _atoms_config); void :ref:`execute`(:ref:`pot::PotentialWrapper`& general_potential); void :ref:`setSecantHessianConfig`(const :ref:`gpr::optim::SecantHessianConfig`& config); void :ref:`setSecantOrientationSeed`(bool enabled); const :ref:`gpr::optim::SecantHessian`& :target:`secantHessian`() const; :ref:`gpr::optim::SecantCurvatureCounts` :target:`secantCounts`() const; :ref:`gpr::optim::SecantCurvatureCounts` :ref:`secantLedger`() const; void :ref:`setMaxWallSeconds`(double seconds); void :ref:`setWallClockLimit`(std::shared_ptr`> limit); void :ref:`setTrainingPolicy`(const :ref:`gpr::policy::TrainingPolicy`* policy); void :ref:`setTrainingPolicy`(std::shared_ptr`> policy); bool :target:`wallClockLimitReached`() const; void :ref:`stopForWallClockLimit`(); bool :ref:`certifyStoppedForce`(:ref:`pot::PotentialWrapper`& potential, double step, int& calls); void :ref:`setForceStopCertificateStep`(double step); void :ref:`setVibrationalStencil`(:ref:`gpr::optim::VibrationalStencil` mode); :ref:`gpr::optim::VibrationalStencil` :target:`vibrationalStencil`() const; double :target:`forceStopCertificateStep`() const; bool :ref:`getForceStopCertified`() const; int :ref:`getForceStopCertificateCalls`() const; bool :ref:`hasValidAtomsConfiguration`(); double :ref:`getFinalRotationAngle`() const; double :ref:`getLatestModeCurvature`() const; const :ref:`gpr::Observation`& :ref:`finalMidpoint`() const; bool :ref:`isMinModeAngleCertified`() const; double :ref:`getFinalRotationResidual`() const; bool :ref:`measuredModeIsCertified`() const; bool :ref:`terminalModeIsReady`() const; void :ref:`refineMeasuredModeCurvature`(const :ref:`gpr::Observation`& midpoint, const :ref:`gpr::Coord`& orientation, :ref:`pot::PotentialWrapper`& potential, double surrogate_curvature); Eigen::VectorXd :ref:`getFinalGradientAtMidPoint`() const; Eigen::VectorXd :ref:`getFinalForceAtMidPoint`() const; double :ref:`getFinalForceNormForConvergence`() const; Eigen::VectorXd :ref:`getFinalCoordOfMidPoint`() const; bool :ref:`restartFromHigherOrderPoint`(const Eigen::MatrixXd& cartesian_hessian, const Eigen::VectorXd& kick, const :ref:`gpr::Observation`& measured_rows, :ref:`pot::PotentialWrapper`& potential); bool :ref:`refineSaddleFromMeasuredHessian`(const Eigen::MatrixXd& cartesian_hessian, :ref:`pot::PotentialWrapper`& potential, double resolution = 0.0); bool :ref:`refineSaddleFromMeasuredHessian`(const Eigen::MatrixXd& cartesian_hessian, :ref:`pot::PotentialWrapper`& potential, :ref:`gpr::Observation`* raw_candidate, double resolution = 0.0, bool complete_stencil = false); bool :ref:`commitExternallyCertifiedRefinement`(const :ref:`gpr::Observation`& raw_center, const Eigen::MatrixXd& certified_cartesian_hessian, const Eigen::MatrixXd& certified_mass_weighted_basis, bool first_order_certificate); bool :ref:`hasUnconditionedObservations`() const; bool :ref:`restartAlongWeakMode`(const Eigen::VectorXd& direction, double length, const :ref:`gpr::Observation`& measured_rows, :ref:`pot::PotentialWrapper`& potential); bool :target:`restartAlongWeakMode`(const Eigen::VectorXd& direction, double length, const :ref:`gpr::Observation`& measured_rows, :ref:`pot::PotentialWrapper`& potential, const Eigen::MatrixXd& cartesian_hessian); :ref:`gpr::Index_t` :ref:`getTotalForceCalls`() const; bool :ref:`measureCurvatureProbes`(const :ref:`gpr::Coord`& positions, :ref:`pot::PotentialWrapper`& potential, :ref:`gpr::Observation`& raw); :ref:`gpr::Index_t` :ref:`getTotalGPRForceCalls`() const; :ref:`gpr::Index_t` :ref:`getIterations`() const; double :ref:`getFinalEnergy`() const; double :ref:`getFinalCurvature`() const; bool :ref:`getConverged`() const; double :ref:`getMaxStepLength`() const; double :ref:`getConvergenceForce`() const; void :ref:`setConvergenceForce`(double force); double :ref:`convergenceForceNorm`(const Eigen::Ref& positions, const Eigen::Ref& gradient) const; const :ref:`gpr::Coord`& :ref:`getFinalOrientation`() const; const std::vector<:ref:`DimerPhaseRecord`>& :ref:`getPhaseHistory`() const; :ref:`DimerRelaxationTerminationReason` :target:`getRelaxationTerminationReason`() const; Eigen::MatrixXd :ref:`getMeasuredIndexZeroHessian`() const; double :ref:`getMeasuredIndexZeroResolution`() const; Eigen::MatrixXd :ref:`gpMeanHessianAtMidpoint`(); :ref:`DimerSurrogateActionCertificate` :ref:`previewFirstSurrogateAction`(const :ref:`gpr::Observation`& oracle_middle_point, const :ref:`gpr::Coord`& initial_orientation); const :ref:`DimerSurrogateActionCertificate`& :target:`getFirstSurrogateActionCertificate`() const; :ref:`gpr::Coord`& :ref:`getMidPointCoordForAllObservationPointsRef`(); :ref:`gpr::FieldMatrixd`& :ref:`getEnergyForAllObservationPointsRef`(); :ref:`gpr::Coord`& :ref:`getGradientForAllObservationPointsRef`(); :ref:`gpr::GaussianProcessRegression`* :ref:`getGPRModel`(); void :ref:`preserveSeedKernel`(); void :ref:`attachExternalGP`(:ref:`gpr::GaussianProcessRegression`* external_gp); :ref:`gpr::Index_t` :ref:`getNumNewObservations`() const; :ref:`gpr::Index_t` :ref:`getInitialObservationCount`() const; :ref:`gpr::FieldMatrixd` :ref:`getEnergyZeroLevel`() const; void :ref:`callGeneralPotentialFromEON`(const :ref:`gpr::vector3_reg`(&) cell_dimensions[3], :ref:`gpr::Observation`& mid_point, :ref:`pot::PotentialWrapper`& potential); bool :ref:`isFinalConvergenceReached`(const :ref:`gpr::Observation`& middle_point, const double stop_criteria); bool :ref:`isRotationalConvergenceReached`(const :ref:`gpr::Coord`& orient, :ref:`gpr::Observation`& middle_point); bool :ref:`isApproximateRotationalConvergenceReached`(const :ref:`gpr::Coord`& orient, const :ref:`gpr::Observation`& approx_obs, const double stop_criteria); bool :ref:`rotateDimer`(const double stop_criteria, :ref:`gpr::Coord`& orient, :ref:`gpr::LBFGSInfo`& rot_info, :ref:`gpr::Observation`& middle_point, :ref:`gpr::Observation`& approx_obs); void :ref:`translateDimer`(const :ref:`gpr::Observation`& middle_point, const :ref:`gpr::Coord`& orient, const :ref:`gpr::Observation`& approx_obs, const double curvature, :ref:`gpr::LBFGSInfo`& trans_info, :ref:`gpr::Coord`& R_new); bool :ref:`updateActiveFrozenAtoms`(const :ref:`gpr::Coord`& R_new, :ref:`gpr::LBFGSInfo`& rot_info, :ref:`gpr::LBFGSInfo`& trans_info); void :target:`setVarianceGateConfig`(const :ref:`VarianceGateConfig`& cfg); const :ref:`VarianceGateConfig`& :target:`getVarianceGateConfig`() const; void :ref:`setVarianceAcceptTau`(double tau); void :ref:`writeTraceFrame`(const :ref:`gpr::Observation`& obs, const std::string& phase, size_t idx); void :ref:`archiveObservations`(const :ref:`gpr::Observation`& obs); double :target:`getVarianceAcceptTau`() const; void :ref:`setVarianceAcceptTauRelative`(double tau_relative); double :target:`getVarianceAcceptTauRelative`() const; :ref:`gpr::Index_t` :target:`getVarianceSkippedAccurateCalls`() const; :ref:`gpr::Index_t` :target:`getImspeSoftSkippedCalls`() const; :ref:`gpr::Index_t` :target:`getImspeFixedThetaRefreshCalls`() const; :ref:`gpr::Index_t` :target:`getFixedThetaRefreshCalls`() const; :ref:`gpr::Index_t` :target:`getImspeAdmittedNearDuplicateObservations`() const; :ref:`gpr::Index_t` :ref:`getDedupRejectedObservations`() const; void :ref:`setAlignmentAbortTol`(double tol); void :ref:`setAbortOnDegenerateProbes`(bool enabled); void :ref:`setMaxOracleCalls`(:ref:`gpr::Index_t` calls); :ref:`gpr::Index_t` :target:`maxOracleCalls`() const; void :ref:`setIndexFrequencyResolution`(double wavenumber); double :target:`indexFrequencyResolution`() const; void :ref:`setRejectHigherIndexSurrogateConvergence`(bool enabled); bool :target:`measuredIndexRecoveryEnabled`() const; void :ref:`setExternalTerminalCertificate`(bool enabled); Eigen::Index :target:`lastNegativeModeCount`() const; void :ref:`setMeasuredEnergyCeiling`(double ceiling); void :ref:`setSaddleEnergyFloor`(double floor); bool :ref:`lastRefinementReachedIndexOne`() const; void :ref:`setAbortOnInteratomicCollapse`(bool enabled); void :ref:`setPreserveInitialAlignmentReference`(bool enabled); void :ref:`setLikelihoodNoiseFloorSigma2`(double floor_sigma2); void :ref:`setSelfOwnedModelProfile`(:ref:`gpr::GPModelProfile` profile); void :ref:`setSelfOwnedUseZblPriorMean`(bool use); void :target:`setSelfOwnedUseFfPriorMean`(bool use); double :target:`getAlignmentAbortTol`() const; void :ref:`setLeashRelaxWhenClose`(bool enabled); bool :target:`getLeashRelaxWhenClose`() const; void :target:`setEvaluateImage1EachPhase`(bool enabled); bool :target:`getEvaluateImage1EachPhase`() const; void :target:`setConvergenceForceNorm`(int norm_type); void :target:`setProjectRigidModesForConvergence`(bool enabled); void :ref:`setOracleBatchChunk`(Eigen::Index chunk); Eigen::Index :target:`getOracleBatchChunk`() const; void :target:`setProfilePhaseTiming`(bool enabled); bool :target:`getProfilePhaseTiming`() const; void :target:`setProfileDimerTimes`(bool enabled); bool :target:`getProfileDimerTimes`() const; void :target:`setUseHssvdAnalyticCurvature`(bool enabled); bool :target:`getUseHssvdAnalyticCurvature`() const; void :target:`setHssvdModeSelectionPolicy`(:ref:`HssvdModeSelectionPolicy` policy); :ref:`gpr::Index_t` :target:`activeSetChangeCount`() const; :ref:`gpr::Index_t` :target:`activeFrozenCount`() const; void :target:`setHdf5TracePath`(const std::string& path); void :ref:`setUncertaintyAwareRotation`(bool enabled); void :ref:`setProjectMeasuredRotations`(bool enabled); void :ref:`setKappaDimer`(double beta); double :target:`kappaDimerBeta`() const; const std::string& :target:`getHdf5TracePath`() const; void :target:`setHdf5TraceEnabled`(bool enabled); bool :target:`hdf5TraceEnabled`() const; }; .. _details-classatmd_1_1_atomic_dimer: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Atomic dimer. Fields ------ .. index:: pair: variable; atoms_config .. _doxid-classatmd_1_1_atomic_dimer_1a5abe43126d91cd6b5e4c056c82c3ba06: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`gpr::AtomsConfiguration` atoms_config Configuration of atoms Construction ------------ .. index:: pair: function; AtomicDimer .. _doxid-classatmd_1_1_atomic_dimer_1ad10284c81669626fddde155eeee5bb5f: .. ref-code-block:: cpp :class: doxyrest-title-code-block AtomicDimer() Default constructor. Methods ------- .. index:: pair: function; initialize .. _doxid-classatmd_1_1_atomic_dimer_1a047d3f493093933a058853266e7547b6: .. ref-code-block:: cpp :class: doxyrest-title-code-block void initialize(const :ref:`gpr::InputParameters`& parameters, const :ref:`gpr::Observation`& initial_data, const :ref:`gpr::Observation`& middle_point, const :ref:`gpr::Coord`& initial_orientation, const :ref:`gpr::AtomsConfiguration`& init_atom_config) Initilalize with initial data. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - parameters - Structure of parameters from the input file * - initial_data - Initial observation (energy, gradients, positions) * - middle_point - Initial observation at the middle point (energy, gradients, positions) * - initial_orientation - Initial orientation of the dimer * - init_atom_config - Structure with initial configuration of atoms .. index:: pair: function; setAtomsConfiguration .. _doxid-classatmd_1_1_atomic_dimer_1a37eab0780587f9f887ac47b3b77857b9: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setAtomsConfiguration(const :ref:`gpr::AtomsConfiguration`& _atoms_config) Set configuration of the atoms. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - _atoms_config - A reference configuration .. index:: pair: function; execute .. _doxid-classatmd_1_1_atomic_dimer_1adb888b7c810990a39ebce58b985fd2d9: .. ref-code-block:: cpp :class: doxyrest-title-code-block void execute(:ref:`pot::PotentialWrapper`& general_potential) This function uses the atomic GP-dimer method to converge to a saddle point, starting from somewhere inside the convergence area. The relaxation of the dimer on the approximated energy surface is done according to a dimer method, where a rotation step rotates the dimer (a pair of images) towards its minimum energy orientation to find the lowest curvature mode of the potential energy and translation step moves the dimer towards the saddle point by inverting the force component in the direction of the dimer. After each relaxation phase, the energy and gradient are acquired at the middle point of the dimer, and the GP hyperparameters are reoptimized. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - general_potential - Reference to a class of general potential or to the object of *Matter* class (in a case of coupling with EON) .. index:: pair: function; setSecantHessianConfig .. _doxid-classatmd_1_1_atomic_dimer_1ab7ed1b67e5a98b017843b2c98340c526: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setSecantHessianConfig(const :ref:`gpr::optim::SecantHessianConfig`& config) Replace the true-force secant and drop its history. .. index:: pair: function; setSecantOrientationSeed .. _doxid-classatmd_1_1_atomic_dimer_1a579fb5b82310103c96e008aeb2c3c33d: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setSecantOrientationSeed(bool enabled) A caller that already seeded the orientation from a secant of its own turns this off, so the dimer's secant, replayed from whatever rows it was handed, does not replace that seed. The Hessian seeds are kept. .. index:: pair: function; secantLedger .. _doxid-classatmd_1_1_atomic_dimer_1a41b1edd58714c7d68548f5c18ce35410: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`gpr::optim::SecantCurvatureCounts` secantLedger() const Pair, probe and rejection counts, without the GP's quadratic-mean uses. .. index:: pair: function; setMaxWallSeconds .. _doxid-classatmd_1_1_atomic_dimer_1ade29d42af461b89d0c131f651fb2218c: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setMaxWallSeconds(double seconds) Set a wall-clock cap measured from this call. Non-positive disables. .. index:: pair: function; setWallClockLimit .. _doxid-classatmd_1_1_atomic_dimer_1a1722ee46b60db17e2ce7241e28b05227: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setWallClockLimit(std::shared_ptr`> limit) Share an enclosing deadline (used by OCI-NEB and deterministic tests). .. index:: pair: function; setTrainingPolicy .. _doxid-classatmd_1_1_atomic_dimer_1a8ad1eaea4594a2c3f0616d3149dbebd3: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setTrainingPolicy(const :ref:`gpr::policy::TrainingPolicy`* policy) Not owned. The pointer must outlive :ref:`execute() `. Null is the engine. .. index:: pair: function; setTrainingPolicy .. _doxid-classatmd_1_1_atomic_dimer_1a4dc93c86c8e1a79d120e20c7d17ba6e3: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setTrainingPolicy(std::shared_ptr`> policy) Keeps a Python adapter alive for :ref:`execute() `, which releases the GIL. .. index:: pair: function; stopForWallClockLimit .. _doxid-classatmd_1_1_atomic_dimer_1a2c5907503fb0df9c14b24e07f924b380: .. ref-code-block:: cpp :class: doxyrest-title-code-block void stopForWallClockLimit() Mark a deadline raised by certificate/refinement work outside :ref:`execute() `. Restores the latest measured midpoint when one is available. .. index:: pair: function; certifyStoppedForce .. _doxid-classatmd_1_1_atomic_dimer_1a8fb08398c8847d4d3816ae995f0883f0: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool certifyStoppedForce(:ref:`pot::PotentialWrapper`& potential, double step, int& calls) One Cartesian stencil after the force loop has stopped, then a min-mode escape when that stencil is higher-order. ``calls`` counts those evaluations, which go through the search's counted and budgeted oracle path. True only when a measured stencil certifies a first-order saddle; an unmeasured stop is uncertified. .. index:: pair: function; setForceStopCertificateStep .. _doxid-classatmd_1_1_atomic_dimer_1a4993c92d8c926f72a6a36d258d249ed6: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setForceStopCertificateStep(double step) Displacement of the index stencil :ref:`execute() ` measures at a force stop before it reports convergence. Defaults to defaultStencilStep(). Zero, or setExternalTerminalCertificate(true), hands the certificate to the caller: :ref:`execute() ` then reports the force stop, and the caller must certify it before claiming a saddle. .. index:: pair: function; setVibrationalStencil .. _doxid-classatmd_1_1_atomic_dimer_1aa04afbe17c6ab0752c5248667c9ca478: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setVibrationalStencil(:ref:`gpr::optim::VibrationalStencil` mode) Full measures every coordinate of the force-stop stencil. Vibrational measures vibrationalStencilDirections. Both displace every coordinate of a lone atom. .. index:: pair: function; getForceStopCertified .. _doxid-classatmd_1_1_atomic_dimer_1aab8484b82d102aae858ad8e05df04bed: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool getForceStopCertified() const Whether the last :ref:`execute() ` certified its force stop as index one. .. index:: pair: function; getForceStopCertificateCalls .. _doxid-classatmd_1_1_atomic_dimer_1ab5742c032f7450483eaf992fb4b61712: .. ref-code-block:: cpp :class: doxyrest-title-code-block int getForceStopCertificateCalls() const Oracle evaluations the last :ref:`execute() ` spent on its force-stop certificate, including escapes. They are part of getNumEvaluations(). .. index:: pair: function; hasValidAtomsConfiguration .. _doxid-classatmd_1_1_atomic_dimer_1a526d2bd34bb616b69645b0ec26da8dd9: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool hasValidAtomsConfiguration() Whether the atoms configuration holds the moving-atom set that :ref:`execute() ` needs. :ref:`execute() ` returns without searching when this is false; callers that bind the dimer to another language use it to report that as an error. .. index:: pair: function; getFinalRotationAngle .. _doxid-classatmd_1_1_atomic_dimer_1ac25a27c90f6828e17c7b93547370fcb6: .. ref-code-block:: cpp :class: doxyrest-title-code-block double getFinalRotationAngle() const Min-mode rotational angle omega (radians) at the converged midpoint, or NaN if no converged phase recorded it. A small omega means the dimer axis is aligned with the true lowest-curvature eigenvector, so the caller can certify a flat saddle on angle + negative curvature rather than force alone. .. index:: pair: function; getLatestModeCurvature .. _doxid-classatmd_1_1_atomic_dimer_1af7e6c82870520a6d8a58fc04271af73b: .. ref-code-block:: cpp :class: doxyrest-title-code-block double getLatestModeCurvature() const Latest min-mode curvature from a dimer rotation. The force-stop stencil records the returned curvature separately in :ref:`getFinalCurvature() `. .. index:: pair: function; finalMidpoint .. _doxid-classatmd_1_1_atomic_dimer_1a20eba0c9f53e65138a5d04fef9c97535: .. ref-code-block:: cpp :class: doxyrest-title-code-block const :ref:`gpr::Observation`& finalMidpoint() const Midpoint recorded at the end of :ref:`execute() `. .. index:: pair: function; isMinModeAngleCertified .. _doxid-classatmd_1_1_atomic_dimer_1a45a0765a0bced88290b4043249f82fc9: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isMinModeAngleCertified() const True iff the converged min-mode is angle-certified: a converged phase recorded a finite rotation omega within the dimer's own true-PES rotation tolerance (stop_citeria_dimer.angle_rotation) AND the converged curvature is negative (a real saddle direction). Uses the tolerance the dimer already rotated to no new constant. .. index:: pair: function; getFinalRotationResidual .. _doxid-classatmd_1_1_atomic_dimer_1a30f0dfafa7aa1d90ccaaa95443df598d: .. ref-code-block:: cpp :class: doxyrest-title-code-block double getFinalRotationResidual() const Measured eigen-residual of the terminal mode in the convergence force norm: the gradient difference across the dimer after removing its component along the mode. Infinite until a converged phase records it. .. index:: pair: function; measuredModeIsCertified .. _doxid-classatmd_1_1_atomic_dimer_1ae17ed55cd728bbb334538aa11bc199ff: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool measuredModeIsCertified() const The recorded terminal mode has negative curvature and either its rotation angle is within the angle tolerance or the measured rotation sequence at its midpoint stopped lowering the residual. .. index:: pair: function; terminalModeIsReady .. _doxid-classatmd_1_1_atomic_dimer_1a62c0e70b202e71f3c496a8934a6ab7d8: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool terminalModeIsReady() const A resolved negative direction suffices for handback when the caller certifies the complete Hessian. Standalone searches require the measured mode's rotation certificate. .. index:: pair: function; refineMeasuredModeCurvature .. _doxid-classatmd_1_1_atomic_dimer_1a2490daa2f96f61f9b650d8b045f68224: .. ref-code-block:: cpp :class: doxyrest-title-code-block void refineMeasuredModeCurvature(const :ref:`gpr::Observation`& midpoint, const :ref:`gpr::Coord`& orientation, :ref:`pot::PotentialWrapper`& potential, double surrogate_curvature) Refine the measured mode curvature with a second image at twice the dimer separation when the single forward difference is within the surrogate's disagreement with it; one oracle call. .. index:: pair: function; getFinalGradientAtMidPoint .. _doxid-classatmd_1_1_atomic_dimer_1a74ceca7013f0a72bf4cd92ccd74dd26a: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::VectorXd getFinalGradientAtMidPoint() const Return the final gradient dE/dR at the middle point. The dimer stores gradients, so this is the negative of the force. .. index:: pair: function; getFinalForceAtMidPoint .. _doxid-classatmd_1_1_atomic_dimer_1ab17977fe638069de20c72a00dc5c3257: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::VectorXd getFinalForceAtMidPoint() const Deprecated alias of :ref:`getFinalGradientAtMidPoint() `. Despite the name it returns the gradient, not the force. Kept so existing callers keep their values; use the gradient name, or negate the result for the force. .. index:: pair: function; getFinalForceNormForConvergence .. _doxid-classatmd_1_1_atomic_dimer_1a9a1b50f92107049550f812363c53e235: .. ref-code-block:: cpp :class: doxyrest-title-code-block double getFinalForceNormForConvergence() const Return final force in the configured convergence norm. .. index:: pair: function; getFinalCoordOfMidPoint .. _doxid-classatmd_1_1_atomic_dimer_1a378069e5e18da31aaad378fe95f7ec01: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::VectorXd getFinalCoordOfMidPoint() const Return final coordinates of the middle point. .. index:: pair: function; restartFromHigherOrderPoint .. _doxid-classatmd_1_1_atomic_dimer_1a3a8b43e736e3f03057bc3b3d8e1e442a: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool restartFromHigherOrderPoint(const Eigen::MatrixXd& cartesian_hessian, const Eigen::VectorXd& kick, const :ref:`gpr::Observation`& measured_rows, :ref:`pot::PotentialWrapper`& potential) From a converged midpoint the complete stencil shows to be a higher-order saddle: retain the measured rows along its weak negative mode, refit, and run the order-one search on the surrogate from the stencil Hessian (Cartesian, eV/A^2), started one stencil separation along ``kick`` on the side the surrogate ranks lower. The returned point is measured, and the next execute starts from it. .. index:: pair: function; refineSaddleFromMeasuredHessian .. _doxid-classatmd_1_1_atomic_dimer_1ab67f1a6b2aca89b92b532a825ba905b3: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool refineSaddleFromMeasuredHessian(const Eigen::MatrixXd& cartesian_hessian, :ref:`pot::PotentialWrapper`& potential, double resolution = 0.0) From a converged midpoint whose complete stencil shows a soft second negative mode (a weak mode resolved by the refinement, or a coarse curvature within twice the resolution): the force along it stays below the convergence threshold over displacements far longer than a dimer step, so a force-driven search stops anywhere on that ridge. Starting from the measured ``cartesian_hessian`` (eV/A^2), partitioned rational-function steps on the oracle maximize along the lowest mode and minimize along all others, with a Bofill update of a mass-weighted model from each measured gradient, rigid motion projected at the current geometry, and a Cartesian trust radius that starts at the translation limit. The two-sided defect of the modelled energy change over the clamped step, beyond the energy a force at the convergence threshold makes over the step in the configured norm, scores each step under the scale-free trust-region thresholds: a low score rejects the step and halves the radius, a high score after a clamped step restores it. The translation limit bounds the whole step on an inferred model. With ``complete_stencil``, for a Hessian measured on every coordinate, it bounds the largest atomic displacement of the step, so the radius may reach the length at which the most displaced atom moves by the limit. After a rejected step, and before an index-one model ends the walk, the model's two lowest modes, and every further mode whose curvature lies within ``resolution`` (eV/(A^2 amu), the empirical resolution of the measurement that produced the Hessian) of zero, are measured by one Hessian action each at the dimer separation. With a positive ``resolution`` the walk was seeded by a complete stencil and ends at one, so an index-one model is then tested by the stencil's own four-point difference along the two steering modes (eight calls): a second curvature that is negative beyond its truncation error keeps the walk going. The walk takes the dimer's outer-iteration limit and oracle budget. It stops once the measured model has index one and the force is inside the tolerance, when the radius falls below coordinate resolution, or at the saddle energy floor; the floor and a walk without a step return false and leave the midpoint to the order-one restart, every other end hands the end point to the next search. One oracle call per step; the probes stay out of the training set, the end point becomes its only new row, and the next execute starts from it along the model's lowest mode. .. index:: pair: function; refineSaddleFromMeasuredHessian .. _doxid-classatmd_1_1_atomic_dimer_1ac05c53a44023531033cbb6537d5456d2: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool refineSaddleFromMeasuredHessian(const Eigen::MatrixXd& cartesian_hessian, :ref:`pot::PotentialWrapper`& potential, :ref:`gpr::Observation`* raw_candidate, double resolution = 0.0, bool complete_stencil = false) Return the exact raw oracle endpoint in packed moving coordinates when an index-one refinement ends strictly inside the force tolerance. This measurement carries no physical-frame or terminal certificate; the two-argument overload retains the same walk and handoff behavior. .. index:: pair: function; commitExternallyCertifiedRefinement .. _doxid-classatmd_1_1_atomic_dimer_1a38669b8a659a4be78ad647a5c1737c4f: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool commitExternallyCertifiedRefinement(const :ref:`gpr::Observation`& raw_center, const Eigen::MatrixXd& certified_cartesian_hessian, const Eigen::MatrixXd& certified_mass_weighted_basis, bool first_order_certificate) Commit the same endpoint under the caller's complete first-order certificate and mass-weighted physical frame. The caller establishes matching oracle, cell, atom order and complete allowed coordinate space. The frame may be nonorthonormal; its mass-weighted Gram matrix selects the mode, which is reported as a Cartesian unit direction and Rayleigh curvature. This performs no evaluation, archive write, training admission or posterior fit. Raw energies are absolute and must roundtrip exactly through the retained energy gauge; the retained endpoint remains unconditioned in the GP. With initialized MPI this is collective: one rank's refusal prevents every rank's commit. .. index:: pair: function; hasUnconditionedObservations .. _doxid-classatmd_1_1_atomic_dimer_1a42b21701c91780c11a7f5bb61e67106c: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool hasUnconditionedObservations() const Retained measurements require conditioning before a posterior can represent the current observed data. The raw model accessor exposes its existing fitted state independently of the measured final point. .. index:: pair: function; restartAlongWeakMode .. _doxid-classatmd_1_1_atomic_dimer_1a135844cbff9172d97a0c0c68382bb4be: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool restartAlongWeakMode(const Eigen::VectorXd& direction, double length, const :ref:`gpr::Observation`& measured_rows, :ref:`pot::PotentialWrapper`& potential) The complete stencil cannot certify the weak modes of the converged midpoint positive. The curvature of the softest weak mode changes along the flat valley it spans; the search continues from the point ``length`` along the unit Cartesian ``direction``, signed so that the curvature rises. The refinement rows become training rows, the moved point is measured, and the next execute starts from it. A supplied Cartesian Hessian carries a measured negative subspace into fresh index probes before the search returns for a complete stencil. .. index:: pair: function; getTotalForceCalls .. _doxid-classatmd_1_1_atomic_dimer_1a97b2b3baf67ee59e469c9c819d01ebbc: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`gpr::Index_t` getTotalForceCalls() const Return the total number of force calls. .. index:: pair: function; measureCurvatureProbes .. _doxid-classatmd_1_1_atomic_dimer_1a73833138524d7632778e22440a3c54bc: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool measureCurvatureProbes(const :ref:`gpr::Coord`& positions, :ref:`pot::PotentialWrapper`& potential, :ref:`gpr::Observation`& raw) Measure an all-moving Cartesian probe batch, one geometry per row. Every rank participates; the root supplies the positions and each point has one owner. Scalar engine calls preserve pointwise values. A batch that exceeds the remaining oracle budget makes no calls. Successful raw rows retain absolute energies and physical gradients in the archive without entering the GP training set. Refusal or an owner failure clears raw; every attempted point is still counted. .. index:: pair: function; getTotalGPRForceCalls .. _doxid-classatmd_1_1_atomic_dimer_1a58f73c4226eacd52feab1fed472d58a9: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`gpr::Index_t` getTotalGPRForceCalls() const Return the total number of force calls. .. index:: pair: function; getIterations .. _doxid-classatmd_1_1_atomic_dimer_1ae7c4b6fd94206e0b8c35694c73d64d92: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`gpr::Index_t` getIterations() const Return the total number of cycles. This is essentially the number of relaxation phases .. index:: pair: function; getFinalEnergy .. _doxid-classatmd_1_1_atomic_dimer_1aa341bda7ab6f51689c84da506f03403b: .. ref-code-block:: cpp :class: doxyrest-title-code-block double getFinalEnergy() const Return final energy. .. index:: pair: function; getFinalCurvature .. _doxid-classatmd_1_1_atomic_dimer_1ac31d9dd15e261ded87f9344b5334e955: .. ref-code-block:: cpp :class: doxyrest-title-code-block double getFinalCurvature() const Return final curvature. .. index:: pair: function; getConverged .. _doxid-classatmd_1_1_atomic_dimer_1acec1257c507cd1423d0d689527b894a4: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool getConverged() const Return true when the final force convergence criterion is met. .. index:: pair: function; getMaxStepLength .. _doxid-classatmd_1_1_atomic_dimer_1a71d9a31b3eb9a07ad23cba5eb4b21581: .. ref-code-block:: cpp :class: doxyrest-title-code-block double getMaxStepLength() const The bound of one translation step in Cartesian length (Angstrom). .. index:: pair: function; getConvergenceForce .. _doxid-classatmd_1_1_atomic_dimer_1ae4802e7cffd3bb8bfe5c76ed61d66aa8: .. ref-code-block:: cpp :class: doxyrest-title-code-block double getConvergenceForce() const Force norm below which the dimer search is converged. .. index:: pair: function; setConvergenceForce .. _doxid-classatmd_1_1_atomic_dimer_1a98e46ae5ed55f4102ad77bfa26d58d6f: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setConvergenceForce(double force) Replace the configured true-PES force criterion and the live stop. .. index:: pair: function; convergenceForceNorm .. _doxid-classatmd_1_1_atomic_dimer_1a7ecc1cede67c66c76b053d09ea31880a: .. ref-code-block:: cpp :class: doxyrest-title-code-block double convergenceForceNorm(const Eigen::Ref& positions, const Eigen::Ref& gradient) const ``gradient`` in the norm the convergence test applies at ``positions``. .. index:: pair: function; getFinalOrientation .. _doxid-classatmd_1_1_atomic_dimer_1a814a8d892f85e8123b529e7a5248b157: .. ref-code-block:: cpp :class: doxyrest-title-code-block const :ref:`gpr::Coord`& getFinalOrientation() const Return final orientation of the dimer. .. index:: pair: function; getPhaseHistory .. _doxid-classatmd_1_1_atomic_dimer_1ad9c5a7133194f50e7becea0ac1d33ea4: .. ref-code-block:: cpp :class: doxyrest-title-code-block const std::vector<:ref:`DimerPhaseRecord`>& getPhaseHistory() const Return the per-phase dimer trajectory history. .. index:: pair: function; getMeasuredIndexZeroHessian .. _doxid-classatmd_1_1_atomic_dimer_1ae5d4937f14fd020bfc875a4147ba7a05: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::MatrixXd getMeasuredIndexZeroHessian() const Cartesian Hessian of the complete measured expansion at the midpoint a MeasuredIndexZero relaxation stopped on, rigid directions zero. Empty after any other termination. .. index:: pair: function; getMeasuredIndexZeroResolution .. _doxid-classatmd_1_1_atomic_dimer_1a788228d9ba8ad17d34340cf195bf2ade: .. ref-code-block:: cpp :class: doxyrest-title-code-block double getMeasuredIndexZeroResolution() const Empirical resolution in the mass-weighted physical space of the walk (eV/(A^2 amu)); zero after any other termination. .. index:: pair: function; gpMeanHessianAtMidpoint .. _doxid-classatmd_1_1_atomic_dimer_1a49149f3977b43dd762e920a23191330e: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::MatrixXd gpMeanHessianAtMidpoint() Hessian of the fitted posterior mean at the final midpoint, on all 3N Cartesian coordinates (eV/A^2), symmetrized; empty without a fitted model or a midpoint. No oracle call: the surrogate's own curvature, which proposes where a measurement should look. .. index:: pair: function; previewFirstSurrogateAction .. _doxid-classatmd_1_1_atomic_dimer_1a9372bcf345f7d288d75a6c2a11c1ae27: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`DimerSurrogateActionCertificate` previewFirstSurrogateAction(const :ref:`gpr::Observation`& oracle_middle_point, const :ref:`gpr::Coord`& initial_orientation) Evaluate exactly one GP-surrogate relaxation action without invoking the accurate potential. The initialized dimer parameters, model, observation set, force norm, and trust/globalization policy are all reused. .. index:: pair: function; getMidPointCoordForAllObservationPointsRef .. _doxid-classatmd_1_1_atomic_dimer_1ad8242fff72b0f20d8f78c65f117a714d: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`gpr::Coord`& getMidPointCoordForAllObservationPointsRef() Return gpr::Coordinates of all observed points. .. index:: pair: function; getEnergyForAllObservationPointsRef .. _doxid-classatmd_1_1_atomic_dimer_1a64cf09a15ca74be21f1120f5752688d6: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`gpr::FieldMatrixd`& getEnergyForAllObservationPointsRef() Return energies for all observed points. Return energies for all observation points. .. index:: pair: function; getGradientForAllObservationPointsRef .. _doxid-classatmd_1_1_atomic_dimer_1a552935dc36cc67bfdd3102454db15f01: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`gpr::Coord`& getGradientForAllObservationPointsRef() Return gradients for all observed points. Return gradients for all observation points. .. index:: pair: function; getGPRModel .. _doxid-classatmd_1_1_atomic_dimer_1a2e62b66056603accb627c2280097b6ae: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`gpr::GaussianProcessRegression`* getGPRModel() Get GPR model. .. index:: pair: function; preserveSeedKernel .. _doxid-classatmd_1_1_atomic_dimer_1ab42e3f55396097f9e55311261544ca8d: .. ref-code-block:: cpp :class: doxyrest-title-code-block void preserveSeedKernel() Retain an imported kernel's parameters and absolute energy origin. .. index:: pair: function; attachExternalGP .. _doxid-classatmd_1_1_atomic_dimer_1a9ae6445de6eca584b5127419b3ba4b83: .. ref-code-block:: cpp :class: doxyrest-title-code-block void attachExternalGP(:ref:`gpr::GaussianProcessRegression`* external_gp) Attach an externally-owned GPR model. Must be called BEFORE ~initialize~. The dimer will use this GP for all predict, refit, Cholesky and variance calls, and will NOT call its ~initialize(parameters, atoms_config)~ entry (the external owner has already done that). The dimer takes no ownership: the GP is not deleted in the destructor. Use case: ~OCINEBController~ shares the long-lived ~ActiveLearningSession::gp~ across NEB outer iters and MMF bursts so the singleton ~DistributedState~ distributed factor stays coherent across phases. Idempotent: passing nullptr restores the legacy self-owned path (which ~initialize~ will then lazily allocate). .. index:: pair: function; getNumNewObservations .. _doxid-classatmd_1_1_atomic_dimer_1a4fea6c9f51e852572827c9fafc48b693: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`gpr::Index_t` getNumNewObservations() const Number of accurate (general-potential) observations the dimer accumulated during ~execute~. Equals ~all_obs.E.rows() - N_obs_init~. The caller can pair this with ~getMidPointCoordForAllObservationPointsRef~ / ~getEnergyForAllObservationPointsRef~ / ~getGradientForAllObservationPointsRef~ to harvest the new rows back into a shared ~session.training_obs~ buffer. Energies are relative to ~getEnergyZeroLevel()~ as documented above. .. index:: pair: function; getInitialObservationCount .. _doxid-classatmd_1_1_atomic_dimer_1a8326f2759ac027a91f75accac57074ed: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`gpr::Index_t` getInitialObservationCount() const Index of the first row in ~all_obs~ that the dimer appended during ~execute~. Pair with ~getNumNewObservations~ for harvest bookkeeping. .. index:: pair: function; getEnergyZeroLevel .. _doxid-classatmd_1_1_atomic_dimer_1a8bd40f6f0c1e4d02ab33e6a1f09711ba: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`gpr::FieldMatrixd` getEnergyZeroLevel() const Internal E_zero_level used by the dimer's cutOffEnergy bookkeeping. The energies returned by ~getEnergyForAllObservationPointsRef~ and ~getFinalEnergy~ are *relative to* this value, not absolute PES energies. Add E_zero_level back to recover the absolute energy. Required by the OCINEB controller when harvesting the dimer's all_obs into a shared training_obs that the NEB expects to hold absolute PES energies. .. index:: pair: function; callGeneralPotentialFromEON .. _doxid-classatmd_1_1_atomic_dimer_1ab33f139dc245bde8d2f3897fbdb0de47: .. ref-code-block:: cpp :class: doxyrest-title-code-block void callGeneralPotentialFromEON(const :ref:`gpr::vector3_reg`(&) cell_dimensions[3], :ref:`gpr::Observation`& mid_point, :ref:`pot::PotentialWrapper`& potential) Call for a potential defined in a *Matter* object. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - cell_dimensions - Dimensions of the cell in EON 9 element format * - mid_point - The point on which to obtain the potential * - potential - The potential wrapper used for the evaluation .. index:: pair: function; isFinalConvergenceReached .. _doxid-classatmd_1_1_atomic_dimer_1a9bf07ca1080812f1571e77483cbd5123: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isFinalConvergenceReached(const :ref:`gpr::Observation`& middle_point, const double stop_criteria) Final convergence test for force. Compares forceNormForConvergence of the midpoint gradient to stop_criteria (T_dimer). The default norm is L2 of the full gradient vector (:ref:`ConvergenceNormType::L2_NORM `). Linf and per-atom max are selectable; they are not the default. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - middle_point - The current mid-point of the configuration * - stop_criteria - The final convergence threshold .. rubric:: Returns: *true* if final convergence is reached .. index:: pair: function; isRotationalConvergenceReached .. _doxid-classatmd_1_1_atomic_dimer_1afcbf2069f199188c5a705fcd475a3ee2: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isRotationalConvergenceReached(const :ref:`gpr::Coord`& orient, :ref:`gpr::Observation`& middle_point) Rotational convergence test. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - orient - Current dimer orientation * - middle_point - Current midpoint observation, including its gradient .. rubric:: Returns: *true* if rotational convergence is reached .. index:: pair: function; isApproximateRotationalConvergenceReached .. _doxid-classatmd_1_1_atomic_dimer_1a1b82520311e936c809bfb756da202f7f: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isApproximateRotationalConvergenceReached(const :ref:`gpr::Coord`& orient, const :ref:`gpr::Observation`& approx_obs, const double stop_criteria) GP-stencil rotational convergence test. Evaluates the same finite-dimer angle equation used by the rotation optimizer on an approximate midpoint/image-1 stencil. .. index:: pair: function; rotateDimer .. _doxid-classatmd_1_1_atomic_dimer_1a39e0367e6848ba7cbb8d755d688c4000: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool rotateDimer(const double stop_criteria, :ref:`gpr::Coord`& orient, :ref:`gpr::LBFGSInfo`& rot_info, :ref:`gpr::Observation`& middle_point, :ref:`gpr::Observation`& approx_obs) Rotate the dimer. .. index:: pair: function; translateDimer .. _doxid-classatmd_1_1_atomic_dimer_1a22dad1926492baf62cb0980a64a853c4: .. ref-code-block:: cpp :class: doxyrest-title-code-block void translateDimer(const :ref:`gpr::Observation`& middle_point, const :ref:`gpr::Coord`& orient, const :ref:`gpr::Observation`& approx_obs, const double curvature, :ref:`gpr::LBFGSInfo`& trans_info, :ref:`gpr::Coord`& R_new) Translate the dimer. .. index:: pair: function; updateActiveFrozenAtoms .. _doxid-classatmd_1_1_atomic_dimer_1ae87b441a456a06eb19cc33b01d3b7245: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool updateActiveFrozenAtoms(const :ref:`gpr::Coord`& R_new, :ref:`gpr::LBFGSInfo`& rot_info, :ref:`gpr::LBFGSInfo`& trans_info) Update active frozen atoms. .. rubric:: Returns: True if new atoms are activated .. index:: pair: function; setVarianceAcceptTau .. _doxid-classatmd_1_1_atomic_dimer_1a8c892408cc1d064cb4f49b3e9b3eed99: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setVarianceAcceptTau(double tau) Convenience setter for the absolute accept_tau alone; other fields of the default-constructed :ref:`VarianceGateConfig ` are preserved. .. index:: pair: function; writeTraceFrame .. _doxid-classatmd_1_1_atomic_dimer_1a62172929848a1749c3115a801ab15e70: .. ref-code-block:: cpp :class: doxyrest-title-code-block void writeTraceFrame(const :ref:`gpr::Observation`& obs, const std::string& phase, size_t idx) Record one dimer-trace frame. With a corpus attached, writes a one-frame CON (energy, frame_index, phase in prebox1) onto the phase trajectory (1=outer_loop, 2=inner_loop, 3=initial_rotations). With no corpus, falls through to writeHDF5 when WITH_HDF5. .. index:: pair: function; archiveObservations .. _doxid-classatmd_1_1_atomic_dimer_1a391e8489731983d7d7bf96775bde6986: .. ref-code-block:: cpp :class: doxyrest-title-code-block void archiveObservations(const :ref:`gpr::Observation`& obs) Persist every row of ``obs`` to the observation archive when one is attached; a no-op otherwise. Never gates the science path. .. index:: pair: function; setVarianceAcceptTauRelative .. _doxid-classatmd_1_1_atomic_dimer_1a9e8017f4df4027d4cee637d6d36c5c52: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setVarianceAcceptTauRelative(double tau_relative) Convenience setter for the relative accept_tau alone. The effective absolute threshold is recomputed on every gate call from the current magnSigma2, so this setter need not be re-invoked when SCG re-fits the hyperparameters between outer iterations. .. index:: pair: function; getDedupRejectedObservations .. _doxid-classatmd_1_1_atomic_dimer_1af4d698a055936c56844fb4543445fcd0: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`gpr::Index_t` getDedupRejectedObservations() const Number of freshly oracled rows the dimer rejected as EMD near-duplicates of an existing observation during ~execute~. A degenerate probe carries no conditioning information; a run of them is what the early-handback criterion watches. .. index:: pair: function; setAlignmentAbortTol .. _doxid-classatmd_1_1_atomic_dimer_1a562f8d1edff0a9f213aaa691d9e5087b: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setAlignmentAbortTol(double tol) Alignment-governed termination tolerance alpha_tol. When > 0, each outer dimer phase computes alpha = abs(dot(d, tau)) between the current dimer axis and the axis that initialized the burst. The burst terminates when alpha drops below this tolerance. <= 0 disables the check. .. index:: pair: function; setAbortOnDegenerateProbes .. _doxid-classatmd_1_1_atomic_dimer_1ab3fe244e39f9d513c706c4adf00b66ed: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setAbortOnDegenerateProbes(bool enabled) Abort the search after ~kMaxConsecutiveDegenerateProbes~ EMD near-duplicate probes even without an alignment reference. The burst gets this through its alignment tolerance; a standalone search (the index-certificate escape) has no reference axis but the same degenerate-probe loop: the surrogate reports convergence at a point whose row it already holds, the oracle disagrees, and every re-measurement coalesces into that row. .. index:: pair: function; setMaxOracleCalls .. _doxid-classatmd_1_1_atomic_dimer_1a91d949ac0a582d9c288c2533eba8f576: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setMaxOracleCalls(:ref:`gpr::Index_t` calls) Caller's budget of true potential evaluations. No oracle call is started that would exceed it; the search then stops with :ref:`DimerRelaxationTerminationReason::OracleBudget `, unconverged. Zero or less leaves the search unbounded by calls. .. index:: pair: function; setIndexFrequencyResolution .. _doxid-classatmd_1_1_atomic_dimer_1abe6759fa2c3c85968c71c5362d114754: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setIndexFrequencyResolution(double wavenumber) Wavenumber (cm^-1) below which a mode counts as flat in the in-search index test: a measured curvature softer than this displacement's curvature at that wavenumber neither refuses the midpoint nor is followed. The independent validation reports such modes as unresolved at the same value. .. index:: pair: function; setRejectHigherIndexSurrogateConvergence .. _doxid-classatmd_1_1_atomic_dimer_1ab7eea1d9c927cb626a653d6fd4aeae06: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setRejectHigherIndexSurrogateConvergence(bool enabled) See want_second_negative_mode\_. .. index:: pair: function; setExternalTerminalCertificate .. _doxid-classatmd_1_1_atomic_dimer_1a2eb9d30e8f02bb8744226bd8884a4227: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setExternalTerminalCertificate(bool enabled) Hand a force-converged point with a measured negative direction to the caller's complete-Hessian certificate without rotating its mode. The caller must resolve the index before accepting the saddle. .. index:: pair: function; setMeasuredEnergyCeiling .. _doxid-classatmd_1_1_atomic_dimer_1aa7f42c92c7a995926e9afef91d835293: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setMeasuredEnergyCeiling(double ceiling) A converged midpoint whose measured (absolute) energy lies above ~ceiling~ is not accepted as converged. The escape from a refused index certificate looks for the saddle downhill of the refused point along its offending mode, so the saddle it may return lies below that point; a surrogate overshoot above it during the search is corrected by its own row and is not an abort. NaN disables. .. index:: pair: function; setSaddleEnergyFloor .. _doxid-classatmd_1_1_atomic_dimer_1acfaf3f16c6ac0dea6d6c42ac310c4172: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setSaddleEnergyFloor(double floor) Absolute energy below which no first-order saddle between the search endpoints can lie (the higher endpoint energy). A measured partitioned-RFO refinement that steps below it is abandoned. NaN disables. .. index:: pair: function; lastRefinementReachedIndexOne .. _doxid-classatmd_1_1_atomic_dimer_1a0f7fc99a9762691388ca8a4f299ccbfe: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool lastRefinementReachedIndexOne() const Whether the last measured partitioned-RFO refinement ended on an index-one model inside the force tolerance. .. index:: pair: function; setAbortOnInteratomicCollapse .. _doxid-classatmd_1_1_atomic_dimer_1af5f8aea9182c994e0d80f317f6e845cd: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setAbortOnInteratomicCollapse(bool enabled) Abort the search when a measured midpoint's shortest interatomic distance drops below ~ratio_at_limit~ times the seed's: the canonical gprd bound on interatomic distances, applied to the measured trajectory. A standalone search on a surrogate that does not hold its rows can slide into a repulsive wall phase after phase (10_tetrazine: 300 phases to 336 eV/A); the bound ends it at the first measured collapse. .. index:: pair: function; setPreserveInitialAlignmentReference .. _doxid-classatmd_1_1_atomic_dimer_1a81f0a635f16209b20d0f7ecdb42478b8: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setPreserveInitialAlignmentReference(bool enabled) Keep the caller-supplied dimer axis as the alignment reference when analytic HS-SVD installs a minimum mode. OCI-NEB enables this because its supplied axis is the reaction-path tangent: a minimum mode that rotates away from it belongs to a different channel. Standalone dimer searches may instead track the first certified HS-SVD mode. .. index:: pair: function; setLikelihoodNoiseFloorSigma2 .. _doxid-classatmd_1_1_atomic_dimer_1a61c745de4d74eb7555f0ca9db63a158c: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setLikelihoodNoiseFloorSigma2(double floor_sigma2) Likelihood noise floor (sigma_n^2, energy units squared) applied after every internal hyperparameter refit. The dimer's rows come from the same oracle as the caller's session GP, so its likelihood must carry the same reported-noise floor; the refit re-seeds sigma2 from data statistics and would otherwise fit near-duplicate dimer steps against a vanishing nugget (near-singular local covariance, garbage min-mode curvature). NaN or non-positive disables. .. index:: pair: function; setSelfOwnedModelProfile .. _doxid-classatmd_1_1_atomic_dimer_1ac3de6a531d1afad4c048c7396e38b806: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setSelfOwnedModelProfile(:ref:`gpr::GPModelProfile` profile) Model profile for the SELF-OWNED surrogate built by ~initialize~ from ~empty_obs~. An attached external GP keeps its owner's profile; the fresh-bootstrap burst must run the same coherent model family (classic CHEMGP/GPRD_ZBL vs EXTENDED) as the session it rescues. .. index:: pair: function; setSelfOwnedUseZblPriorMean .. _doxid-classatmd_1_1_atomic_dimer_1a99209303a4e638f60972d07d82ded12d: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setSelfOwnedUseZblPriorMean(bool use) ZBL residual prior mean for the self-owned surrogate; keeps the fresh-bootstrap burst on the same compression wall as the session model that hands off to it. .. index:: pair: function; setLeashRelaxWhenClose .. _doxid-classatmd_1_1_atomic_dimer_1af57aadeba85bf6cf336990eccbbc8c36: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setLeashRelaxWhenClose(bool enabled) When set, the band-tangent alignment-abort leash is suspended once the dimer is close to its force criterion (largest force component under twice the dimer convergence force). The controller enables this only for bursts where the band tangent is an unreliable saddle-mode seed the GP is over-confident-but-inaccurate at the CI, or the CI has reached the adaptive acceptance threshold. Far from the saddle the leash still holds, so a burst cannot wander onto a wrong saddle while the force is large; near the saddle the dimer is free to rotate onto the true local mode (which legitimately diverges from the coarse chain tangent). .. index:: pair: function; setOracleBatchChunk .. _doxid-classatmd_1_1_atomic_dimer_1a5b3cffb7b2a9a4e468ce5499a0065848: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setOracleBatchChunk(Eigen::Index chunk) :ref:`pot::OracleBatchLayout::chunk ` of every true-potential call: 0 shares the images out one by one and evaluates a rank's images in one call, K cuts a call into contiguous chunks of K images. .. index:: pair: function; setUncertaintyAwareRotation .. _doxid-classatmd_1_1_atomic_dimer_1a789c40efa077b17cbe44576fe7d6f2ce: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setUncertaintyAwareRotation(bool enabled) Enable the UA-Dimer rotational projection (DOI 10.48550/arxiv.2605.24401). .. index:: pair: function; setProjectMeasuredRotations .. _doxid-classatmd_1_1_atomic_dimer_1a2033fd11ff85eb95c6655ba058bf9d90: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setProjectMeasuredRotations(bool enabled) Exclude molecular rigid rotations from measured orientation searches. Translations, frozen coordinates and index certification keep their physical constraints independently of this search-space choice. .. index:: pair: function; setKappaDimer .. _doxid-classatmd_1_1_atomic_dimer_1a83384e5cc296c85d32c4f3618470e3cf: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setKappaDimer(double beta) Xiao contour force at nonnegative dimer curvature; the ordinary dimer force once the curvature along the dimer is negative.