Ultra 0.9.4
Loading...
Searching...
No Matches
ultra::decision_vector< Coord > Struct Template Reference

#include <decision_vector.h>

Classes

struct  coordinate
 Metadata describing one optimisable parameter. More...

Public Member Functions

 decision_vector (std::vector< double > vs, std::vector< coordinate > cs)
bool empty () const noexcept
std::size_t size () const noexcept
bool is_valid () const noexcept

Public Attributes

std::vector< double > values {}
std::vector< coordinate > coords {}

Detailed Description

template<class Coord>
struct ultra::decision_vector< Coord >

A flat optimiser-facing view of tunable scalar parameters.

A decision_vector<Coord> separates two concerns:

  • values stores the numerical parameters to be optimised;
  • coords stores the metadata needed to map each optimised value back to the originating object.

The template parameter Coord is domain-specific. It identifies where a parameter comes from and where an updated value must be written back.


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