12 #ifndef MLPACK_CORE_OPTIMIZERS_PROBLEMS_MC_CORMICK_FUNCTION_HPP 13 #define MLPACK_CORE_OPTIMIZERS_PROBLEMS_MC_CORMICK_FUNCTION_HPP 18 namespace optimization {
68 double Evaluate(
const arma::mat& coordinates,
70 const size_t batchSize)
const;
77 double Evaluate(
const arma::mat& coordinates)
const;
87 void Gradient(
const arma::mat& coordinates,
90 const size_t batchSize)
const;
98 void Gradient(
const arma::mat& coordinates, arma::mat& gradient);
105 #endif // MLPACK_CORE_OPTIMIZERS_PROBLEMS_MC_CORMICK_FUNCTION_HPP
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.
McCormickFunction()
Initialize the McCormickFunction.
arma::mat GetInitialPoint() const
Get the starting point.
double Evaluate(const arma::mat &coordinates, const size_t begin, const size_t batchSize) const
void Gradient(const arma::mat &coordinates, const size_t begin, arma::mat &gradient, const size_t batchSize) const
The McCormick function, defined by.