The Generalized Rosenbrock function in 4 dimensions with the Wood Function in four dimensions. More...
Public Member Functions | |
| RosenbrockWoodFunction () | |
| Initialize the RosenbrockWoodFunction. More... | |
| double | Evaluate (const arma::mat &coordinates, const size_t begin, const size_t batchSize) const |
| double | Evaluate (const arma::mat &coordinates) const |
| 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) const |
| size_t | NumFunctions () const |
| Return 1 (the number of functions). More... | |
| void | Shuffle () |
| Shuffle the order of function visitation. More... | |
The Generalized Rosenbrock function in 4 dimensions with the Wood Function in four dimensions.
In this function we are actually optimizing a 2x4 matrix of coordinates, not a vector.
Definition at line 30 of file rosenbrock_wood_function.hpp.
Initialize the RosenbrockWoodFunction.
| double Evaluate | ( | const arma::mat & | coordinates, |
| const size_t | begin, | ||
| const size_t | batchSize | ||
| ) | const |
Referenced by RosenbrockWoodFunction::GetInitialPoint().
| double Evaluate | ( | const arma::mat & | coordinates | ) | const |
|
inline |
Get the starting point.
Definition at line 46 of file rosenbrock_wood_function.hpp.
References RosenbrockWoodFunction::Evaluate(), and RosenbrockWoodFunction::Gradient().
| void Gradient | ( | const arma::mat & | coordinates, |
| const size_t | begin, | ||
| arma::mat & | gradient, | ||
| const size_t | batchSize | ||
| ) | const |
Referenced by RosenbrockWoodFunction::GetInitialPoint().
| void Gradient | ( | const arma::mat & | coordinates, |
| arma::mat & | gradient | ||
| ) | const |
|
inline |
Return 1 (the number of functions).
Definition at line 43 of file rosenbrock_wood_function.hpp.
| void Shuffle | ( | ) |
Shuffle the order of function visitation.
This may be called by the optimizer.