SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
sgpp::optimization::IterativeGridGenerator Class Referenceabstract

Abstract base class for iterative grid generation methods. More...

#include <IterativeGridGenerator.hpp>

Inheritance diagram for sgpp::optimization::IterativeGridGenerator:
sgpp::optimization::IterativeGridGeneratorLinearSurplus sgpp::optimization::IterativeGridGeneratorRitterNovak sgpp::optimization::IterativeGridGeneratorSOO sgpp::optimization::IterativeGridGeneratorFuzzyRitterNovak

Public Member Functions

virtual bool generate ()=0
 Pure virtual method for iterative grid generation.
 
const base::DataVectorgetFunctionValues () const
 
base::GridgetGrid () const
 
 IterativeGridGenerator (base::ScalarFunction &f, base::Grid &grid, size_t N)
 Constructor.
 
void printIterativeGridGenerator () const
 Prints grid points and function values.
 
virtual ~IterativeGridGenerator ()
 Destructor.
 

Protected Member Functions

void evalFunction (size_t oldGridSize=0)
 Evaluates the objective function at grid points with indices [oldGridSize, oldGridSize + 1, ..., grid.getSize() - 1] and saves values in functionValues.
 
void undoRefinement (size_t oldGridSize)
 Removes grid points with indices [oldGridSize, oldGridSize + 1, ..., grid.getSize() - 1] from the grid.
 

Protected Attributes

base::ScalarFunctionf
 objective function
 
base::DataVector functionValues
 vector of function values at the grid points
 
base::Gridgrid
 underlying grid
 
size_t N
 maximal number of grid points
 

Detailed Description

Abstract base class for iterative grid generation methods.

Constructor & Destructor Documentation

◆ IterativeGridGenerator()

sgpp::optimization::IterativeGridGenerator::IterativeGridGenerator ( base::ScalarFunction f,
base::Grid grid,
size_t  N 
)

Constructor.

Do not destruct the grid before this object!

Parameters
fobjective function
gridgrid (should be empty)
Nmaximal number of grid points

◆ ~IterativeGridGenerator()

sgpp::optimization::IterativeGridGenerator::~IterativeGridGenerator ( )
virtual

Destructor.

Member Function Documentation

◆ evalFunction()

void sgpp::optimization::IterativeGridGenerator::evalFunction ( size_t  oldGridSize = 0)
protected

◆ generate()

virtual bool sgpp::optimization::IterativeGridGenerator::generate ( )
pure virtual

◆ getFunctionValues()

const base::DataVector & sgpp::optimization::IterativeGridGenerator::getFunctionValues ( ) const
Returns
vector of function values at the grid points

References functionValues.

Referenced by printIterativeGridGenerator().

◆ getGrid()

◆ printIterativeGridGenerator()

◆ undoRefinement()

void sgpp::optimization::IterativeGridGenerator::undoRefinement ( size_t  oldGridSize)
protected

Removes grid points with indices [oldGridSize, oldGridSize + 1, ..., grid.getSize() - 1] from the grid.

Parameters
oldGridSizenumber of grid points after removal

References sgpp::base::Grid::getStorage(), and grid.

Referenced by sgpp::optimization::IterativeGridGeneratorFuzzyRitterNovak::generate(), sgpp::optimization::IterativeGridGeneratorLinearSurplus::generate(), sgpp::optimization::IterativeGridGeneratorRitterNovak::generate(), and sgpp::optimization::IterativeGridGeneratorSOO::generate().

Member Data Documentation

◆ f

◆ functionValues

◆ grid

base::Grid& sgpp::optimization::IterativeGridGenerator::grid
protected

underlying grid

Referenced by python.uq.dists.SGDEdist.SGDEdist::__str__(), python.learner.Learner.Learner::applyData(), python.tools.Matrix::ApplyMatrix(), python.uq.dists.SGDEdist.SGDEdist::cdf(), python.uq.learner.Interpolant.Interpolant::doLearningIteration(), python.learner.Learner.Learner::doLearningIteration(), python.learner.Classifier.Classifier::evalError(), python.uq.learner.Interpolant.Interpolant::evalError(), evalFunction(), sgpp::optimization::IterativeGridGeneratorFuzzyRitterNovak::generate(), sgpp::optimization::IterativeGridGeneratorLinearSurplus::generate(), sgpp::optimization::IterativeGridGeneratorRitterNovak::generate(), sgpp::optimization::IterativeGridGeneratorSOO::generate(), python.tools.Matrix::generateb(), python.controller.CheckpointController.CheckpointController::generateFoldValidationJob(), python.uq.learner.SimulationLearner.SimulationLearner::getCollocationNodes(), getGrid(), python.uq.learner.SimulationLearner.SimulationLearner::getGrid(), python.uq.learner.SimulationLearner.SimulationLearner::getLearner(), sgpp::optimization::IterativeGridGeneratorLinearSurplus::IterativeGridGeneratorLinearSurplus(), python.learner.Learner.Learner::learnData(), python.learner.Learner.Learner::learnDataWithFolding(), python.uq.learner.Regressor.Regressor::learnDataWithFolding(), python.learner.Learner.Learner::learnDataWithTest(), python.uq.learner.Regressor.Regressor::learnDataWithTest(), python.controller.CheckpointController.CheckpointController::loadAll(), python.uq.operations.forcePositivity.operationMakePositive.OperationMakePositive::makePositive(), python.uq.operations.forcePositivity.operationMakePositiveFast.OperationMakePositiveFast::makePositive(), python.uq.dists.SGDEdist.SGDEdist::mean(), python.uq.dists.SGDEdist.SGDEdist::pdf(), python.uq.dists.SGDEdist.SGDEdist::ppf(), python.learner.Classifier.Classifier::refineGrid(), python.learner.Regressor.Regressor::refineGrid(), python.uq.learner.Regressor.Regressor::refineGrid(), python.uq.learner.SimulationLearner.SimulationLearner::refineGrid(), python.controller.CheckpointController.CheckpointController::saveGrid(), python.controller.CheckpointController.CheckpointController::setGrid(), python.learner.Learner.Learner::setGrid(), python.uq.learner.Learner.Learner::setGrid(), python.uq.operations.forcePositivity.localFullGridSearch.LocalFullGrid::split(), python.uq.dists.SGDEdist.SGDEdist::toJson(), undoRefinement(), and python.uq.dists.SGDEdist.SGDEdist::var().

◆ N


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