#include <gpr/ml/RgminObjective.h>
Classes | |
| struct | Sample |
Public Member Functions | |
| RgminNlmlCtx (const gpr::EigenMatrix &positions, const Eigen::VectorXd &indices, const Eigen::VectorXd &targets, ClassName &model, FuncName objective, const MapObjectiveConfig &configuration, bool use_exact_curvature, bool retain_step_samples=false, std::function< bool()> stop_requested={}) | |
| rgmin_status_t | captureCallbackError (const char *callback) noexcept |
| void | pinAt (const Eigen::VectorXd &w) |
| std::size_t | logicalObjectiveWork () const noexcept |
| std::size_t | physicalObjectiveWork () const noexcept |
| const Sample & | evalAt (const Eigen::VectorXd &w) |
| rgmin_status_t | restoreHolderAt (const Eigen::VectorXd &w) noexcept |
Public Attributes | |
| const gpr::EigenMatrix & | x |
| const Eigen::VectorXd & | x_ind |
| const Eigen::VectorXd & | y |
| ClassName & | holder |
| const FuncName | func |
| const MapObjectiveConfig & | map_cfg |
| const bool | exact_curvature |
| bool | trace_evaluations = false |
| bool | hessian_vector_fallback = false |
| RgminCallbackFailure | failure |
Synchronous objective view shared by the SCG and gradient-only adapters. Input arrays, the model and the member function remain valid for the whole minimize/step call. Model mutation belongs to the objective; coordinate publication belongs to the optimizer adapter after callback success.
Definition at line 80 of file RgminObjective.h.
|
inline |
Definition at line 108 of file RgminObjective.h.
|
inlinenoexcept |
Definition at line 137 of file RgminObjective.h.
|
inline |
Definition at line 170 of file RgminObjective.h.
|
inlinenodiscardnoexcept |
Definition at line 160 of file RgminObjective.h.
|
inlinenodiscardnoexcept |
Definition at line 165 of file RgminObjective.h.
|
inline |
Pin only an evaluated sample; a step boundary never calls the holder. The first successful callback also pins a box-projected opening point.
Definition at line 150 of file RgminObjective.h.
|
inlinenoexcept |
Cached first-order values do not restore mutable posterior state. This physical evaluation is separate from the solver's request budget.
Definition at line 220 of file RgminObjective.h.
| const bool funcmin::RgminNlmlCtx< ClassName, FuncName >::exact_curvature |
Definition at line 87 of file RgminObjective.h.
| RgminCallbackFailure funcmin::RgminNlmlCtx< ClassName, FuncName >::failure |
Definition at line 106 of file RgminObjective.h.
| const FuncName funcmin::RgminNlmlCtx< ClassName, FuncName >::func |
Definition at line 85 of file RgminObjective.h.
| bool funcmin::RgminNlmlCtx< ClassName, FuncName >::hessian_vector_fallback = false |
Set once the NLML Hessian-vector curvature callback has declined; rgmin then probes the gradient for every later curvature.
Definition at line 105 of file RgminObjective.h.
| ClassName& funcmin::RgminNlmlCtx< ClassName, FuncName >::holder |
Definition at line 84 of file RgminObjective.h.
| const MapObjectiveConfig& funcmin::RgminNlmlCtx< ClassName, FuncName >::map_cfg |
Definition at line 86 of file RgminObjective.h.
| bool funcmin::RgminNlmlCtx< ClassName, FuncName >::trace_evaluations = false |
Definition at line 102 of file RgminObjective.h.
| const gpr::EigenMatrix& funcmin::RgminNlmlCtx< ClassName, FuncName >::x |
Definition at line 81 of file RgminObjective.h.
| const Eigen::VectorXd& funcmin::RgminNlmlCtx< ClassName, FuncName >::x_ind |
Definition at line 82 of file RgminObjective.h.
| const Eigen::VectorXd& funcmin::RgminNlmlCtx< ClassName, FuncName >::y |
Definition at line 83 of file RgminObjective.h.