AnimaL |
Tutorial |
Documentation |
#include <powell.h>
The constructor performs the minimization.
Definition at line 15 of file powell.h.
Public Types | |
typedef TraitsT | Traits |
Traits. | |
typedef Traits::Real | Real |
Floating point value. | |
typedef Traits::Vector | Vector |
Vector. | |
typedef Traits::Matrix | Matrix |
Matrix. | |
Public Member Functions | |
Constructor | |
template<class Func> | powell (Vector &p, Matrix &xi, unsigned int n, Real ftol, unsigned int *iter, Real *fret, Func(*func), unsigned int ITMAX=200) |
Input consists of an initial starting point p[0..n-1]; an initial matrix xi[0..n-1][o..n-1], whose columns contain the initial set of directions (usually the n unit vectors); and ftol, the fractional tolerance in the function value such that failure to decrease by more than this amount on one iteration signals doneness. | |
template<class Func> | powell (Vector &p, unsigned int n, Real ftol, unsigned int *iter, Real *fret, Func(*func), unsigned int ITMAX=200) |
Same as previous, using identity matrix as an intial set of directions. |
|
Matrix.
Definition at line 24 of file powell.h. Referenced by nr::powell< TraitsT >::powell(). |
|
Floating point value.
|
|
Traits.
|
|
Vector.
|
|
Input consists of an initial starting point p[0..n-1]; an initial matrix xi[0..n-1][o..n-1], whose columns contain the initial set of directions (usually the n unit vectors); and ftol, the fractional tolerance in the function value such that failure to decrease by more than this amount on one iteration signals doneness. On output, p is set to the best point found, xi is the then-current direction set, fret is the returned function value at p, and iter is the number of iterations taken. The routine linmin is used. Template Func must be similar with Real( Vector ) Definition at line 34 of file powell.h. References nr::powell< TraitsT >::Matrix, and nr::SQR(). Referenced by nr::powell< TraitsT >::powell(). |
|
Same as previous, using identity matrix as an intial set of directions.
Definition at line 100 of file powell.h. References nr::powell< TraitsT >::Matrix, and nr::powell< TraitsT >::powell(). |