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

Michalewicz objective function. More...

#include <Michalewicz.hpp>

Inheritance diagram for sgpp::optimization::test_problems::MichalewiczObjective:
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
 
 MichalewiczObjective ()
 Constructor. More...
 
 ~MichalewiczObjective () 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

Michalewicz objective function.

Definition:

\[\bar{f}(\bar{\vec{x}}) := -\sin \bar{x}_1 \sin^{20}\!\left(\bar{x}_1^2/\pi\right) - \sin \bar{x}_2 \sin^{20}\!\left(2\bar{x}_2^2/\pi\right)\]

Constructor & Destructor Documentation

◆ MichalewiczObjective()

sgpp::optimization::test_problems::MichalewiczObjective::MichalewiczObjective ( )

Constructor.

Referenced by clone().

◆ ~MichalewiczObjective()

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

Destructor.

Member Function Documentation

◆ clone()

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

Implements sgpp::optimization::ScalarFunction.

References MichalewiczObjective().

◆ evalUndisplaced()

double sgpp::optimization::test_problems::MichalewiczObjective::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 sgpp::combigrid::pow().


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