SG++-Doxygen-Documentation
sgpp::optimization::test_problems::Hartman6Objective Class Reference

Hartman6 objective function. More...

#include <Hartman6.hpp>

Inheritance diagram for sgpp::optimization::test_problems::Hartman6Objective:
sgpp::optimization::test_problems::TestScalarFunction sgpp::optimization::ScalarFunction

Public Member Functions

void clone (std::unique_ptr< ScalarFunction > &clone) const override
 
double evalUndisplaced (const base::DataVector &x) override
 
 Hartman6Objective ()
 Constructor. More...
 
 ~Hartman6Objective () override
 Destructor. More...
 
- Public Member Functions inherited from sgpp::optimization::test_problems::TestScalarFunction
double eval (const base::DataVector &x) override
 Evaluate displaced function. More...
 
const base::DataVectorgetDisplacement () const
 
void setDisplacement (const base::DataVector &displacement)
 
 TestScalarFunction (size_t d)
 Constructor. More...
 
 ~TestScalarFunction () override
 Destructor. More...
 
- Public Member Functions inherited from sgpp::optimization::ScalarFunction
size_t getNumberOfParameters () const
 
 ScalarFunction (size_t d)
 Constructor. More...
 
virtual ~ScalarFunction ()
 Destructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from sgpp::optimization::test_problems::TestScalarFunction
base::DataVector displacement
 displacement vector More...
 
base::DataVector xTmp
 temporary vector for displacing More...
 
- Protected Attributes inherited from sgpp::optimization::ScalarFunction
size_t d
 dimension of the domain More...
 

Detailed Description

Hartman6 objective function.

Definition:

\begin{gather*} \bar{f}(\bar{\vec{x}}) := -\sum_{i=1}^4 a_i \exp\!\left(-\sum_{t=1}^6 b_{i,t} (\bar{x}_t - c_{i,t})^2\right),\\ \vec{a} = \begin{pmatrix}1\\1.2\\3\\3.2\end{pmatrix},\qquad B := \begin{pmatrix} 10 & 3 & 17 & 3.5 & 1.7 & 8\\ 0.05 & 10 & 17 & 0.1 & 8 & 14\\ 3 & 3.5 & 1.7 & 10 & 17 & 8\\ 17 & 8 & 0.05 & 10 & 0.1 & 14 \end{pmatrix},\\ C := \begin{pmatrix} 0.1312 & 0.1696 & 0.5569 & 0.0124 & 0.8283 & 0.5886\\ 0.2329 & 0.4135 & 0.8307 & 0.3736 & 0.1004 & 0.9991\\ 0.2348 & 0.1451 & 0.3522 & 0.2883 & 0.3047 & 0.6650\\ 0.4047 & 0.8828 & 0.8732 & 0.5743 & 0.1091 & 0.0381 \end{pmatrix}\end{gather*}

Constructor & Destructor Documentation

◆ Hartman6Objective()

sgpp::optimization::test_problems::Hartman6Objective::Hartman6Objective ( )

Constructor.

Referenced by clone().

◆ ~Hartman6Objective()

sgpp::optimization::test_problems::Hartman6Objective::~Hartman6Objective ( )
override

Destructor.

Member Function Documentation

◆ clone()

void sgpp::optimization::test_problems::Hartman6Objective::clone ( std::unique_ptr< ScalarFunction > &  clone) const
overridevirtual
Parameters
[out]clonepointer to cloned object

Implements sgpp::optimization::ScalarFunction.

References Hartman6Objective().

◆ evalUndisplaced()

double sgpp::optimization::test_problems::Hartman6Objective::evalUndisplaced ( const base::DataVector x)
overridevirtual
Parameters
xpoint \(\vec{x} \in [0, 1]^d\)
Returns
\(f(\vec{x})\)

Implements sgpp::optimization::test_problems::TestScalarFunction.


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