PineForge HPO 0.1.0
Native hyperparameter optimization for PineForge strategies
Loading...
Searching...
No Matches
pineforge::hpo::ObjectiveResult Struct Reference

Objective values, constraints, and diagnostics produced for one observation. More...

#include <pineforge/hpo/objective.hpp>

Public Member Functions

bool feasible () const noexcept
 Returns true when valid, non-empty, finite-valued, and all constraints pass.
 

Static Public Member Functions

static ObjectiveResult invalid (std::string diagnostic)
 Constructs an invalid result carrying diagnostic and no objective values.
 

Public Attributes

std::vector< double > values
 Objective vector; the current native samplers consume one value.
 
std::vector< Constraintconstraints
 Feasibility constraints evaluated alongside the objective.
 
bool valid = true
 False when the objective adapter could not produce a comparable result.
 
std::string diagnostic
 Human-readable invalid-result detail.
 

Detailed Description

Objective values, constraints, and diagnostics produced for one observation.

Definition at line 141 of file objective.hpp.

Member Function Documentation

◆ feasible()

bool pineforge::hpo::ObjectiveResult::feasible ( ) const
noexcept

Returns true when valid, non-empty, finite-valued, and all constraints pass.

◆ invalid()

static ObjectiveResult pineforge::hpo::ObjectiveResult::invalid ( std::string  diagnostic)
static

Constructs an invalid result carrying diagnostic and no objective values.

Member Data Documentation

◆ constraints

std::vector<Constraint> pineforge::hpo::ObjectiveResult::constraints

Feasibility constraints evaluated alongside the objective.

Definition at line 145 of file objective.hpp.

◆ diagnostic

std::string pineforge::hpo::ObjectiveResult::diagnostic

Human-readable invalid-result detail.

Definition at line 149 of file objective.hpp.

◆ valid

bool pineforge::hpo::ObjectiveResult::valid = true

False when the objective adapter could not produce a comparable result.

Definition at line 147 of file objective.hpp.

◆ values

std::vector<double> pineforge::hpo::ObjectiveResult::values

Objective vector; the current native samplers consume one value.

Definition at line 143 of file objective.hpp.


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