SG++-Doxygen-Documentation
|
Abstract base class for scalar-valued functions \(f\colon [0, 1]^d \to \mathbb{R}\) (e.g., objective functions in optimization). More...
#include <ScalarFunction.hpp>
Public Member Functions | |
virtual void | clone (std::unique_ptr< ScalarFunction > &clone) const =0 |
Pure virtual method for cloning the function. More... | |
virtual double | eval (const base::DataVector &x)=0 |
Pure virtual method for calculating \(f(\vec{x})\). More... | |
size_t | getNumberOfParameters () const |
ScalarFunction (size_t d) | |
Constructor. More... | |
virtual | ~ScalarFunction () |
Destructor. More... | |
Protected Attributes | |
size_t | d |
dimension of the domain More... | |
Abstract base class for scalar-valued functions \(f\colon [0, 1]^d \to \mathbb{R}\) (e.g., objective functions in optimization).
|
inlineexplicit |
Constructor.
d | dimension of the domain |
|
inlinevirtual |
Destructor.
References eval().
|
pure virtual |
Pure virtual method for cloning the function.
It should generate a pointer to the cloned object and it's used for parallel computations (the eval() method might not be thread-safe).
[out] | clone | pointer to cloned object |
Implemented in sgpp::datadriven::KDEMaximumLikelihoodCrossValidation, sgpp::optimization::ComponentScalarFunction, sgpp::optimization::InterpolantScalarFunction, sgpp::optimization::test_problems::Hartman3Objective, sgpp::optimization::test_problems::Hartman6Objective, sgpp::optimization::test_problems::TremblingParabolaObjective, sgpp::optimization::test_problems::EasomYangObjective, sgpp::optimization::test_problems::EggholderObjective, sgpp::optimization::test_problems::GoldsteinPriceObjective, sgpp::optimization::test_problems::GriewankObjective, sgpp::optimization::WrapperScalarFunction, sgpp::optimization::test_problems::AckleyObjective, sgpp::optimization::test_problems::BraninObjective, sgpp::optimization::test_problems::BubbleWrapObjective, sgpp::optimization::test_problems::IncreasingPowerObjective, sgpp::optimization::test_problems::PermObjective, sgpp::optimization::test_problems::RastriginObjective, sgpp::optimization::test_problems::RosenbrockObjective, sgpp::optimization::test_problems::G03Objective, sgpp::optimization::test_problems::G09Objective, sgpp::optimization::test_problems::BealeObjective, sgpp::optimization::test_problems::HoelderTableObjective, sgpp::optimization::test_problems::MladineoObjective, sgpp::optimization::test_problems::SchwefelObjective, sgpp::optimization::test_problems::SHCBObjective, sgpp::optimization::test_problems::G04Objective, sgpp::optimization::test_problems::G05Objective, sgpp::optimization::test_problems::G08Objective, sgpp::optimization::test_problems::AbsoluteValueObjective, sgpp::optimization::test_problems::MichalewiczObjective, sgpp::optimization::test_problems::SphereObjective, sgpp::optimization::test_problems::FloudasObjective, sgpp::optimization::test_problems::G06Objective, sgpp::optimization::test_problems::G10Objective, sgpp::optimization::test_problems::G11Objective, sgpp::optimization::test_problems::G12Objective, sgpp::optimization::test_problems::G13Objective, sgpp::optimization::test_problems::SimionescuObjective, sgpp::optimization::test_problems::SolandObjective, and sgpp::optimization::test_problems::HimmelblauObjective.
Referenced by sgpp::optimization::IterativeGridGenerator::evalFunction(), getNumberOfParameters(), and sgpp::optimization::optimizer::UnconstrainedOptimizer::UnconstrainedOptimizer().
|
pure virtual |
Pure virtual method for calculating \(f(\vec{x})\).
x | evaluation point \(\vec{x} \in [0, 1]^d\) |
Implemented in sgpp::datadriven::KDEMaximumLikelihoodCrossValidation, sgpp::optimization::ComponentScalarFunction, sgpp::optimization::InterpolantScalarFunction, sgpp::optimization::test_problems::TestScalarFunction, and sgpp::optimization::WrapperScalarFunction.
Referenced by sgpp::datadriven::OperationMakePositiveInterpolateFunction::computeHierarchicalCoefficients(), sgpp::optimization::ComponentScalarFunction::eval(), sgpp::optimization::IterativeGridGenerator::evalFunction(), sgpp::optimization::IterativeGridGeneratorSOO::generate(), sgpp::optimization::optimizer::lineSearchArmijo(), sgpp::optimization::optimizer::DifferentialEvolution::optimize(), and ~ScalarFunction().
|
inline |
Referenced by sgpp::optimization::IterativeGridGenerator::evalFunction(), sgpp::optimization::IterativeGridGeneratorSOO::generate(), sgpp::optimization::IterativeGridGeneratorRitterNovak::generate(), and sgpp::optimization::IterativeGridGeneratorLinearSurplus::IterativeGridGeneratorLinearSurplus().
|
protected |
dimension of the domain
Referenced by sgpp::optimization::WrapperScalarFunction::clone(), sgpp::optimization::test_problems::TestScalarFunction::eval(), sgpp::optimization::InterpolantScalarFunction::eval(), sgpp::optimization::test_problems::SphereObjective::evalUndisplaced(), sgpp::optimization::test_problems::AbsoluteValueObjective::evalUndisplaced(), sgpp::optimization::test_problems::G03Objective::evalUndisplaced(), sgpp::optimization::test_problems::SchwefelObjective::evalUndisplaced(), sgpp::optimization::test_problems::IncreasingPowerObjective::evalUndisplaced(), sgpp::optimization::test_problems::RastriginObjective::evalUndisplaced(), sgpp::optimization::test_problems::BubbleWrapObjective::evalUndisplaced(), sgpp::optimization::test_problems::AckleyObjective::evalUndisplaced(), sgpp::optimization::test_problems::RosenbrockObjective::evalUndisplaced(), sgpp::optimization::test_problems::PermObjective::evalUndisplaced(), sgpp::optimization::test_problems::EasomYangObjective::evalUndisplaced(), sgpp::optimization::test_problems::GriewankObjective::evalUndisplaced(), sgpp::optimization::test_problems::TremblingParabolaObjective::evalUndisplaced(), and getNumberOfParameters().