mlpack  3.0.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
TestFuncFW Class Reference

Simple test function for classic Frank Wolfe Algorithm: More...

Public Member Functions

 TestFuncFW ()
 
double Evaluate (const arma::mat &coords)
 Evaluation of the function. More...
 
void Gradient (const arma::mat &coords, arma::mat &gradient)
 Gradient of the function. More...
 

Detailed Description

Simple test function for classic Frank Wolfe Algorithm:

$ f(x) = (x1 - 0.1)^2 + (x2 - 0.2)^2 + (x3 - 0.3)^2 $.

Definition at line 27 of file test_func_fw.hpp.

Constructor & Destructor Documentation

TestFuncFW ( )
inline

Definition at line 30 of file test_func_fw.hpp.

Member Function Documentation

double Evaluate ( const arma::mat &  coords)
inline

Evaluation of the function.

Parameters
coordsinput vector x.

Definition at line 38 of file test_func_fw.hpp.

void Gradient ( const arma::mat &  coords,
arma::mat &  gradient 
)
inline

Gradient of the function.

Parameters
coordsinput vector x.
gradientoutput gradient vector.

Definition at line 52 of file test_func_fw.hpp.


The documentation for this class was generated from the following file: