![]() |
SG++-Doxygen-Documentation
|
Abstract class for solving non-linear least squares problems. More...
#include <LeastSquaresOptimizer.hpp>
Public Member Functions | |
virtual void | clone (std::unique_ptr< LeastSquaresOptimizer > &clone) const =0 |
Pure virtual method for cloning the optimizer. | |
const base::DataMatrix & | getHistoryOfOptimalPoints () const |
const base::DataVector & | getHistoryOfOptimalValues () const |
size_t | getN () const |
const base::DataVector & | getOptimalPoint () const |
double | getOptimalValue () const |
base::VectorFunction & | getPhiFunction () const |
const base::DataVector & | getStartingPoint () const |
LeastSquaresOptimizer (const base::VectorFunction &phi, size_t N=DEFAULT_N) | |
Constructor. | |
LeastSquaresOptimizer (const LeastSquaresOptimizer &other) | |
Copy constructor. | |
virtual void | optimize ()=0 |
Pure virtual method for optimization of the objective function. | |
void | setN (size_t N) |
void | setPhiFunction (const base::VectorFunction &phi) |
void | setStartingPoint (const base::DataVector &startingPoint) |
virtual | ~LeastSquaresOptimizer () |
Destructor. | |
Static Public Attributes | |
static const size_t | DEFAULT_N = 1000 |
default maximal number of iterations or function evaluations | |
Protected Attributes | |
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 | |
std::unique_ptr< base::VectorFunction > | phi |
phi function | |
base::DataVector | x0 |
starting point | |
base::DataMatrix | xHist |
search history matrix (optimal points) | |
base::DataVector | xOpt |
result of optimization (location of optimum) | |
Abstract class for solving non-linear least squares problems.
|
inlineexplicit |
Constructor.
The starting point is set to \((0.5, \dotsc, 0.5)^{\mathrm{T}}\).
phi | phi function |
N | maximal number of iterations or function evaluations (depending on the implementation) |
References phi.
|
inline |
|
inlinevirtual |
Destructor.
|
pure virtual |
Pure virtual method for cloning the optimizer.
It should generate a pointer to the cloned object and it's used for parallel computations.
[out] | clone | pointer to cloned object |
Implemented in sgpp::optimization::optimizer::LevenbergMarquardt.
Referenced by sgpp::optimization::optimizer::LevenbergMarquardt::LevenbergMarquardt().
|
inline |
References xHist.
|
inline |
References fHist.
|
inline |
References N.
|
inline |
References xOpt.
|
inline |
References fOpt.
|
inline |
References phi.
|
inline |
References x0.
|
pure virtual |
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().
Implemented in sgpp::optimization::optimizer::LevenbergMarquardt.
|
inline |
N | maximal number of iterations or function evaluations |
References N.
|
inline |
phi | phi |
References phi.
|
inline |
startingPoint | starting point |
References x0.
|
static |
default maximal number of iterations or function evaluations
|
protected |
search history vector (optimal values)
Referenced by getHistoryOfOptimalValues(), LeastSquaresOptimizer(), and sgpp::optimization::optimizer::LevenbergMarquardt::optimize().
|
protected |
result of optimization (optimal function value)
Referenced by getOptimalValue(), LeastSquaresOptimizer(), and sgpp::optimization::optimizer::LevenbergMarquardt::optimize().
|
protected |
maximal number of iterations or function evaluations
Referenced by getN(), sgpp::optimization::optimizer::LevenbergMarquardt::optimize(), and setN().
|
protected |
phi function
Referenced by getPhiFunction(), LeastSquaresOptimizer(), sgpp::optimization::optimizer::LevenbergMarquardt::optimize(), and setPhiFunction().
|
protected |
starting point
Referenced by getStartingPoint(), LeastSquaresOptimizer(), sgpp::optimization::optimizer::LevenbergMarquardt::optimize(), and setStartingPoint().
|
protected |
search history matrix (optimal points)
Referenced by getHistoryOfOptimalPoints(), LeastSquaresOptimizer(), and sgpp::optimization::optimizer::LevenbergMarquardt::optimize().
|
protected |
result of optimization (location of optimum)
Referenced by getOptimalPoint(), LeastSquaresOptimizer(), and sgpp::optimization::optimizer::LevenbergMarquardt::optimize().