SymbolicMath.FindMaximum Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2

Overload List

FindMaximum(Expression<Func<Vector<Double>, Double>>, Vector<Double>)

Computes a maximum of the specified function.
C#
public static OptimizationSolutionReport FindMaximum(
	Expression<Func<Vector<double>, double>> objectiveFunction,
	Vector<double> initialGuess
)

Parameters

objectiveFunction  Expression<Func<Vector<Double>, Double>>
A lambda expression that represents a multivariate function that evaluates the objective function.
initialGuess  Vector<Double>
The starting point for the iteration.

Return Value

OptimizationSolutionReport
A local maximum of objectiveFunction.

Exceptions

ConvergenceException

The algorithm failed to converge and ThrowExceptionOnFailure is set to true.

FindMaximum(Expression<Func<Double, Double, Double, Double, Double, Double, Double, Double, Double>>, Vector<Double>)

Computes a maximum of the specified function.
C#
public static OptimizationSolutionReport FindMaximum(
	Expression<Func<double, double, double, double, double, double, double, double, double>> objectiveFunction,
	Vector<double> initialGuess
)

Parameters

objectiveFunction  Expression<Func<Double, Double, Double, Double, Double, Double, Double, Double, Double>>
A lambda expression that represents a function of eight variables that evaluates the objective function.
initialGuess  Vector<Double>
The starting point for the iteration.

Return Value

OptimizationSolutionReport
A local maximum of objectiveFunction.

Exceptions

ConvergenceException

The algorithm failed to converge and ThrowExceptionOnFailure is set to true.

FindMaximum(Expression<Func<Double, Double, Double, Double, Double, Double, Double, Double>>, Vector<Double>)

Computes a maximum of the specified function.
C#
public static OptimizationSolutionReport FindMaximum(
	Expression<Func<double, double, double, double, double, double, double, double>> objectiveFunction,
	Vector<double> initialGuess
)

Parameters

objectiveFunction  Expression<Func<Double, Double, Double, Double, Double, Double, Double, Double>>
A lambda expression that represents a function of seven variables that evaluates the objective function.
initialGuess  Vector<Double>
The starting point for the iteration.

Return Value

OptimizationSolutionReport
A local maximum of objectiveFunction.

Exceptions

ConvergenceException

The algorithm failed to converge and ThrowExceptionOnFailure is set to true.

FindMaximum(Expression<Func<Double, Double, Double, Double, Double, Double, Double>>, Vector<Double>)

Computes a maximum of the specified function.
C#
public static OptimizationSolutionReport FindMaximum(
	Expression<Func<double, double, double, double, double, double, double>> objectiveFunction,
	Vector<double> initialGuess
)

Parameters

objectiveFunction  Expression<Func<Double, Double, Double, Double, Double, Double, Double>>
A lambda expression that represents a function of six variables that evaluates the objective function.
initialGuess  Vector<Double>
The starting point for the iteration.

Return Value

OptimizationSolutionReport
A local maximum of objectiveFunction.

Exceptions

ConvergenceException

The algorithm failed to converge and ThrowExceptionOnFailure is set to true.

FindMaximum(Expression<Func<Double, Double, Double, Double, Double, Double>>, Vector<Double>)

Computes a maximum of the specified function.
C#
public static OptimizationSolutionReport FindMaximum(
	Expression<Func<double, double, double, double, double, double>> objectiveFunction,
	Vector<double> initialGuess
)

Parameters

objectiveFunction  Expression<Func<Double, Double, Double, Double, Double, Double>>
A lambda expression that represents a function of five variables that evaluates the objective function.
initialGuess  Vector<Double>
The starting point for the iteration.

Return Value

OptimizationSolutionReport
A local maximum of objectiveFunction.

Exceptions

ConvergenceException

The algorithm failed to converge and ThrowExceptionOnFailure is set to true.

FindMaximum(Expression<Func<Double, Double, Double, Double, Double>>, Vector<Double>)

Computes a maximum of the specified function.
C#
public static OptimizationSolutionReport FindMaximum(
	Expression<Func<double, double, double, double, double>> objectiveFunction,
	Vector<double> initialGuess
)

Parameters

objectiveFunction  Expression<Func<Double, Double, Double, Double, Double>>
A lambda expression that represents a function of four variables that evaluates the objective function.
initialGuess  Vector<Double>
The starting point for the iteration.

Return Value

OptimizationSolutionReport
A local maximum of objectiveFunction.

Exceptions

ConvergenceException

The algorithm failed to converge and ThrowExceptionOnFailure is set to true.

FindMaximum(Expression<Func<Double, Double, Double, Double>>, Vector<Double>)

Computes a maximum of the specified function.
C#
public static OptimizationSolutionReport FindMaximum(
	Expression<Func<double, double, double, double>> objectiveFunction,
	Vector<double> initialGuess
)

Parameters

objectiveFunction  Expression<Func<Double, Double, Double, Double>>
A lambda expression that represents a function of three variables that evaluates the objective function.
initialGuess  Vector<Double>
The starting point for the iteration.

Return Value

OptimizationSolutionReport
A local maximum of objectiveFunction.

Exceptions

ConvergenceException

The algorithm failed to converge and ThrowExceptionOnFailure is set to true.

FindMaximum(Expression<Func<Double, Double, Double>>, Vector<Double>)

Computes a maximum of the specified function.
C#
public static OptimizationSolutionReport FindMaximum(
	Expression<Func<double, double, double>> objectiveFunction,
	Vector<double> initialGuess
)

Parameters

objectiveFunction  Expression<Func<Double, Double, Double>>
A lambda expression that represents a function of two variables that evaluates the objective function.
initialGuess  Vector<Double>
The starting point for the iteration.

Return Value

OptimizationSolutionReport
A local maximum of objectiveFunction.

Exceptions

ConvergenceException

The algorithm failed to converge and ThrowExceptionOnFailure is set to true.

FindMaximum(Expression<Func<Double, Double>>, Double)

Computes a maximum of the specified function.
C#
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

ConvergenceException

The algorithm failed to converge and ThrowExceptionOnFailure is set to true.

FindMaximum(Expression<Func<Double, Double>>, Double, Double)

Computes a maximum of the specified function.
C#
public static SolutionReport<double, double> FindMaximum(
	Expression<Func<double, double>> objectiveFunction,
	double lowerBound,
	double upperBound
)

Parameters

objectiveFunction  Expression<Func<Double, Double>>
A delegate that represents a function of one variable that evaluates the objective function.
lowerBound  Double
The lower bound of the interval where a maximum is to be located.
upperBound  Double
The upper bound of the interval where a maximum is to be located.

Return Value

SolutionReport<Double, Double>
A local maximum of objectiveFunction.

Exceptions

ConvergenceException

The algorithm failed to converge and ThrowExceptionOnFailure is set to true.

See Also