SG++-Doxygen-Documentation
|
Rastrigin unconstrained test problem. More...
#include <Rastrigin.hpp>
Public Member Functions | |
TestScalarFunction & | getObjectiveFunction () override |
double | getOptimalPointUndisplaced (base::DataVector &x) override |
Rastrigin (size_t d) | |
Constructor. More... | |
~Rastrigin () 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::DataVector & | getDisplacement () 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 | |
RastriginObjective | 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... | |
Rastrigin unconstrained test problem.
|
explicit |
Constructor.
d | dimension of the domain |
|
override |
Destructor.
|
overridevirtual |
Implements sgpp::optimization::test_problems::UnconstrainedTestProblem.
References f.
|
overridevirtual |
[out] | x | minimal point \(\vec{x}_\opt \in [0, 1]^d\) |
Implements sgpp::optimization::test_problems::UnconstrainedTestProblem.
References sgpp::optimization::test_problems::UnconstrainedTestProblem::d, and sgpp::base::DataVector::setAll().
|
protected |
objective function
Referenced by getObjectiveFunction().