![]() |
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. More... | |
| const base::DataMatrix & | getHistoryOfOptimalPoints () const |
| const base::DataVector & | getHistoryOfOptimalValues () const |
| size_t | getN () const |
| const base::DataVector & | getOptimalPoint () const |
| double | getOptimalValue () const |
| VectorFunction & | getPhiFunction () const |
| const base::DataVector & | getStartingPoint () const |
| LeastSquaresOptimizer (const VectorFunction &phi, size_t N=DEFAULT_N) | |
| Constructor. More... | |
| LeastSquaresOptimizer (const LeastSquaresOptimizer &other) | |
| Copy constructor. More... | |
| virtual void | optimize ()=0 |
| Pure virtual method for optimization of the objective function. More... | |
| void | setN (size_t N) |
| void | setStartingPoint (const base::DataVector &startingPoint) |
| virtual | ~LeastSquaresOptimizer () |
| Destructor. More... | |
Static Public Attributes | |
| static const size_t | DEFAULT_N = 1000 |
| default maximal number of iterations or function evaluations More... | |
Protected Attributes | |
| base::DataVector | fHist |
| search history vector (optimal values) More... | |
| double | fOpt |
| result of optimization (optimal function value) More... | |
| size_t | N |
| maximal number of iterations or function evaluations More... | |
| std::unique_ptr< VectorFunction > | phi |
| phi function More... | |
| base::DataVector | x0 |
| starting point More... | |
| base::DataMatrix | xHist |
| search history matrix (optimal points) More... | |
| base::DataVector | xOpt |
| result of optimization (location of optimum) More... | |
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 sgpp::optimization::VectorFunction::clone().
|
inline |
|
inlinevirtual |
Destructor.
References optimize().
|
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 getHistoryOfOptimalValues().
|
inline |
References xHist.
|
inline |
|
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.
Referenced by ~LeastSquaresOptimizer().
|
inline |
| N | maximal number of iterations or function evaluations |
References N.
|
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(), and sgpp::optimization::optimizer::LevenbergMarquardt::optimize().
|
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().