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

Branin objective function. More...

#include <Branin.hpp>

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

Public Member Functions

 BraninObjective ()
 Constructor. More...
 
void clone (std::unique_ptr< ScalarFunction > &clone) const override
 
double evalUndisplaced (const base::DataVector &x) override
 
 ~BraninObjective () 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

Branin objective function.

Definition:

\[\bar{f}(\bar{\vec{x}}) := \left(\bar{x}_2 - 5.1 \bar{x}_1^2/(4\pi^2) + 5 \bar{x}_1/\pi - 6\right)^2 + 10 \left(1 - 1/(8\pi)\right) \cos \bar{x}_1 + 10\]

Constructor & Destructor Documentation

◆ BraninObjective()

sgpp::optimization::test_problems::BraninObjective::BraninObjective ( )

Constructor.

Referenced by clone().

◆ ~BraninObjective()

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

Destructor.

Member Function Documentation

◆ clone()

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

Implements sgpp::optimization::ScalarFunction.

References BraninObjective().

◆ evalUndisplaced()

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

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

References M_PI, and analyse_erg::tmp.


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