Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions
minimize_de< func_t, dfunc_t > Class Template Reference

One-dimensional minimization using derivatives [abstract base]. More...

#include <minimize.h>

Inheritance diagram for minimize_de< func_t, dfunc_t >:
minimize< func_t, dfunc_t >

Detailed Description

template<class func_t, class dfunc_t = func_t>
class minimize_de< func_t, dfunc_t >

At the moment there are no minimizers of this type implemented in O2scl .

Idea for Future:
Create a version of gsl_mmin_conf which implements a minimizer with this interface.

Definition at line 314 of file minimize.h.

Public Member Functions

virtual int min (double &x, double &fmin, func_t &func)=0
 Calculate the minimum min of func w.r.t 'x'.
virtual int min_bkt (double &x2, double x1, double x3, double &fmin, func_t &func)=0
 Calculate the minimum min of func with x2 bracketed between x1 and x3.
virtual int min_de (double &x, double &fmin, func_t &func, dfunc_t &df)=0
 Calculate the minimum min of func with derivative dfunc w.r.t 'x'.
virtual const char * type ()
 Return string denoting type ("minimize_de")

Member Function Documentation

template<class func_t , class dfunc_t = func_t>
virtual int minimize_de< func_t, dfunc_t >::min ( double &  x,
double &  fmin,
func_t &  func 
) [pure virtual]

If this is not overloaded, it attempts to bracket the minimum using bracket() and then calls min_bkt() with the newly bracketed minimum.

Implements minimize< func_t, dfunc_t >.

template<class func_t , class dfunc_t = func_t>
virtual int minimize_de< func_t, dfunc_t >::min_bkt ( double &  x2,
double  x1,
double  x3,
double &  fmin,
func_t &  func 
) [pure virtual]

If this is not overloaded, it ignores the bracket and calls min().

Implements minimize< func_t, dfunc_t >.

template<class func_t , class dfunc_t = func_t>
virtual int minimize_de< func_t, dfunc_t >::min_de ( double &  x,
double &  fmin,
func_t &  func,
dfunc_t &  df 
) [pure virtual]

If this is not overloaded, it attempts to bracket the minimum using bracket() and then calls min_bkt_de() with the newly bracketed minimum.

Implements minimize< func_t, dfunc_t >.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.