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

G04Squared constrained test problem. More...

#include <G04Squared.hpp>

Inheritance diagram for sgpp::optimization::test_problems::G04Squared:
sgpp::optimization::test_problems::ConstrainedTestProblem

Public Member Functions

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

Protected Member Functions

bool isDisplacementFeasible () override
 Sets the first, second, and fourth displacement component to zero and checks the resulting displacement.
 

Protected Attributes

G04SquaredObjective f
 objective function
 
G04SquaredInequalityConstraint g
 inequality constraint function
 
G04SquaredEqualityConstraint h
 equality constraint function
 
- Protected Attributes inherited from sgpp::optimization::test_problems::ConstrainedTestProblem
size_t d
 number of parameters
 
base::DataVector displacement
 displacement vector
 

Additional Inherited Members

- Static Public Attributes inherited from sgpp::optimization::test_problems::ConstrainedTestProblem
static constexpr double DEFAULT_STANDARD_DEVIATION = 0.01
 default standard deviation for the displacement vector
 

Detailed Description

G04Squared constrained test problem.

  • Number of parameters: 5
  • Number of inequality constraints: 6
  • Number of equality constraints: 0
  • Domain: \(\bar{\vec{x}} \in [78, 102] \times [33, 45] \times [27, 45]^3\)
  • Optimal point: \(\bar{\vec{x}}_{\text{opt}} = (78, 33, 29.99526, 45, 36.77581)\)
  • Optimal function value: \(\bar{f}(\bar{\vec{x}}_{\text{opt}}) = 43.590738\)

Constructor & Destructor Documentation

◆ G04Squared()

sgpp::optimization::test_problems::G04Squared::G04Squared ( )

Constructor.

◆ ~G04Squared()

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

Destructor.

Member Function Documentation

◆ getEqualityConstraintFunction()

TestVectorFunction & sgpp::optimization::test_problems::G04Squared::getEqualityConstraintFunction ( )
overridevirtual
Returns
equality constraint function of the test problem

Implements sgpp::optimization::test_problems::ConstrainedTestProblem.

References h.

◆ getInequalityConstraintFunction()

TestVectorFunction & sgpp::optimization::test_problems::G04Squared::getInequalityConstraintFunction ( )
overridevirtual
Returns
inequality function of the test problem

Implements sgpp::optimization::test_problems::ConstrainedTestProblem.

References g.

◆ getObjectiveFunction()

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

Implements sgpp::optimization::test_problems::ConstrainedTestProblem.

References f.

◆ getOptimalPointUndisplaced()

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

◆ isDisplacementFeasible()

bool sgpp::optimization::test_problems::G04Squared::isDisplacementFeasible ( )
overrideprotectedvirtual

Sets the first, second, and fourth displacement component to zero and checks the resulting displacement.

Returns
whether the current displacement is feasible

Reimplemented from sgpp::optimization::test_problems::ConstrainedTestProblem.

References sgpp::optimization::test_problems::ConstrainedTestProblem::displacement, and sgpp::optimization::test_problems::ConstrainedTestProblem::isDisplacementFeasible().

Member Data Documentation

◆ f

G04SquaredObjective sgpp::optimization::test_problems::G04Squared::f
protected

◆ g

G04SquaredInequalityConstraint sgpp::optimization::test_problems::G04Squared::g
protected

inequality constraint function

Referenced by getInequalityConstraintFunction().

◆ h

G04SquaredEqualityConstraint sgpp::optimization::test_problems::G04Squared::h
protected

equality constraint function

Referenced by getEqualityConstraintFunction().


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