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

Increasing power unconstrained test problem. More...

#include <IncreasingPower.hpp>

Inheritance diagram for sgpp::optimization::test_problems::IncreasingPower:
sgpp::optimization::test_problems::UnconstrainedTestProblem

Public Member Functions

TestScalarFunctiongetObjectiveFunction () override
 
double getOptimalPointUndisplaced (base::DataVector &x) override
 
 IncreasingPower (size_t d)
 Constructor. More...
 
 ~IncreasingPower () override
 Destructor. More...
 
- Public Member Functions inherited from sgpp::optimization::test_problems::UnconstrainedTestProblem
void generateDisplacement ()
 Generate normally distributed pseudorandom displacement with default standard deviation. More...
 
void generateDisplacement (double stdDev)
 Generate normally distributed pseudorandom displacement. More...
 
const base::DataVectorgetDisplacement () const
 
double getOptimalPoint (base::DataVector &x)
 Returns the minimal point of the displaced function. More...
 
void setDisplacement (const base::DataVector &displacement)
 Sets the displacement vector. More...
 
 UnconstrainedTestProblem (size_t d)
 Constructor. More...
 
virtual ~UnconstrainedTestProblem ()
 Destructor. More...
 

Protected Attributes

IncreasingPowerObjective f
 objective function More...
 
- Protected Attributes inherited from sgpp::optimization::test_problems::UnconstrainedTestProblem
size_t d
 number of parameters More...
 
base::DataVector displacement
 displacement vector More...
 

Additional Inherited Members

- Static Public Attributes inherited from sgpp::optimization::test_problems::UnconstrainedTestProblem
static constexpr double DEFAULT_STANDARD_DEVIATION = 0.01
 default standard deviation for the displacement vector More...
 
- Protected Member Functions inherited from sgpp::optimization::test_problems::UnconstrainedTestProblem
virtual bool isDisplacementFeasible ()
 Checks if the current displacement is ok for the specific objective function. More...
 

Detailed Description

Increasing power unconstrained test problem.

  • Number of parameters: \(d\)
  • Domain: \(\bar{\vec{x}} \in [0, 1]^d\)
  • Optimal point: \(\bar{\vec{x}}_{\text{opt}} = (2^{-t})_{t=1}^d\)
  • Optimal function value: \(\bar{f}(\bar{\vec{x}}_{\text{opt}}) = 0\)

Constructor & Destructor Documentation

◆ IncreasingPower()

sgpp::optimization::test_problems::IncreasingPower::IncreasingPower ( size_t  d)
explicit

Constructor.

Parameters
ddimension of the domain

◆ ~IncreasingPower()

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

Destructor.

Member Function Documentation

◆ getObjectiveFunction()

TestScalarFunction & sgpp::optimization::test_problems::IncreasingPower::getObjectiveFunction ( )
overridevirtual
Returns
objective function of the test problem

Implements sgpp::optimization::test_problems::UnconstrainedTestProblem.

References f.

◆ getOptimalPointUndisplaced()

double sgpp::optimization::test_problems::IncreasingPower::getOptimalPointUndisplaced ( base::DataVector x)
overridevirtual
Parameters
[out]xminimal point \(\vec{x}_\opt \in [0, 1]^d\)
Returns
minimal function value \(f(\vec{x}_\opt)\)

Implements sgpp::optimization::test_problems::UnconstrainedTestProblem.

References sgpp::optimization::test_problems::UnconstrainedTestProblem::d, and sgpp::combigrid::pow().

Member Data Documentation

◆ f

IncreasingPowerObjective sgpp::optimization::test_problems::IncreasingPower::f
protected

objective function

Referenced by getObjectiveFunction().


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