SOT
Public Member Functions | Protected Attributes | List of all members
sot::GAWrapper Class Reference

Wrapper to turn a surrogate model into an optimization problem. More...

#include <adaptive_sampling.h>

Inheritance diagram for sot::GAWrapper:
sot::Problem

Public Member Functions

 GAWrapper (const std::shared_ptr< Problem > &data, const std::shared_ptr< Surrogate > &surf, const mat &points, double distTol)
 Constructor. More...
 
vec lBounds () const
 Method for getting the lower variable bounds. More...
 
vec uBounds () const
 Method for getting the upper variable bounds. More...
 
int dim () const
 Method for getting the number of dimensions. More...
 
double min () const
 Method for getting global minimum value. More...
 
vec optimum () const
 Method for getting the global minimizer. More...
 
std::string name () const
 Method for getting the name of the optimization problem. More...
 
double eval (const vec &x) const
 Method for evaluating the objective function. More...
 
vec evals (const mat &X) const
 Method for evaluating the objective function at multiple points. More...
 

Protected Attributes

std::shared_ptr< SurrogatemSurf
 
int mDim
 
mat mPoints
 
vec mxLow
 
vec mxUp
 
vec mOptimum
 
double mMinimum = 0
 
std::string mName = "GA surrogate wrapper"
 
double mDistTol
 

Detailed Description

Wrapper to turn a surrogate model into an optimization problem.

This method generates each candidate points as a uniformly chosen point from the domain.

Author
David Eriksson, dme65.nosp@m.@cor.nosp@m.nell..nosp@m.edu

Constructor & Destructor Documentation

sot::GAWrapper::GAWrapper ( const std::shared_ptr< Problem > &  data,
const std::shared_ptr< Surrogate > &  surf,
const mat points,
double  distTol 
)
inline

Constructor.

Parameters
dataA shared pointer to the optimization problem
surfA shared pointer to the surrogate model
pointsPrevious evaluations
distTolDistance tolerance

Member Function Documentation

int sot::GAWrapper::dim ( ) const
inlinevirtual

Method for getting the number of dimensions.

Returns
The number of dimensions

Implements sot::Problem.

double sot::GAWrapper::eval ( const vec point) const
inlinevirtual

Method for evaluating the objective function.

Parameters
pointIs the next point for which to evaluate the objective function
Returns
The value of the objective function at the input

Implements sot::Problem.

vec sot::GAWrapper::evals ( const mat X) const
inlinevirtual

Method for evaluating the objective function at multiple points.

Parameters
XIs the next points for which to evaluate the objective function
Returns
The values of the objective function at the input

Implements sot::Problem.

vec sot::GAWrapper::lBounds ( ) const
inlinevirtual

Method for getting the lower variable bounds.

Returns
Upper variable bounds

Implements sot::Problem.

double sot::GAWrapper::min ( ) const
inlinevirtual

Method for getting global minimum value.

Returns
Value at the global minumum

Implements sot::Problem.

std::string sot::GAWrapper::name ( ) const
inlinevirtual

Method for getting the name of the optimization problem.

Returns
The optimization problem name

Implements sot::Problem.

vec sot::GAWrapper::optimum ( ) const
inlinevirtual

Method for getting the global minimizer.

Returns
The global minimizer

Implements sot::Problem.

vec sot::GAWrapper::uBounds ( ) const
inlinevirtual

Method for getting the upper variable bounds.

Returns
Upper variable bounds

Implements sot::Problem.

Member Data Documentation

int sot::GAWrapper::mDim
protected

Number of dimensions

double sot::GAWrapper::mDistTol
protected

Distance tolerance

double sot::GAWrapper::mMinimum = 0
protected

Global minimum value

std::string sot::GAWrapper::mName = "GA surrogate wrapper"
protected

Optimization problem name

vec sot::GAWrapper::mOptimum
protected

Global minimizer

mat sot::GAWrapper::mPoints
protected

Previous evaluations

std::shared_ptr<Surrogate> sot::GAWrapper::mSurf
protected

Surrogate model

vec sot::GAWrapper::mxLow
protected

Lower variable bounds

vec sot::GAWrapper::mxUp
protected

Upper variable bounds


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