yat
0.20.3pre
|
#include <yat/utility/NelderMeadSimplex2Rand.h>
Public Member Functions | |
NelderMeadSimplex2Rand (size_t size) | |
unsigned int | epochs (void) const |
Number of epochs (iterations) used in last minimisation. | |
const yat::utility::Vector & | step (void) const |
The size of the first step. More... | |
yat::utility::Vector & | step (void) |
Modify the initial step size. More... | |
template<class FUNC > | |
void | operator() (yat::utility::VectorMutable &x, FUNC &func, Stopper &&stopper) |
template<class FUNC > | |
void | operator() (yat::utility::VectorMutable &, FUNC &func, Stopper &&stopper, unsigned int max_epochs) |
Wrapper around GSL gsl_multimin_fminimizer_nmsimplex2rand
theplu::yat::utility::NelderMeadSimplex2Rand::NelderMeadSimplex2Rand | ( | size_t | size | ) |
size | dimension of space we are minimizing in. |
|
inherited |
Function finds an x
that minimizes the function defined by func
. It calls gsl_multimin_fminimizer_iterate until either GSL_ENOPROG
is returned or the stopper
returns true.
Type Requirements:
FUNC
must have an operator double operator()(const VectorBase& x)
|
inherited |
Same as operator()(yat::utility::VectorMutable&, FUNC& func, Stopper&&); but at maximum run max_epochs
epochs (iterations).
|
inherited |
The size of the first step.
step_size
in gsl_multimin_fminimizer_set
|
inherited |
Modify the initial step size.
The size of the vector cannot be modified but must equal the size set in constructor.