.. index:: pair: struct; gpr::optim::MinimizationResult .. _doxid-structgpr_1_1optim_1_1_minimization_result: struct gpr::optim::MinimizationResult ===================================== .. toctree:: :hidden: Overview ~~~~~~~~ Result of GP-guided minimization. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct MinimizationResult { // fields Eigen::VectorXd :target:`x_final`; double :target:`e_final` = 0.0; Eigen::VectorXd :target:`g_final`; bool :target:`converged` = false; int :target:`oracle_calls` = 0; int :ref:`prior_observations` = 0; int :target:`total_iterations` = 0; int :target:`secant_pairs` = 0; int :target:`secant_update_failures` = 0; int :target:`finite_difference_hvp_calls` = 0; int :target:`secant_curvature_seed_steps` = 0; int :ref:`secant_curvature_seed_refusals` = 0; :ref:`SecantSeedStatus` :target:`last_secant_seed_status` = :ref:`SecantSeedStatus::NoAcceptedPair`; double :target:`last_secant_relative_error` = std::numeric_limits::quiet_NaN(); std::vector :target:`energy_trajectory`; }; .. _details-structgpr_1_1optim_1_1_minimization_result: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Result of GP-guided minimization. x_final, e_final and g_final are exact oracle values from an evaluation at x_final (never surrogate predictions or merged/averaged session rows). When converged, they are an oracle evaluation whose gradient norm is below conv_tol; otherwise they are the lowest-energy finite oracle evaluation of the run. Fields ------ .. index:: pair: variable; prior_observations .. _doxid-structgpr_1_1optim_1_1_minimization_result_1a953cb57706e15b56ebc9ffdec136708d: .. ref-code-block:: cpp :class: doxyrest-title-code-block int prior_observations = 0 Rows supplied by the caller. They are not included in oracle_calls. .. index:: pair: variable; secant_curvature_seed_refusals .. _doxid-structgpr_1_1optim_1_1_minimization_result_1ae54734b17872f3020c516f49a24044b5: .. ref-code-block:: cpp :class: doxyrest-title-code-block int secant_curvature_seed_refusals = 0 Inner steps whose secant Newton step was refused. The step then follows the surrogate gradient; the reason is the last status.