MiniTensor Version of the Day
Loading...
Searching...
No Matches
minitensor::Beale< S, M > Class Template Reference

#include <MiniTensor_TestFunctions.h>

Inheritance diagram for minitensor::Beale< S, M >:
minitensor::Function_Base< Beale< S, 2 >, S, 2 >

Public Types

using Base = Function_Base<Beale<S, M>, S, M>

Public Member Functions

 Beale ()
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< Beale< S, 2 >, S, 2 >
 Function_Base ()
T value (Beale< S, 2 > &f, Vector< T, N > const &x)
Vector< T, N > gradient (Beale< S, 2 > &f, Vector< T, N > const &x)
Vector< T, N > residual (Beale< S, 2 > &f, Vector< T, N > const &x)
Tensor< T, N > hessian (Beale< S, 2 > &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 {"Beale"}
Static Public Attributes inherited from minitensor::Function_Base< Beale< S, 2 >, S, 2 >
static constexpr Index DIMENSION

Additional Inherited Members

Protected Attributes inherited from minitensor::Function_Base< Beale< S, 2 >, S, 2 >
bool failed
char const * failure_message
 Keep a message to inform what went wrong above.

Detailed Description

template<typename S, Index M = 2>
class minitensor::Beale< S, M >

Beale's function \( (1.5-x+xy)^2 + (2.25-x+xy^2)^2 + (2.625-x+xy^3)^2 \). Two-dimensional with sharp curved valleys; minimum at \( (3, 0.5) \).

Definition at line 820 of file MiniTensor_TestFunctions.h.

Member Typedef Documentation

◆ Base

template<typename S, Index M = 2>
using minitensor::Beale< S, M >::Base = Function_Base<Beale<S, M>, S, M>

Base class type.

Definition at line 839 of file MiniTensor_TestFunctions.h.

Constructor & Destructor Documentation

◆ Beale()

template<typename S, Index M = 2>
minitensor::Beale< S, M >::Beale ( )
inline

Constructor.

Definition at line 827 of file MiniTensor_TestFunctions.h.

Member Function Documentation

◆ value()

template<typename S, Index M = 2>
template<typename T, Index N>
T minitensor::Beale< S, M >::value ( Vector< T, N > const & X)
inline

Objective value.

Definition at line 847 of file MiniTensor_TestFunctions.h.

◆ gradient()

template<typename S, Index M = 2>
template<typename T, Index N>
Vector< T, N > minitensor::Beale< S, M >::gradient ( Vector< T, N > const & x)
inline

Gradient of the objective.

Definition at line 878 of file MiniTensor_TestFunctions.h.

◆ hessian()

template<typename S, Index M = 2>
template<typename T, Index N>
Tensor< T, N > minitensor::Beale< S, M >::hessian ( Vector< T, N > const & x)
inline

Hessian of the objective.

Definition at line 889 of file MiniTensor_TestFunctions.h.

Member Data Documentation

◆ NAME

template<typename S, Index M = 2>
char const* const minitensor::Beale< S, M >::NAME {"Beale"}
staticconstexpr

Function name.

Definition at line 834 of file MiniTensor_TestFunctions.h.


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