.. index:: pair: class; gpr::neb::OCINEBController .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller: class gpr::neb::OCINEBController ================================ .. toctree:: :hidden: struct_gpr_neb_OCINEBController_CiAdaptiveState.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class OCINEBController { public: // structs struct :ref:`CiAdaptiveState`; // construction :target:`OCINEBController`(:ref:`OCINEBConfig` cfg); // methods void :ref:`initBaseline`(double baseline_force); bool :target:`baselineSet`() const; void :target:`recordMmfHandoffForce`(double handoff_force, bool handoff_data_ready = false); bool :ref:`shouldPrepareMmfHandoff`(bool trap_detected = false, bool band_information_exhausted = false, bool current_chain_certificate = false) const; bool :ref:`shouldTrigger`(double convForce, bool ci_active, long climbingImage, long numImages, bool ci_posterior_confident, bool trap_detected = false, std::size_t ntrain_now = 0, bool ci_is_energy_maximum = false, bool band_information_exhausted = false, bool oie_acquisition_quiet = false, bool rejected_seed_replay = false, bool current_chain_certificate = false, bool current_saddle_stencil_certificate = false, bool rejected_seed_position_matches = false, bool stagnation_handoff = false) const; void :ref:`recordMmfPosteriorUpdate`(); void :ref:`noteMmfRejectSurrogateSnapshot`(detail::MmfSurrogateFingerprint surrogate); void :ref:`noteMmfRejectActionSnapshot`(detail::MmfPosteriorActionFingerprint action); void :ref:`noteMmfSurrogateChange`(detail::MmfSurrogateFingerprint surrogate); void :ref:`noteMmfActionChange`(detail::MmfPosteriorActionFingerprint action); void :ref:`noteMmfMinModeProbeConsumed`(); detail::MmfPosteriorActionFingerprint :ref:`previewMmfAction`(:ref:`ActiveLearningSession`& session, const :ref:`NEBPath`& path, int ci_image_idx, const :ref:`GPNEBConfig`& neb_config) const; void :ref:`releaseRecoveryOwnerForCertifiedHandover`(const Eigen::VectorXd& owner_position, long owner_image); void :ref:`releaseExhaustedRecoveryForCertifiedHandover`(); void :ref:`openInformationGateAtNoiseFloor`(const Eigen::VectorXd& ci_position, detail::MmfSurrogateFingerprint surrogate_now, long climbingImage = -1); bool :target:`rejectedMmfSeedPositionMatches`(const Eigen::VectorXd& ci_position, const :ref:`gpr::AtomsConfiguration`* atoms_config = nullptr, long climbingImage = -1) const; bool :ref:`rejectedMmfSeedReplay`(const Eigen::VectorXd& ci_position, detail::MmfSurrogateFingerprint surrogate, long climbingImage = -1, const :ref:`gpr::AtomsConfiguration`* atoms_config = nullptr) const; bool :target:`rejectedMmfSeedReplay`(const Eigen::VectorXd& ci_position, const detail::MmfPosteriorActionFingerprint& action, long climbingImage = -1, const :ref:`gpr::AtomsConfiguration`* atoms_config = nullptr) const; void :ref:`noteMmfRejectCiPosition`(const Eigen::VectorXd& ci_position, long climbingImage = -1); void :ref:`recordUncertifiedMmfHookReject`(double convForce, const Eigen::VectorXd& ci_position, detail::MmfSurrogateFingerprint surrogate, long climbingImage = -1); void :target:`recordUncertifiedMmfHookReject`(double convForce, const Eigen::VectorXd& ci_position, detail::MmfPosteriorActionFingerprint action, long climbingImage = -1); bool :ref:`wantsCurrentCiOracle`(double convForce, bool ci_active, long climbingImage, long numImages, int outerIter, bool ci_posterior_confident, bool trap_detected = false, std::size_t ntrain_now = 0, bool ci_is_energy_maximum = false); void :ref:`updateStability`(long climbingImage); void :ref:`updateStabilityForOuter`(long climbingImage, int outerIter); :ref:`MMFRunResult` :ref:`run`(:ref:`NEBPath`& path, int ci_image_idx, :ref:`NEBOracle`& oracle, const :ref:`GPNEBConfig`& neb_config, :ref:`ActiveLearningSession`& session, bool trap_detected = false); double :ref:`threshold`() const; :ref:`OCINEBDiagnostics` :ref:`diagnostics`() const; }; .. _details-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; initBaseline .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1a707ccae10d9f534e455eb59fad2c59b7: .. ref-code-block:: cpp :class: doxyrest-title-code-block void initBaseline(double baseline_force) Seed the adaptive threshold from the first residual whose resulting adaptive bar remains above force_tolerance. Smaller bars cannot lease MMF before NEB convergence. .. index:: pair: function; shouldPrepareMmfHandoff .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1aa20ba37ea1081a1da0b9db2f1be938e3: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool shouldPrepareMmfHandoff(bool trap_detected = false, bool band_information_exhausted = false, bool current_chain_certificate = false) const Whether MMF has enough scheduler evidence to interrupt GP band work. GP fallback requires a measured trap or certified likelihood-floor exhaustion until its first MMF lease has been consumed. .. index:: pair: function; shouldTrigger .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1a406771deff2893a1f3eac97498b8e64d: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool shouldTrigger(double convForce, bool ci_active, long climbingImage, long numImages, bool ci_posterior_confident, bool trap_detected = false, std::size_t ntrain_now = 0, bool ci_is_energy_maximum = false, bool band_information_exhausted = false, bool oie_acquisition_quiet = false, bool rejected_seed_replay = false, bool current_chain_certificate = false, bool current_saddle_stencil_certificate = false, bool rejected_seed_position_matches = false, bool stagnation_handoff = false) const True iff the trigger conditions are met for the current NEB state. ~trap_detected~ marks a GP fixed-point trap: the inner GP relaxation has converged but the true oracle force at the climbing image is still above conv_tol. In that state the relative threshold never fires (conv_force cannot fall further on the surrogate), so the trap is its own trigger path. ~stagnation_handoff~ leases the dimer after the band walk has stopped above the force tolerance. It does not lower the bar for a walk that is still descending. .. index:: pair: function; recordMmfPosteriorUpdate .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1af0d71dc31fdb732a20b4472b1d4ff6b9: .. ref-code-block:: cpp :class: doxyrest-title-code-block void recordMmfPosteriorUpdate() Record that retained MMF observations have refactorized the GP posterior used by the trap decision. .. index:: pair: function; noteMmfRejectSurrogateSnapshot .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1a33fcf8f9f255ffccb0f25657c5c8f925: .. ref-code-block:: cpp :class: doxyrest-title-code-block void noteMmfRejectSurrogateSnapshot(detail::MmfSurrogateFingerprint surrogate) Enter AwaitingFirstTrainingGrowth with the model lease MMF consumed. .. index:: pair: function; noteMmfRejectActionSnapshot .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1a0165488f9623de289b39971f8c6e7370: .. ref-code-block:: cpp :class: doxyrest-title-code-block void noteMmfRejectActionSnapshot(detail::MmfPosteriorActionFingerprint action) Enter the information wait with the posterior action MMF would consume. .. index:: pair: function; noteMmfSurrogateChange .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1a6018c530b9e931861c6aaa7f6b54ab7d: .. ref-code-block:: cpp :class: doxyrest-title-code-block void noteMmfSurrogateChange(detail::MmfSurrogateFingerprint surrogate) Advance the information gate when the model lease MMF would consume changes. .. index:: pair: function; noteMmfActionChange .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1a561c77ba0c125996e730476d59ab62f7: .. ref-code-block:: cpp :class: doxyrest-title-code-block void noteMmfActionChange(detail::MmfPosteriorActionFingerprint action) Advance when the live GP posterior changes the first MMF decision, mode, or resolved trial geometry at the rejected seed. .. index:: pair: function; noteMmfMinModeProbeConsumed .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1aa5408a4e355a00a2a03353f78ff42b91: .. ref-code-block:: cpp :class: doxyrest-title-code-block void noteMmfMinModeProbeConsumed() Record that the rejected action consumed a true-potential mode probe. .. index:: pair: function; previewMmfAction .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1ac9130673223f329fa26fc4924a67caae: .. ref-code-block:: cpp :class: doxyrest-title-code-block detail::MmfPosteriorActionFingerprint previewMmfAction(:ref:`ActiveLearningSession`& session, const :ref:`NEBPath`& path, int ci_image_idx, const :ref:`GPNEBConfig`& neb_config) const Preview the first action selected by the same seed, model lease, and dimer configuration used by ~run~. The preview never invokes the accurate potential. .. index:: pair: function; releaseRecoveryOwnerForCertifiedHandover .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1a43dd0d03d1b0338fe0be31d1ae0cbbc0: .. ref-code-block:: cpp :class: doxyrest-title-code-block void releaseRecoveryOwnerForCertifiedHandover(const Eigen::VectorXd& owner_position, long owner_image) Retire a stale recovery owner after another saddle candidate carries posterior confidence and an exact true-PES handover stencil. .. index:: pair: function; releaseExhaustedRecoveryForCertifiedHandover .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1aeb6bdac4d60a78d930fbeeab604b2f39: .. ref-code-block:: cpp :class: doxyrest-title-code-block void releaseExhaustedRecoveryForCertifiedHandover() Retire an exhausted rejected-saddle lease after a different candidate carries the complete true-PES handover certificate. .. index:: pair: function; openInformationGateAtNoiseFloor .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1aa80f9214374e1d2ef22173602c3f5487: .. ref-code-block:: cpp :class: doxyrest-title-code-block void openInformationGateAtNoiseFloor(const Eigen::VectorXd& ci_position, detail::MmfSurrogateFingerprint surrogate_now, long climbingImage = -1) The chain posterior is everywhere at or below the likelihood noise floor: the OIE has no admissible information left to supply, so waiting for training growth is vacuous and the burst's own fresh oracle rows are the only remaining information source. Opens the gate unless the climbing image still sits bitwise at the position of the last REJECTED burst AND the surrogate is unchanged since that reject: the fresh dimer is a deterministic function of its seed geometry and the surrogate it consumes, so re-firing there replays the identical rejected trajectory every outer. .. index:: pair: function; rejectedMmfSeedReplay .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1a53ff712b7d214a636eb0880ced2e6d53: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool rejectedMmfSeedReplay(const Eigen::VectorXd& ci_position, detail::MmfSurrogateFingerprint surrogate, long climbingImage = -1, const :ref:`gpr::AtomsConfiguration`* atoms_config = nullptr) const A deterministic replay requires both the rejected seed geometry and the surrogate information consumed by MMF to be unchanged. .. index:: pair: function; noteMmfRejectCiPosition .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1adeb59829dcbbe8eccf09ed7ba9b0d91b: .. ref-code-block:: cpp :class: doxyrest-title-code-block void noteMmfRejectCiPosition(const Eigen::VectorXd& ci_position, long climbingImage = -1) Record the seed geometry of a rejected burst (see ~openInformationGateAtNoiseFloor~). .. index:: pair: function; recordUncertifiedMmfHookReject .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1a0ffeefd61f2ea17e8a6697d0492fb909: .. ref-code-block:: cpp :class: doxyrest-title-code-block void recordUncertifiedMmfHookReject(double convForce, const Eigen::VectorXd& ci_position, detail::MmfSurrogateFingerprint surrogate, long climbingImage = -1) Treat a force-converged MMF burst that failed GP-NEB's on-path certificate as a rejected lease for adaptive-trigger purposes. .. index:: pair: function; wantsCurrentCiOracle .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1a1ec4ca597d670d8a5159a32069059c7f: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool wantsCurrentCiOracle(double convForce, bool ci_active, long climbingImage, long numImages, int outerIter, bool ci_posterior_confident, bool trap_detected = false, std::size_t ntrain_now = 0, bool ci_is_energy_maximum = false) True iff the GP-NEB picker should spend its current oracle on the climbing image so the MMF hook can run with a true CI force. .. index:: pair: function; updateStability .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1adfb5a1a435c624de7b128e01739a88dc: .. ref-code-block:: cpp :class: doxyrest-title-code-block void updateStability(long climbingImage) Track the current climbing image: on a CI-index change, persist the outgoing image's adaptive trigger state and restore the incoming one (also invalidating the cached mode). The handover gate is the GP posterior confidence, so there is no stability counter to keep. .. index:: pair: function; updateStabilityForOuter .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1a2fe3a63e44a702e54983ba797753c7bc: .. ref-code-block:: cpp :class: doxyrest-title-code-block void updateStabilityForOuter(long climbingImage, int outerIter) Idempotent stability update keyed by GP-NEB outer iteration. .. index:: pair: function; run .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1a12b9803a6cb38b85e2ae9af4549a1b52: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`MMFRunResult` run(:ref:`NEBPath`& path, int ci_image_idx, :ref:`NEBOracle`& oracle, const :ref:`GPNEBConfig`& neb_config, :ref:`ActiveLearningSession`& session, bool trap_detected = false) Run one MMF burst on the CI image: kick along the seed mode, instantiate AtomicDimer, execute up to max_steps, harvest result + status + alignment. Writes the dimer-translated coord into ~path.image(ci_image_idx)~ on Helped; restores pre-kick coord on PositiveCurvature. ~trap_detected~ routes a trapped-CI burst to a FRESH local surrogate (the standalone gprd path) instead of leasing the over-smoothed session GP: at a GP fixed-point trap the leased global theta would just re-trap the dimer, so a sharp local fit on fresh oracle rows is required. .. index:: pair: function; threshold .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1a951f53ad0cbd44ce406ea76dadd5e1fc: .. ref-code-block:: cpp :class: doxyrest-title-code-block double threshold() const Current adaptive trigger threshold (eOn ~current_threshold\_~). .. index:: pair: function; diagnostics .. _doxid-classgpr_1_1neb_1_1_o_c_i_n_e_b_controller_1a74e12ab38702523dd0203bccc174cd37: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`OCINEBDiagnostics` diagnostics() const Snapshot of trigger-gate state for verbose run diagnostics.