bpp-phyl3
3.0.0
|
Listener used internally by the optimizeTreeNNI method. More...
#include <Bpp/Phyl/Legacy/OptimizationTools.h>
Public Member Functions | |
NNITopologyListener (std::shared_ptr< NNITopologySearch > ts, const ParameterList ¶meters, double tolerance, std::shared_ptr< OutputStream > messenger, std::shared_ptr< OutputStream > profiler, unsigned int verbose, const std::string &optMethod, unsigned int nStep, bool reparametrization) | |
Build a new NNITopologyListener object. More... | |
NNITopologyListener (const NNITopologyListener &tl) | |
NNITopologyListener & | operator= (const NNITopologyListener &tl) |
NNITopologyListener * | clone () const |
virtual | ~NNITopologyListener () |
void | topologyChangeTested (const TopologyChangeEvent &event) |
Notify a topology change event. More... | |
void | topologyChangeSuccessful (const TopologyChangeEvent &event) |
Tell that a topology change is definitive. More... | |
void | setNumericalOptimizationCounter (unsigned int c) |
virtual void | topologyChangePerformed (const TopologyChangeEvent &event) |
Notify a topology change event. More... | |
Private Attributes | |
std::shared_ptr< NNITopologySearch > | topoSearch_ |
ParameterList | parameters_ |
double | tolerance_ |
std::shared_ptr< OutputStream > | messenger_ |
std::shared_ptr< OutputStream > | profiler_ |
unsigned int | verbose_ |
unsigned int | optimizeCounter_ |
unsigned int | optimizeNumerical_ |
std::string | optMethod_ |
unsigned int | nStep_ |
bool | reparametrization_ |
Listener used internally by the optimizeTreeNNI method.
Definition at line 23 of file OptimizationTools.h.
|
inline |
Build a new NNITopologyListener object.
This listener listens to a NNITopologySearch object, and optimizes numerical parameters every n topological movements. Optimization is performed using the optimizeNumericalParameters method (see there documentation for more details).
ts | The NNITopologySearch object attached to this listener. |
parameters | The list of parameters to optimize. Use tl->getIndependentParameters() in order to estimate all parameters. |
tolerance | Tolerance to use during optimization. |
messenger | Where to output messages. |
profiler | Where to output optimization steps. |
verbose | Verbose level during optimization. |
optMethod | Optimization method to use. |
nStep | The number of optimization steps to perform. |
reparametrization | Tell if parameters should be transformed in order to remove constraints. This can improve optimization, but is a bit slower. |
Definition at line 57 of file OptimizationTools.h.
Referenced by clone().
|
inline |
Definition at line 79 of file OptimizationTools.h.
|
inlinevirtual |
Definition at line 111 of file OptimizationTools.h.
|
inlinevirtual |
Implements bpp::TopologyListener.
Definition at line 109 of file OptimizationTools.h.
References NNITopologyListener().
|
inline |
Definition at line 93 of file OptimizationTools.h.
References messenger_, nStep_, optimizeCounter_, optimizeNumerical_, optMethod_, parameters_, profiler_, reparametrization_, tolerance_, topoSearch_, and verbose_.
|
inline |
Definition at line 116 of file OptimizationTools.h.
References optimizeNumerical_.
|
inlinevirtualinherited |
Notify a topology change event.
This method is to be invoked after one or several NNI are performed. It allows appropriate recomputations.
In most case, this is the same as topologyChangeTested() + topologyChangeSuccessful().
event | The topology change event. |
Definition at line 67 of file TopologySearch.h.
References bpp::TopologyListener::topologyChangeSuccessful(), and bpp::TopologyListener::topologyChangeTested().
|
virtual |
Tell that a topology change is definitive.
This method is called after the topologyChangeTested() method.
event | The topology change event. |
Implements bpp::TopologyListener.
Definition at line 358 of file OptimizationTools.cpp.
References bpp::LegacyOptimizationTools::optimizeNumericalParameters().
|
inlinevirtual |
Notify a topology change event.
event | The topology change event. |
Implements bpp::TopologyListener.
Definition at line 114 of file OptimizationTools.h.
|
private |
Definition at line 30 of file OptimizationTools.h.
Referenced by operator=().
|
private |
Definition at line 36 of file OptimizationTools.h.
Referenced by operator=().
|
private |
Definition at line 33 of file OptimizationTools.h.
Referenced by operator=().
|
private |
Definition at line 34 of file OptimizationTools.h.
Referenced by operator=(), and setNumericalOptimizationCounter().
|
private |
Definition at line 35 of file OptimizationTools.h.
Referenced by operator=().
|
private |
Definition at line 28 of file OptimizationTools.h.
Referenced by operator=().
|
private |
Definition at line 31 of file OptimizationTools.h.
Referenced by operator=().
|
private |
Definition at line 37 of file OptimizationTools.h.
Referenced by operator=().
|
private |
Definition at line 29 of file OptimizationTools.h.
Referenced by operator=().
|
private |
Definition at line 27 of file OptimizationTools.h.
Referenced by operator=().
|
private |
Definition at line 32 of file OptimizationTools.h.
Referenced by operator=().