|
MiniTensor Version of the Day
|
#include <MiniTensor_TestFunctions.h>
Public Types | |
| using | Base = Function_Base< GoldsteinPrice< S, M >, S, M > |
Public Member Functions | |
| GoldsteinPrice () | |
| template<typename T , Index N> | |
| T | value (Vector< T, N > const &X) |
| template<typename T , Index N> | |
| Vector< T, N > | gradient (Vector< T, N > const &x) |
| template<typename T , Index N> | |
| Tensor< T, N > | hessian (Vector< T, N > const &x) |
Public Member Functions inherited from minitensor::Function_Base< FunctionDerived, S, M > | |
| Function_Base () | |
| template<typename T , Index N> | |
| T | value (FunctionDerived &f, Vector< T, N > const &x) |
| template<typename T , Index N> | |
| Vector< T, N > | gradient (FunctionDerived &f, Vector< T, N > const &x) |
| template<typename T , Index N> | |
| Vector< T, N > | residual (FunctionDerived &f, Vector< T, N > const &x) |
| template<typename T , Index N> | |
| Tensor< T, N > | hessian (FunctionDerived &f, Vector< T, N > const &x) |
| void | set_failed (char const *const msg=nullptr) |
| bool | get_failed () |
| void | clear_failed () |
| void | set_failure_message (char const *const msg=nullptr) |
| char const * | get_failure_message () |
Static Public Attributes | |
| static constexpr char const *const | NAME {"Goldstein-Price"} |
Static Public Attributes inherited from minitensor::Function_Base< FunctionDerived, S, M > | |
| static constexpr Index | DIMENSION {M} |
Additional Inherited Members | |
Protected Attributes inherited from minitensor::Function_Base< FunctionDerived, S, M > | |
| bool | failed {false} |
| char const * | failure_message {nullptr} |
| Keep a message to inform what went wrong above. | |
Goldstein-Price function \( [1+(x+y+1)^2(19-14x+3x^2-14y+6xy+3y^2)] \) \( [30+(2x-3y)^2(18-32x+12x^2+48y-36xy+27y^2)] \). Two-dimensional with several local minima; global minimum of 3 at \( (0, -1) \).
Definition at line 989 of file MiniTensor_TestFunctions.h.
| using minitensor::GoldsteinPrice< S, M >::Base = Function_Base<GoldsteinPrice<S, M>, S, M> |
Base class type.
Definition at line 1008 of file MiniTensor_TestFunctions.h.
|
inline |
Constructor.
Definition at line 996 of file MiniTensor_TestFunctions.h.
|
inline |
Objective value.
Definition at line 1016 of file MiniTensor_TestFunctions.h.
|
inline |
Gradient of the objective.
Definition at line 1056 of file MiniTensor_TestFunctions.h.
|
inline |
Hessian of the objective.
Definition at line 1067 of file MiniTensor_TestFunctions.h.
|
staticconstexpr |
Function name.
Definition at line 1003 of file MiniTensor_TestFunctions.h.