13 #ifndef MLPACK_CORE_OPTIMIZERS_PROBLEMS_GENERALIZED_ROSENBROCK_FUNCTION_HPP 14 #define MLPACK_CORE_OPTIMIZERS_PROBLEMS_GENERALIZED_ROSENBROCK_FUNCTION_HPP 19 namespace optimization {
77 double Evaluate(
const arma::mat& coordinates,
79 const size_t batchSize = 1)
const;
86 double Evaluate(
const arma::mat& coordinates)
const;
96 void Gradient(
const arma::mat& coordinates,
99 const size_t batchSize = 1)
const;
108 void Gradient(
const arma::mat& coordinates,
110 arma::sp_mat& gradient,
111 const size_t count)
const;
119 void Gradient(
const arma::mat& coordinates, arma::mat& gradient)
const;
123 arma::mat initialPoint;
129 arma::Row<size_t> visitationOrder;
136 #endif // MLPACK_CORE_OPTIMIZERS_PROBLEMS_GENERALIZED_ROSENBROCK_FUNCTION_HPP const arma::mat & GetInitialPoint() const
Get the starting point.
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.
void Gradient(const arma::mat &coordinates, const size_t begin, arma::mat &gradient, const size_t batchSize=1) const
void Shuffle()
Shuffle the order of function visitation.
size_t NumFunctions() const
Return 1 (the number of functions).
double Evaluate(const arma::mat &coordinates, const size_t begin, const size_t batchSize=1) const
GeneralizedRosenbrockFunction(const size_t n)