The Easom function, defined by. More...
Public Member Functions | |
| EasomFunction () | |
| Initialize the EasomFunction. More... | |
| double | Evaluate (const arma::mat &coordinates, const size_t begin, const size_t batchSize) const |
| double | Evaluate (const arma::mat &coordinates) const |
| arma::mat | GetInitialPoint () const |
| Get the starting point. More... | |
| void | Gradient (const arma::mat &coordinates, const size_t begin, arma::mat &gradient, const size_t batchSize) const |
| void | Gradient (const arma::mat &coordinates, arma::mat &gradient) |
| size_t | NumFunctions () const |
| Return 1 (the number of functions). More... | |
| void | Shuffle () |
| Shuffle the order of function visitation. More... | |
The Easom function, defined by.
This should optimize to f(x) = -1, at x = [3.14, 3.14].
For more information, please refer to:
Definition at line 43 of file easom_function.hpp.
| EasomFunction | ( | ) |
Initialize the EasomFunction.
| double Evaluate | ( | const arma::mat & | coordinates, |
| const size_t | begin, | ||
| const size_t | batchSize | ||
| ) | const |
Referenced by EasomFunction::GetInitialPoint().
| double Evaluate | ( | const arma::mat & | coordinates | ) | const |
|
inline |
Get the starting point.
Definition at line 59 of file easom_function.hpp.
References EasomFunction::Evaluate(), and EasomFunction::Gradient().
| void Gradient | ( | const arma::mat & | coordinates, |
| const size_t | begin, | ||
| arma::mat & | gradient, | ||
| const size_t | batchSize | ||
| ) | const |
Referenced by EasomFunction::GetInitialPoint().
| void Gradient | ( | const arma::mat & | coordinates, |
| arma::mat & | gradient | ||
| ) |
|
inline |
Return 1 (the number of functions).
Definition at line 56 of file easom_function.hpp.
| void Shuffle | ( | ) |
Shuffle the order of function visitation.
This may be called by the optimizer.