13 #ifndef MLPACK_CORE_OPTIMIZERS_PROBLEMS_ROSENBROCK_WOOD_FUNCTION_HPP 14 #define MLPACK_CORE_OPTIMIZERS_PROBLEMS_ROSENBROCK_WOOD_FUNCTION_HPP 22 namespace optimization {
55 double Evaluate(
const arma::mat& coordinates,
57 const size_t batchSize)
const;
64 double Evaluate(
const arma::mat& coordinates)
const;
74 void Gradient(
const arma::mat& coordinates,
77 const size_t batchSize)
const;
85 void Gradient(
const arma::mat& coordinates, arma::mat& gradient)
const;
89 arma::mat initialPoint;
102 #endif // MLPACK_CORE_OPTIMIZERS_PROBLEMS_ROSENBROCK_WOOD_FUNCTION_HPP The Generalized Rosenbrock function in n dimensions, defined by f(x) = sum_i^{n - 1} (f(i)(x)) f_i(x)...
The core includes that mlpack expects; standard C++ includes and Armadillo.
const arma::mat & GetInitialPoint() const
Get the starting point.
The Wood function, defined by f(x) = f1(x) + f2(x) + f3(x) + f4(x) + f5(x) + f6(x) f1(x) = 100 (x2 - ...
The Generalized Rosenbrock function in 4 dimensions with the Wood Function in four dimensions...
double Evaluate(const arma::mat &coordinates, const size_t begin, const size_t batchSize) const
RosenbrockWoodFunction()
Initialize the RosenbrockWoodFunction.
void Gradient(const arma::mat &coordinates, const size_t begin, arma::mat &gradient, const size_t batchSize) const
size_t NumFunctions() const
Return 1 (the number of functions).
void Shuffle()
Shuffle the order of function visitation.