SG++
sgpp::optimization::test_problems::GoldsteinPriceObjective Class Reference

Goldstein-Price objective function. More...

#include <GoldsteinPrice.hpp>

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

Goldstein-Price objective function.

Definition:

\[\bar{f}(\bar{\vec{x}}) := (1 + (\bar{x}_1+\bar{x}_2+1)^2 (19 - 14\bar{x}_1 + 3\bar{x}_1^2 - 14\bar{x}_2 + 6\bar{x}_1 \bar{x}_2 + 3\bar{x}_2^2)) \cdot (30 + (2\bar{x}_1 - 3\bar{x}_2)^2 (18 - 32\bar{x}_1 + 12\bar{x}_1^2 + 48\bar{x}_2 - 36\bar{x}_1 \bar{x}_2 + 27\bar{x}_2^2))\]

Constructor & Destructor Documentation

sgpp::optimization::test_problems::GoldsteinPriceObjective::GoldsteinPriceObjective ( )

Constructor.

Referenced by clone().

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

Destructor.

Member Function Documentation

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

Implements sgpp::optimization::ScalarFunction.

References GoldsteinPriceObjective().

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