Computes a maximum of the specified function.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static SolutionReport<double, double> FindMaximum(
this Func<double, double> objectiveFunction,
double initialGuess
)
<ExtensionAttribute>
Public Shared Function FindMaximum (
objectiveFunction As Func(Of Double, Double),
initialGuess As Double
) As SolutionReport(Of Double, Double)
public:
[ExtensionAttribute]
static SolutionReport<double, double>^ FindMaximum(
Func<double, double>^ objectiveFunction,
double initialGuess
)
[<ExtensionAttribute>]
static member FindMaximum :
objectiveFunction : Func<float, float> *
initialGuess : float -> SolutionReport<float, float>
Parameters
- objectiveFunction
- Type: SystemFuncDouble, Double
A delegate that represents a function of one variable that specifies the objective function. - initialGuess
- Type: SystemDouble
An initial guess for the maximum.
Return Value
Type:
SolutionReportDouble,
DoubleA local maximum of
objectiveFunction.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
FuncDouble,
Double. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Reference