The Styblinski-Tang function, defined by. More...
Public Member Functions | |
| StyblinskiTangFunction (const size_t n) | |
| 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 Styblinski-Tang function, defined by.
This should optimize to f(x) = -39.16599 * d at x = [-2.903534, ..., -2.903534].
For more information, please refer to:
Definition at line 44 of file styblinski_tang_function.hpp.
| StyblinskiTangFunction | ( | const size_t | n | ) |
| double Evaluate | ( | const arma::mat & | coordinates, |
| const size_t | begin, | ||
| const size_t | batchSize | ||
| ) | const |
Referenced by StyblinskiTangFunction::GetInitialPoint().
| double Evaluate | ( | const arma::mat & | coordinates | ) | const |
|
inline |
Get the starting point.
Definition at line 64 of file styblinski_tang_function.hpp.
References StyblinskiTangFunction::Evaluate(), and StyblinskiTangFunction::Gradient().
| void Gradient | ( | const arma::mat & | coordinates, |
| const size_t | begin, | ||
| arma::mat & | gradient, | ||
| const size_t | batchSize | ||
| ) | const |
Referenced by StyblinskiTangFunction::GetInitialPoint().
| void Gradient | ( | const arma::mat & | coordinates, |
| arma::mat & | gradient | ||
| ) |
|
inline |
Return 1 (the number of functions).
Definition at line 61 of file styblinski_tang_function.hpp.
| void Shuffle | ( | ) |
Shuffle the order of function visitation.
This may be called by the optimizer.