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(
Expression<Func<double, double>> objectiveFunction,
double initialGuess
)
Public Shared Function FindMaximum (
objectiveFunction As Expression(Of Func(Of Double, Double)),
initialGuess As Double
) As SolutionReport(Of Double, Double)
public:
static SolutionReport<double, double>^ FindMaximum(
Expression<Func<double, double>^>^ objectiveFunction,
double initialGuess
)
static member FindMaximum :
objectiveFunction : Expression<Func<float, float>> *
initialGuess : float -> SolutionReport<float, float>
Parameters
- objectiveFunction
- Type: System.Linq.ExpressionsExpressionFuncDouble, Double
A delegate that represents a function of one variable that evaluates the objective function. - initialGuess
- Type: SystemDouble
An initial guess for the maximum.
Return Value
Type:
SolutionReportDouble,
DoubleA local maximum of
objectiveFunction.
Reference