SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
sgpp::optimization::test_problems::Branin02Objective Class Reference

Branin02 objective function. More...

#include <Branin02.hpp>

Inheritance diagram for sgpp::optimization::test_problems::Branin02Objective:
sgpp::optimization::test_problems::TestScalarFunction sgpp::base::ScalarFunction

Public Member Functions

 Branin02Objective ()
 Constructor.
 
void clone (std::unique_ptr< base::ScalarFunction > &clone) const override
 
double evalUndisplaced (const base::DataVector &x) override
 
 ~Branin02Objective () override
 Destructor.
 
- Public Member Functions inherited from sgpp::optimization::test_problems::TestScalarFunction
double eval (const base::DataVector &x) override
 Evaluate displaced function.
 
const base::DataVectorgetDisplacement () const
 
void setDisplacement (const base::DataVector &displacement)
 
 TestScalarFunction (size_t d)
 Constructor.
 
 ~TestScalarFunction () override
 Destructor.
 
- Public Member Functions inherited from sgpp::base::ScalarFunction
virtual void eval (const DataMatrix &x, DataVector &value)
 Convenience method for calculating \(f(\vec{x})\) for multiple \(\vec{x}\).
 
size_t getNumberOfParameters () const
 
 ScalarFunction (size_t d)
 Constructor.
 
virtual ~ScalarFunction ()
 Destructor.
 

Additional Inherited Members

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

Detailed Description

Branin02 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 \cos \bar{x}_2 + \ln(\bar{x}_1^2 + \bar{x}_2^2 + 1) + 10\]

Constructor & Destructor Documentation

◆ Branin02Objective()

sgpp::optimization::test_problems::Branin02Objective::Branin02Objective ( )

Constructor.

Referenced by clone().

◆ ~Branin02Objective()

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

Destructor.

Member Function Documentation

◆ clone()

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

Implements sgpp::base::ScalarFunction.

References Branin02Objective(), and clone().

Referenced by clone().

◆ evalUndisplaced()

double sgpp::optimization::test_problems::Branin02Objective::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.


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