Use a GA to minimize the surrogate.
More...
#include <adaptive_sampling.h>
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
sot::GASampling::GASampling |
( |
const std::shared_ptr< Problem > & |
data, |
|
|
const std::shared_ptr< Surrogate > & |
surf, |
|
|
int |
numIndividuals, |
|
|
int |
numGenerations |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
data | A shared pointer to the optimization problem |
surf | A shared pointer to the surrogate model |
numIndividuals | Population size |
numGenerations | Number of generations |
mat sot::GASampling::makePoints |
( |
const vec & |
xBest, |
|
|
const mat & |
points, |
|
|
const vec & |
sigma, |
|
|
int |
newPoints |
|
) |
| |
|
inlinevirtual |
Virtual method for proposing new evaluations.
- Parameters
-
xBest | The best solution found so far |
points | Previously evaluated points |
sigma | The sampling radius for each dimension |
newPoints | Number 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
-
budget | The remaining evaluation budget |
Implements sot::Sampling.
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 |
int sot::GASampling::mNumGenerations |
|
protected |
int sot::GASampling::mNumIndividuals |
|
protected |
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: