Class min_de_base (o2scl)¶
-
template<class func_t, class dfunc_t = func_t>
class min_de_base : public o2scl::min_base<func_t, func_t>¶ One-dimensional minimization using derivatives [abstract base].
At the moment there are no minimizers of this type implemented in .
- Idea for Future:
Create a version of o2scl::mmin_conf which implements a minimizer with this interface.
Public Functions
-
inline min_de_base()¶
-
inline virtual ~min_de_base()¶
-
virtual int min(double &x, double &fmin, func_t &func) = 0¶
Calculate the minimum
min
offunc
w.r.t ‘x’.If this is not overloaded, it attempts to bracket the minimum using bracket() and then calls min_bkt() with the newly bracketed minimum.
-
virtual int min_bkt(double &x2, double x1, double x3, double &fmin, func_t &func) = 0¶
Calculate the minimum
min
offunc
with x2 bracketed between x1 and x3.If this is not overloaded, it ignores the bracket and calls min().
-
virtual int min_de(double &x, double &fmin, func_t &func, dfunc_t &df) = 0¶
Calculate the minimum
min
offunc
with derivativedfunc
w.r.t ‘x’.If this is not overloaded, it attempts to bracket the minimum using bracket() and then calls min_bkt_de() with the newly bracketed minimum.
-
inline virtual const char *type()¶
Return string denoting type (“min_de”)