5 #ifndef BPP_PHYL_OPTIMIZATIONTOOLS_H
6 #define BPP_PHYL_OPTIMIZATIONTOOLS_H
49 cerr <<
"Oups... something abnormal happened!" << endl;
51 throw Exception(
"Optimization failed because likelihood function returned NaN.");
131 std::shared_ptr<PhyloLikelihoodInterface> lik,
132 const std::map<std::string, std::string>& params,
133 const std::string& suffix =
"",
134 bool suffixIsOptional =
true,
153 std::shared_ptr<PhyloLikelihoodInterface> lik,
154 const OptimizationOptions& optopt);
168 std::shared_ptr<PhyloLikelihoodInterface> lik,
169 const OptimizationOptions& optopt);
172 std::shared_ptr<SingleProcessPhyloLikelihood> lik,
173 const OptimizationOptions& optopt);
195 unsigned int verbose = 0);
219 const std::string& param,
220 OptimizationOptions& optopt);
Interface for agglomerative distance methods.
A listener which capture NaN function values and throw an exception in case this happens.
void optimizationStepPerformed(const OptimizationEvent &event)
bool listenerModifiesParameters() const
NaNListener(const NaNListener &lr)
OptimizerInterface * optimizer_
FunctionInterface * function_
void optimizationInitializationPerformed(const OptimizationEvent &event)
NaNListener(OptimizerInterface *optimizer, FunctionInterface *function)
NaNListener & operator=(const NaNListener &lr)
virtual std::shared_ptr< const FunctionInterface > getFunction() const=0
virtual void printParameters(OutputStream &out) const
virtual const ParameterList & getParameters() const=0
Defines the basic types of data flow nodes.