| DBrentMinimizerMinimize(OneVariableFunction, OneVariableFunction, Double, Double, Double) Method |
Minimizes the given function within the given interval.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public double Minimize(
OneVariableFunction f,
OneVariableFunction df,
double a,
double b,
double c
)
Public Function Minimize (
f As OneVariableFunction,
df As OneVariableFunction,
a As Double,
b As Double,
c As Double
) As Double
public:
virtual double Minimize(
OneVariableFunction^ f,
OneVariableFunction^ df,
double a,
double b,
double c
) sealed
abstract Minimize :
f : OneVariableFunction *
df : OneVariableFunction *
a : float *
b : float *
c : float -> float
override Minimize :
f : OneVariableFunction *
df : OneVariableFunction *
a : float *
b : float *
c : float -> float
Parameters
- f OneVariableFunction
- The function to minimize.
- df OneVariableFunction
- The first derivative of f.
- a Double
- The lower limit.
- b Double
-
A point between a and c such that fb < fa
and fb < fc.
.
- c Double
- The upper limit.
Return Value
Double
The minimum of
function over the interval from
a to
c.
Implements
IOneVariableDMinimizerMinimize(OneVariableFunction, OneVariableFunction, Double, Double, Double)Remarks
Iteration stops when the estimated error is less than the tolerance, the
maximum number of iterations is reached or the algorithm is not making any
progress.
See Also