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

Use a GA to minimize the surrogate. More...

#include <adaptive_sampling.h>

Inheritance diagram for sot::GASampling:
sot::Sampling

Public Member Functions

 GASampling (const std::shared_ptr< Problem > &data, const std::shared_ptr< Surrogate > &surf, int numIndividuals, int numGenerations)
 Constructor. More...
 
void reset (int budget)
 Virtual method for reseting the object. More...
 
mat makePoints (const vec &xBest, const mat &points, const vec &sigma, int newPoints)
 Virtual method for proposing new evaluations. More...
 

Protected Attributes

std::shared_ptr< ProblemmData
 
std::shared_ptr< SurrogatemSurf
 
int mDim
 
vec mxLow
 
vec mxUp
 
int mNumIndividuals
 
int mNumGenerations
 
double mDistTol
 

Detailed Description

Use a GA to minimize the surrogate.

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::GASampling::GASampling ( const std::shared_ptr< Problem > &  data,
const std::shared_ptr< Surrogate > &  surf,
int  numIndividuals,
int  numGenerations 
)
inline

Constructor.

Parameters
dataA shared pointer to the optimization problem
surfA shared pointer to the surrogate model
numIndividualsPopulation size
numGenerationsNumber of generations

Member Function Documentation

mat sot::GASampling::makePoints ( const vec xBest,
const mat points,
const vec sigma,
int  newPoints 
)
inlinevirtual

Virtual method for proposing new evaluations.

Parameters
xBestThe best solution found so far
pointsPreviously evaluated points
sigmaThe sampling radius for each dimension
newPointsNumber of new evaluations to be generated
Returns
The proposed points

Implements sot::Sampling.

void sot::GASampling::reset ( int  budget)
inlinevirtual

Virtual method for reseting the object.

Parameters
budgetThe remaining evaluation budget

Implements sot::Sampling.

Member Data Documentation

std::shared_ptr<Problem> sot::GASampling::mData
protected

A shared pointer to the optimization problem

int sot::GASampling::mDim
protected

Number of dimensions (extracted from mData)

double sot::GASampling::mDistTol
protected

Distance tolerance

int sot::GASampling::mNumGenerations
protected

Number of generations

int sot::GASampling::mNumIndividuals
protected

Population size

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

A shared pointer to the surrogate model

vec sot::GASampling::mxLow
protected

Lower variable bounds (extracted from mData)

vec sot::GASampling::mxUp
protected

Upper variable bounds (extracted from mData)


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