Loading...
Searching...
No Matches
gpr::optim::MinimizationConfig Struct Reference

Configuration for GP-guided minimization. More...

#include <gpr/optimization/GPMinimizer.h>

Public Member Functions

 MinimizationConfig ()

Public Attributes

std::uint32_t abi_version = kMinimizationLayoutVersion
std::uint32_t reserved = 0
std::uint32_t config_bytes = 0
std::uint32_t result_bytes = 0
double trust_radius = 0.1
double conv_tol = 5e-3
int max_iter
int max_inner_steps
int max_oracle_calls = 0
int gp_train_iter = 300
int n_initial_perturb = 4
double perturb_scale = 0.1
double max_move = 0.1
int max_training_points = 0
int fps_history = 0
double jitter_sigma2 = 1e-6
bool use_hssvd_solver = true
bool verbose = true
unsigned int seed = 42
SecantHessianConfig secant
 True-force secant curvature features. Every member is off by default.

Static Public Attributes

static constexpr int kDefaultMaxInnerSteps = 200
 Default maximum inner surrogate L-BFGS steps per outer cycle.

Detailed Description

Configuration for GP-guided minimization.

The first 16 bytes are the layout stamp. gp_minimize reads those bytes before any other member, so a caller built against an older header is refused instead of having its trust radius interpreted as a version.

Definition at line 56 of file GPMinimizer.h.

Constructor & Destructor Documentation

◆ MinimizationConfig()

gpr::optim::MinimizationConfig::MinimizationConfig ( )
inline

Definition at line 119 of file GPMinimizer.h.

121 reserved(0),
122 config_bytes(static_cast<std::uint32_t>(sizeof(MinimizationConfig))),
123 result_bytes(static_cast<std::uint32_t>(sizeof(MinimizationResult)))
124{
125}
constexpr std::uint32_t kMinimizationLayoutVersion
Definition GPMinimizer.h:45

Member Data Documentation

◆ abi_version

std::uint32_t gpr::optim::MinimizationConfig::abi_version = kMinimizationLayoutVersion

Definition at line 57 of file GPMinimizer.h.

◆ config_bytes

std::uint32_t gpr::optim::MinimizationConfig::config_bytes = 0

Definition at line 59 of file GPMinimizer.h.

◆ conv_tol

double gpr::optim::MinimizationConfig::conv_tol = 5e-3

Definition at line 65 of file GPMinimizer.h.

◆ fps_history

int gpr::optim::MinimizationConfig::fps_history = 0

Definition at line 76 of file GPMinimizer.h.

◆ gp_train_iter

int gpr::optim::MinimizationConfig::gp_train_iter = 300

Definition at line 71 of file GPMinimizer.h.

◆ jitter_sigma2

double gpr::optim::MinimizationConfig::jitter_sigma2 = 1e-6

Definition at line 77 of file GPMinimizer.h.

◆ kDefaultMaxInnerSteps

int gpr::optim::MinimizationConfig::kDefaultMaxInnerSteps = 200
staticconstexpr

Default maximum inner surrogate L-BFGS steps per outer cycle.

Definition at line 62 of file GPMinimizer.h.

◆ max_inner_steps

int gpr::optim::MinimizationConfig::max_inner_steps
Initial value:
=
static constexpr int kDefaultMaxInnerSteps
Default maximum inner surrogate L-BFGS steps per outer cycle.
Definition GPMinimizer.h:62

Definition at line 68 of file GPMinimizer.h.

◆ max_iter

int gpr::optim::MinimizationConfig::max_iter
Initial value:
=
500

Definition at line 66 of file GPMinimizer.h.

◆ max_move

double gpr::optim::MinimizationConfig::max_move = 0.1

Definition at line 74 of file GPMinimizer.h.

◆ max_oracle_calls

int gpr::optim::MinimizationConfig::max_oracle_calls = 0

Definition at line 70 of file GPMinimizer.h.

◆ max_training_points

int gpr::optim::MinimizationConfig::max_training_points = 0

Definition at line 75 of file GPMinimizer.h.

◆ n_initial_perturb

int gpr::optim::MinimizationConfig::n_initial_perturb = 4

Definition at line 72 of file GPMinimizer.h.

◆ perturb_scale

double gpr::optim::MinimizationConfig::perturb_scale = 0.1

Definition at line 73 of file GPMinimizer.h.

◆ reserved

std::uint32_t gpr::optim::MinimizationConfig::reserved = 0

Definition at line 58 of file GPMinimizer.h.

◆ result_bytes

std::uint32_t gpr::optim::MinimizationConfig::result_bytes = 0

Definition at line 60 of file GPMinimizer.h.

◆ secant

SecantHessianConfig gpr::optim::MinimizationConfig::secant

True-force secant curvature features. Every member is off by default.

Definition at line 82 of file GPMinimizer.h.

◆ seed

unsigned int gpr::optim::MinimizationConfig::seed = 42

Definition at line 80 of file GPMinimizer.h.

◆ trust_radius

double gpr::optim::MinimizationConfig::trust_radius = 0.1

Definition at line 64 of file GPMinimizer.h.

◆ use_hssvd_solver

bool gpr::optim::MinimizationConfig::use_hssvd_solver = true

Definition at line 78 of file GPMinimizer.h.

◆ verbose

bool gpr::optim::MinimizationConfig::verbose = true

Definition at line 79 of file GPMinimizer.h.


The documentation for this struct was generated from the following file: