#include <Simplex.h>
Inheritance diagram for numerical::Simplex< N, Function, T, Point >:
Public Types | |
typedef Base::function_type | function_type |
The function type. | |
typedef Base::number_type | number_type |
The number type. | |
typedef Base::point_type | point_type |
A point in N dimensions. | |
Public Member Functions | |
Constructors etc. | |
The default constructor, the copy constructor and the assignment operator are not implemented. | |
Simplex (const function_type &function, const number_type tolerance=std::sqrt(std::numeric_limits< number_type >::epsilon()), const number_type offset=std::pow(std::numeric_limits< number_type >::epsilon(), 0.25), const int max_function_calls=10000) | |
Construct from the objective function. | |
virtual | ~Simplex () |
Destructor. | |
Minimization. | |
bool | find_minimum (const point_type &starting_point) |
Find the minimum to within the tolerance. | |
bool | find_minimum (const ads::FixedArray< N+1, point_type > &vertices) |
Find the minimum to within the tolerance. | |
point_type | minimum_point () const |
Return the minimum point. | |
number_type | minimum_value () const |
Return the function value at the minimum point. | |
number_type | diameter () const |
Return the diameter of a hypercube that has the same volume as the simplex. | |
Manipulators. | |
void | set_tolerance (const number_type tolerance) |
Set the tolerance. | |
void | set_offset (const number_type offset) |
Set the offset used in generating the initial simplex. |
N | is the problem dimension. | |
Function | is the functor to minimize. | |
T | is the number type. By default it is Function::result_type; | |
Point | is the point type. By default it is Function::argument_type; |