bpp-core
2.2.0
|
Provide a list of optimizer and corresponding options to be used with the MetaOptimizer class. More...
#include <Bpp/Numeric/Function/MetaOptimizer.h>
Public Member Functions | |
MetaOptimizerInfos () | |
MetaOptimizerInfos (const MetaOptimizerInfos &infos) | |
MetaOptimizerInfos & | operator= (const MetaOptimizerInfos &infos) |
virtual | ~MetaOptimizerInfos () |
MetaOptimizerInfos * | clone () const |
Create a copy of this object and send a pointer to it. More... | |
virtual void | addOptimizer (const std::string &name, Optimizer *optimizer, const std::vector< std::string > ¶ms, unsigned short derivatives=0, const std::string &type=IT_TYPE_STEP) |
Add a new optimizer to the set. More... | |
virtual const std::string & | getName (size_t i) const |
virtual Optimizer * | getOptimizer (size_t i) |
virtual const Optimizer * | getOptimizer (size_t i) const |
virtual std::vector< std::string > & | getParameterNames (size_t i) |
virtual const std::vector< std::string > & | getParameterNames (size_t i) const |
virtual std::string & | getIterationType (size_t i) |
virtual const std::string & | getIterationType (size_t i) const |
virtual bool | requiresFirstOrderDerivatives (size_t i) const |
virtual bool | requiresSecondOrderDerivatives (size_t i) const |
virtual size_t | getNumberOfOptimizers () const |
Static Public Attributes | |
static std::string | IT_TYPE_STEP = "step" |
static std::string | IT_TYPE_FULL = "full" |
Private Attributes | |
std::vector< std::string > | names_ |
std::vector< Optimizer * > | optimizers_ |
std::vector< std::vector< std::string > > | parameterNames_ |
std::vector< unsigned short > | derivatives_ |
std::vector< std::string > | itTypes_ |
Provide a list of optimizer and corresponding options to be used with the MetaOptimizer class.
Definition at line 57 of file MetaOptimizer.h.
|
inline |
Definition at line 72 of file MetaOptimizer.h.
Referenced by clone().
|
inline |
Definition at line 73 of file MetaOptimizer.h.
References optimizers_.
|
inlinevirtual |
Definition at line 96 of file MetaOptimizer.h.
References optimizers_.
|
inlinevirtual |
Add a new optimizer to the set.
name | the name of the optimizer. It is used for display only. |
optimizer | A pointer toward the optimizer to add. The set will own the underlying object, which will be destroyed together with the set. |
params | A list of parameter names to optimize with this optimizer. |
derivatives | 0, 1 or 2: does this parameter use no, first order or second order derivatives? |
type | For each optimization step, shall we perform a full optimization with this optimizer or only one step? |
Definition at line 119 of file MetaOptimizer.h.
References derivatives_, itTypes_, names_, optimizers_, and parameterNames_.
|
inlinevirtual |
Create a copy of this object and send a pointer to it.
Implements bpp::Clonable.
Definition at line 104 of file MetaOptimizer.h.
References MetaOptimizerInfos().
Referenced by bpp::MetaOptimizer::operator=().
|
inlinevirtual |
Definition at line 154 of file MetaOptimizer.h.
References itTypes_.
Referenced by bpp::MetaOptimizer::doStep().
|
inlinevirtual |
Definition at line 158 of file MetaOptimizer.h.
References itTypes_.
|
inlinevirtual |
Definition at line 131 of file MetaOptimizer.h.
References names_.
Referenced by bpp::MetaOptimizer::doStep().
|
inlinevirtual |
Definition at line 172 of file MetaOptimizer.h.
References optimizers_.
Referenced by bpp::MetaOptimizer::doStep(), and bpp::MetaOptimizer::setFunction().
|
inlinevirtual |
Definition at line 136 of file MetaOptimizer.h.
References optimizers_.
Referenced by bpp::MetaOptimizer::doStep(), and bpp::MetaOptimizer::setFunction().
|
inlinevirtual |
Definition at line 140 of file MetaOptimizer.h.
References optimizers_.
|
inlinevirtual |
Definition at line 145 of file MetaOptimizer.h.
References parameterNames_.
|
inlinevirtual |
Definition at line 149 of file MetaOptimizer.h.
References parameterNames_.
|
inline |
Definition at line 84 of file MetaOptimizer.h.
References derivatives_, itTypes_, names_, optimizers_, and parameterNames_.
|
inlinevirtual |
Definition at line 163 of file MetaOptimizer.h.
References derivatives_.
Referenced by bpp::MetaOptimizer::doStep().
|
inlinevirtual |
Definition at line 167 of file MetaOptimizer.h.
References derivatives_.
Referenced by bpp::MetaOptimizer::doStep().
|
private |
Definition at line 68 of file MetaOptimizer.h.
Referenced by addOptimizer(), operator=(), requiresFirstOrderDerivatives(), and requiresSecondOrderDerivatives().
|
static |
Definition at line 62 of file MetaOptimizer.h.
Referenced by bpp::MetaOptimizer::doStep().
|
static |
Definition at line 61 of file MetaOptimizer.h.
Referenced by bpp::MetaOptimizer::doStep().
|
private |
Definition at line 69 of file MetaOptimizer.h.
Referenced by addOptimizer(), getIterationType(), and operator=().
|
private |
Definition at line 65 of file MetaOptimizer.h.
Referenced by addOptimizer(), getName(), and operator=().
|
private |
Definition at line 66 of file MetaOptimizer.h.
Referenced by addOptimizer(), getNumberOfOptimizers(), getOptimizer(), MetaOptimizerInfos(), operator=(), and ~MetaOptimizerInfos().
|
private |
Definition at line 67 of file MetaOptimizer.h.
Referenced by addOptimizer(), getParameterNames(), and operator=().