COOLFluiD
Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
|
#include <FindMinimum.hpp>
Inherited by Brent, Dbrent, and Golden.
Public Member Functions | |
BracketMethod () | |
Default constructor. More... | |
template<class T > | |
void | bracket (const Real a, const Real b, T &func) |
void | setMaxStep (const Real &step) |
Protected Member Functions | |
void | shft2 (Real &a, Real &b, const Real c) |
void | shft3 (Real &a, Real &b, Real &c, const Real d) |
void | mov3 (Real &a, Real &b, Real &c, const Real d, const Real e, const Real f) |
void | swap (Real &a, Real &b) |
Protected Attributes | |
Real | m_maxStep |
Real | ax |
Real | bx |
Real | cx |
Real | fa |
Real | fb |
Real | fc |
BracketMethod: This class is the basis class to find the minimum of a given function. This basis class allows to bracket the minimum and assert that the minimum exists.
Use:
/// class Function /// { /// operator() (const Real& x) { return x*x;} /// }; /// Function func; /// BracketMethod bracket; /// bracket.bracket(a,b,func); ///
Definition at line 41 of file FindMinimum.hpp.
|
inline |
Default constructor.
Definition at line 45 of file FindMinimum.hpp.
|
inline |
Bracket the minimum in a given function, starting with 2 values pointing downwards to the minimum
a | A first value |
b | A second value |
func | The function to bracket |
Definition at line 54 of file FindMinimum.hpp.
|
inlineprotected |
Definition at line 130 of file FindMinimum.hpp.
|
inline |
Sets the maximum step taken to bracket the minimum. This is purely optional
step | the maximum step |
Definition at line 110 of file FindMinimum.hpp.
|
inlineprotected |
Definition at line 119 of file FindMinimum.hpp.
|
inlineprotected |
Definition at line 124 of file FindMinimum.hpp.
|
inlineprotected |
Definition at line 135 of file FindMinimum.hpp.
|
protected |
Definition at line 117 of file FindMinimum.hpp.
|
protected |
Definition at line 117 of file FindMinimum.hpp.
|
protected |
Definition at line 117 of file FindMinimum.hpp.
|
protected |
Definition at line 117 of file FindMinimum.hpp.
|
protected |
Definition at line 117 of file FindMinimum.hpp.
|
protected |
Definition at line 117 of file FindMinimum.hpp.
|
protected |
Definition at line 116 of file FindMinimum.hpp.
Send comments to: COOLFluiD Web Admin |