SOT
Public Member Functions | Protected Attributes | List of all members
sot::UnitBoxProblem< OptProb > Class Template Reference

Problem scaled to the unit box. More...

#include <test_problems.h>

Inheritance diagram for sot::UnitBoxProblem< OptProb >:
sot::TestProblem sot::Problem

Public Member Functions

 UnitBoxProblem (int dim)
 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...
 
- Public Member Functions inherited from sot::TestProblem
vec evals (const mat &points) const
 Method for evaluating the objective function at multiple points. More...
 

Protected Attributes

std::shared_ptr< ProblemmProblem
 
int mDim
 
vec mxLow
 
vec mxUp
 
vec mOptimum
 
double mMinimum
 
std::string mName
 

Detailed Description

template<class OptProb>
class sot::UnitBoxProblem< OptProb >

Problem scaled to the unit box.

Turns a box constrained problem into a problem on the unit box. This is convenient when using RBFs since they don't scale well.

Template Parameters
OptProblemThe optimization problem (with Problem as a base class) that is rotated and translated into a non-separable optimization problem.
Author
David Eriksson, dme65.nosp@m.@cor.nosp@m.nell..nosp@m.edu

Constructor & Destructor Documentation

template<class OptProb >
sot::UnitBoxProblem< OptProb >::UnitBoxProblem ( int  dim)
inline

Constructor.

Parameters
dimNumber of dimensions

Member Function Documentation

template<class OptProb >
int sot::UnitBoxProblem< OptProb >::dim ( ) const
inlinevirtual

Method for getting the number of dimensions.

Returns
The number of dimensions

Implements sot::Problem.

template<class OptProb >
double sot::UnitBoxProblem< OptProb >::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.

template<class OptProb >
vec sot::UnitBoxProblem< OptProb >::lBounds ( ) const
inlinevirtual

Method for getting the lower variable bounds.

Returns
Upper variable bounds

Implements sot::Problem.

template<class OptProb >
double sot::UnitBoxProblem< OptProb >::min ( ) const
inlinevirtual

Method for getting global minimum value.

Returns
Value at the global minumum

Implements sot::Problem.

template<class OptProb >
std::string sot::UnitBoxProblem< OptProb >::name ( ) const
inlinevirtual

Method for getting the name of the optimization problem.

Returns
The optimization problem name

Implements sot::Problem.

template<class OptProb >
vec sot::UnitBoxProblem< OptProb >::optimum ( ) const
inlinevirtual

Method for getting the global minimizer.

Returns
The global minimizer

Implements sot::Problem.

template<class OptProb >
vec sot::UnitBoxProblem< OptProb >::uBounds ( ) const
inlinevirtual

Method for getting the upper variable bounds.

Returns
Upper variable bounds

Implements sot::Problem.

Member Data Documentation

template<class OptProb >
int sot::UnitBoxProblem< OptProb >::mDim
protected

Number of dimensions (extracted from mProblem)

template<class OptProb >
double sot::UnitBoxProblem< OptProb >::mMinimum
protected

Global minimum value

template<class OptProb >
std::string sot::UnitBoxProblem< OptProb >::mName
protected

Optimization problem name

template<class OptProb >
vec sot::UnitBoxProblem< OptProb >::mOptimum
protected

Global minimizer (same as mTranslation)

template<class OptProb >
std::shared_ptr<Problem> sot::UnitBoxProblem< OptProb >::mProblem
protected

Shared pointer to the original optimization problem

template<class OptProb >
vec sot::UnitBoxProblem< OptProb >::mxLow
protected

Lower variable bounds (extracted from mProblem)

template<class OptProb >
vec sot::UnitBoxProblem< OptProb >::mxUp
protected

Upper variable bounds (extracted from mProblem)


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