Symbolic Math.Find Maximum(Expression<Func<Double, Double>>, Double) Method
Computes a maximum of the specified function.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A local maximum of objectiveFunction.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static SolutionReport<double, double> FindMaximum(
Expression<Func<double, double>> objectiveFunction,
double initialGuess
)
Parameters
- objectiveFunction Expression<Func<Double, Double>>
- A delegate that represents a function of one variable that evaluates the objective function.
- initialGuess Double
- An initial guess for the maximum.
Return Value
SolutionReport<Double, Double>A local maximum of objectiveFunction.
Exceptions
Convergence | The algorithm failed to converge and ThrowExceptionOnFailure is set to true. |