13 #ifndef MLPACK_CORE_OPTIMIZERS_PROBLEMS_WOOD_FUNCTION_HPP 14 #define MLPACK_CORE_OPTIMIZERS_PROBLEMS_WOOD_FUNCTION_HPP 19 namespace optimization {
75 double Evaluate(
const arma::mat& coordinates,
77 const size_t batchSize)
const;
84 double Evaluate(
const arma::mat& coordinates)
const;
94 void Gradient(
const arma::mat& coordinates,
97 const size_t batchSize)
const;
105 void Gradient(
const arma::mat& coordinates, arma::mat& gradient)
const;
112 #endif // MLPACK_CORE_OPTIMIZERS_PROBLEMS_WOOD_FUNCTION_HPP WoodFunction()
Initialize the WoodFunction.
size_t NumFunctions() const
Return 1 (the number of functions).
The core includes that mlpack expects; standard C++ includes and Armadillo.
void Shuffle()
Shuffle the order of function visitation.
The Wood function, defined by f(x) = f1(x) + f2(x) + f3(x) + f4(x) + f5(x) + f6(x) f1(x) = 100 (x2 - ...
void Gradient(const arma::mat &coordinates, const size_t begin, arma::mat &gradient, const size_t batchSize) const
double Evaluate(const arma::mat &coordinates, const size_t begin, const size_t batchSize) const
arma::mat GetInitialPoint() const
Get the starting point.