12#include "MantidAPI/DllConfig.h"
34 virtual std::string
name()
const = 0;
40 virtual bool iterate(
size_t iteration) = 0;
44 virtual bool minimize(
size_t maxIterations = 1000);
47 virtual std::string
getError()
const {
return m_errorString; }
An interface for function minimizers.
virtual bool iterate(size_t iteration)=0
Do one iteration.
virtual void initialize(API::ICostFunction_sptr function, size_t maxIterations=1000)=0
Initialize minimizer.
virtual std::string getError() const
Get the error string.
std::string m_errorString
Error string.
virtual void finalize()
Finalize minimization, eg store additional outputs.
virtual double costFunctionVal()=0
Get value of cost function.
virtual std::string name() const =0
Get name of minimizer.
Property manager helper class.
std::shared_ptr< IFuncMinimizer > IFuncMinimizer_sptr
std::shared_ptr< ICostFunction > ICostFunction_sptr
define a shared pointer to a cost function
Helper class which provides the Collimation Length for SANS instruments.