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