13 #ifndef MLPACK_CORE_OPTIMIZERS_PROBLEMS_ROSENBROCK_FUNCTION_HPP 14 #define MLPACK_CORE_OPTIMIZERS_PROBLEMS_ROSENBROCK_FUNCTION_HPP 19 namespace optimization {
71 double Evaluate(
const arma::mat& coordinates,
73 const size_t batchSize)
const;
80 double Evaluate(
const arma::mat& coordinates)
const;
90 void Gradient(
const arma::mat& coordinates,
93 const size_t batchSize)
const;
101 void Gradient(
const arma::mat& coordinates, arma::mat& gradient)
const;
108 #endif // MLPACK_CORE_OPTIMIZERS_PROBLEMS_ROSENBROCK_FUNCTION_HPP The Rosenbrock function, defined by:
arma::mat GetInitialPoint() const
Get the starting point.
size_t NumFunctions() const
Return 1 (the number of functions).
void Shuffle()
Shuffle the order of function visitation.
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) const
RosenbrockFunction()
Initialize the RosenbrockFunction.
double Evaluate(const arma::mat &coordinates, const size_t begin, const size_t batchSize) const