3 #include <boost/serialization/serialization.hpp>
30 template <
typename IT,
typename OT>
35 friend class boost::serialization::access;
42 template <
typename Archive>
43 void serialize(Archive &ar,
unsigned int const version){
83 virtual function<OT(IT)>
getF()
const {
return f;}
89 virtual void setF(
function<OT(IT)>
f) {this->
f =
f;}
Base abstract class providing basic structure for minimization optimization of a given function.
Definition: Minimizer.h:31
void serialize(Archive &ar, unsigned int const version)
Serialize the minimizer to a stream of bytes.
Definition: Minimizer.h:43
function< OT(IT)> f
The function to be minimized.
Definition: Minimizer.h:53
virtual function< OT(IT)> getF() const
Obtain the function to be minimized.
Definition: Minimizer.h:83
virtual void setF(function< OT(IT)> f)
Set the function to be minimized.
Definition: Minimizer.h:89
virtual IT argmin(IT x)=0
Find the argument which minimizes minimizer's function.
Minimizer(function< OT(IT)> f)
Minimizer default constructor.
Definition: Minimizer.h:63