21 #ifndef mia_core_minimizer_hh 22 #define mia_core_minimizer_hh 51 typedef std::shared_ptr<CMinimizer>
Pointer;
91 double f(
size_t n,
const double *x);
102 void df(
size_t n,
const double *x,
double *g);
111 double fdf(
size_t n,
const double *x,
double *g);
120 double f(
const std::vector<double>& x);
129 void df(
const std::vector<double>& x, std::vector<double>& g);
138 double fdf(
const std::vector<double>& x, std::vector<double>& g);
174 virtual size_t do_size()
const = 0;
189 void set_problem(PProblem x);
204 Problem *get_problem_pointer();
212 virtual void do_set_problem();
the singleton that a plug-in handler really is
TFactory< CMinimizer > CMinimizerPlugin
Base class for the CMinimizer creator plugins.
EMinimizerResult
enum to describe whether optimization succeeded
A wrapper around the c-array to provide an STL like interface for iterators.
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
CMinimizer plugin_type
plug-in searchpath typedef helper
THandlerSingleton< TFactoryPluginHandler< CMinimizerPlugin > > CMinimizerPluginHandler
The minimizer plugin handler.
FACTORY_TRAIT(CMinimizerPluginHandler)
Trait to make the minimizer definition parsable on the command line.
A class for generalized minimization problems.
std::shared_ptr< Problem > PProblem
pointer type for the optimization problem
This is tha base of all plugins that create "things", like filters, cost functions time step operator...
CMinimizer plugin_data
plug-in searchpath typedef helper
std::shared_ptr< CMinimizer > Pointer
Pointer type of this minimizer.
CMinimizer::Pointer PMinimizer
Pointer type for the CMinimizer class.
#define EXPORT_CORE
Macro to manage Visual C++ style dllimport/dllexport.
The base class for all plug-in created object.
static const T & instance()
This class holds a set of properties.
static const char *const type_descr
plug-in searchpath helper
static const char *const data_descr
plug-in searchpath helper
Base class for all optimization problems that can be run by CMinimizer.
#define NS_MIA_END
conveniance define to end the mia namespace
PMinimizer produce_minimizer(const std::string &descr)