SymbolicMath.FindMinimum Method

Definition

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

Overload List

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

Computes a minimum of the specified function.
C#
public static OptimizationSolutionReport FindMinimum(
	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 minimum of objectiveFunction.

Exceptions

ConvergenceException

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

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

Computes a minimum of the specified function.
C#
public static OptimizationSolutionReport FindMinimum(
	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 minimum of objectiveFunction.

Exceptions

ConvergenceException

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

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

Computes a minimum of the specified function.
C#
public static OptimizationSolutionReport FindMinimum(
	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 minimum of objectiveFunction.

Exceptions

ConvergenceException

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

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

Computes a minimum of the specified function.
C#
public static OptimizationSolutionReport FindMinimum(
	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 minimum of objectiveFunction.

Exceptions

ConvergenceException

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

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

Computes a minimum of the specified function.
C#
public static OptimizationSolutionReport FindMinimum(
	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 minimum of objectiveFunction.

Exceptions

ConvergenceException

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

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

Computes a minimum of the specified function.
C#
public static OptimizationSolutionReport FindMinimum(
	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 minimum of objectiveFunction.

Exceptions

ConvergenceException

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

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

Computes a minimum of the specified function.
C#
public static OptimizationSolutionReport FindMinimum(
	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 minimum of objectiveFunction.

Exceptions

ConvergenceException

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

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

Computes a minimum of the specified function.
C#
public static OptimizationSolutionReport FindMinimum(
	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 minimum of objectiveFunction.

Exceptions

ConvergenceException

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

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

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

Parameters

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

Return Value

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

Exceptions

ConvergenceException

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

See Also