![]() |
SG++-Doxygen-Documentation
|
Rprop method for unconstrained optimization. More...
#include <Rprop.hpp>
Static Public Attributes | |
static constexpr double | DEFAULT_INITIAL_STEP_SIZE = 0.01 |
default initial step size | |
static constexpr double | DEFAULT_STEP_SIZE_DECREASE_FACTOR = 0.5 |
default step size decrease factor | |
static constexpr double | DEFAULT_STEP_SIZE_INCREASE_FACTOR = 1.2 |
default step size increase factor | |
static constexpr double | DEFAULT_TOLERANCE = 1e-6 |
default tolerance | |
![]() | |
static const size_t | DEFAULT_N = 1000 |
default maximal number of iterations or function evaluations | |
Protected Attributes | |
double | initialAlpha |
initial step size | |
double | rhoAlphaMinus |
step size decrease factor | |
double | rhoAlphaPlus |
step size increase factor | |
double | theta |
tolerance | |
![]() | |
std::unique_ptr< base::ScalarFunction > | f |
objective function | |
std::unique_ptr< base::ScalarFunctionGradient > | fGradient |
objective function gradient | |
std::unique_ptr< base::ScalarFunctionHessian > | fHessian |
objective function Hessian | |
base::DataVector | fHist |
search history vector (optimal values) | |
double | fOpt |
result of optimization (optimal function value) | |
size_t | N |
maximal number of iterations or function evaluations | |
base::DataVector | x0 |
starting point | |
base::DataMatrix | xHist |
search history matrix (optimal points) | |
base::DataVector | xOpt |
result of optimization (location of optimum) | |
Rprop method for unconstrained optimization.
sgpp::optimization::optimizer::Rprop::Rprop | ( | const base::ScalarFunction & | f, |
const base::ScalarFunctionGradient & | fGradient, | ||
size_t | maxItCount = DEFAULT_N , |
||
double | tolerance = DEFAULT_TOLERANCE , |
||
double | initialStepSize = DEFAULT_INITIAL_STEP_SIZE , |
||
double | stepSizeIncreaseFactor = DEFAULT_STEP_SIZE_INCREASE_FACTOR , |
||
double | stepSizeDecreaseFactor = DEFAULT_STEP_SIZE_DECREASE_FACTOR |
||
) |
Constructor.
f | objective function |
fGradient | objective function gradient |
maxItCount | maximal number of function evaluations |
tolerance | tolerance |
initialStepSize | initial step size |
stepSizeIncreaseFactor | step size increase factor |
stepSizeDecreaseFactor | step size decrease factor |
sgpp::optimization::optimizer::Rprop::Rprop | ( | const Rprop & | other | ) |
Copy constructor.
other | optimizer to be copied |
|
override |
Destructor.
|
overridevirtual |
[out] | clone | pointer to cloned object |
Implements sgpp::optimization::optimizer::UnconstrainedOptimizer.
References clone().
Referenced by clone().
double sgpp::optimization::optimizer::Rprop::getInitialStepSize | ( | ) | const |
References initialAlpha.
double sgpp::optimization::optimizer::Rprop::getStepSizeDecreaseFactor | ( | ) | const |
References rhoAlphaMinus.
double sgpp::optimization::optimizer::Rprop::getStepSizeIncreaseFactor | ( | ) | const |
References rhoAlphaPlus.
double sgpp::optimization::optimizer::Rprop::getTolerance | ( | ) | const |
References theta.
|
overridevirtual |
Pure virtual method for optimization of the objective function.
The result of the optimization process can be obtained by member functions, e.g., getOptimalPoint() and getOptimalValue().
Implements sgpp::optimization::optimizer::UnconstrainedOptimizer.
References alpha, sgpp::base::DataVector::append(), sgpp::base::DataMatrix::appendRow(), sgpp::optimization::optimizer::UnconstrainedOptimizer::f, sgpp::optimization::optimizer::UnconstrainedOptimizer::fGradient, sgpp::optimization::optimizer::UnconstrainedOptimizer::fHist, sgpp::optimization::optimizer::UnconstrainedOptimizer::fOpt, sgpp::base::Printer::getInstance(), initialAlpha, sgpp::base::DataVector::l2Norm(), sgpp::optimization::optimizer::UnconstrainedOptimizer::N, sgpp::base::Printer::printStatusBegin(), sgpp::base::Printer::printStatusEnd(), sgpp::base::Printer::printStatusUpdate(), sgpp::base::DataMatrix::resize(), rhoAlphaMinus, rhoAlphaPlus, sgpp::base::DataVector::sub(), theta, sgpp::base::DataVector::toString(), sgpp::optimization::optimizer::UnconstrainedOptimizer::x0, sgpp::optimization::optimizer::UnconstrainedOptimizer::xHist, and sgpp::optimization::optimizer::UnconstrainedOptimizer::xOpt.
void sgpp::optimization::optimizer::Rprop::setInitialStepSize | ( | double | initialStepSize | ) |
initialStepSize | initial step size |
References initialAlpha.
void sgpp::optimization::optimizer::Rprop::setStepSizeDecreaseFactor | ( | double | stepSizeDecreaseFactor | ) |
stepSizeDecreaseFactor | step size decrease factor |
References rhoAlphaMinus.
void sgpp::optimization::optimizer::Rprop::setStepSizeIncreaseFactor | ( | double | stepSizeIncreaseFactor | ) |
stepSizeIncreaseFactor | step size increase factor |
References rhoAlphaPlus.
void sgpp::optimization::optimizer::Rprop::setTolerance | ( | double | tolerance | ) |
tolerance | tolerance |
References theta.
|
staticconstexpr |
default initial step size
|
staticconstexpr |
default step size decrease factor
|
staticconstexpr |
default step size increase factor
|
staticconstexpr |
default tolerance
|
protected |
initial step size
Referenced by getInitialStepSize(), optimize(), and setInitialStepSize().
|
protected |
step size decrease factor
Referenced by getStepSizeDecreaseFactor(), optimize(), and setStepSizeDecreaseFactor().
|
protected |
step size increase factor
Referenced by getStepSizeIncreaseFactor(), optimize(), and setStepSizeIncreaseFactor().
|
protected |
tolerance
Referenced by getTolerance(), optimize(), and setTolerance().