Click or drag to resize
Accord.NET (logo)

NonlinearConjugateGradient Constructor (Int32, FuncDouble, Double, FuncDouble, Double)

Constructs a new NonlinearConjugateGradient algorithm.

Namespace:  Accord.Math.Optimization
Assembly:  Accord.Math.Noncommercial (in Accord.Math.Noncommercial.dll) Version: 3.8.0
Syntax
public NonlinearConjugateGradient(
	int numberOfVariables,
	Func<double[], double> function,
	Func<double[], double[]> gradient
)
Request Example View Source

Parameters

numberOfVariables
Type: SystemInt32
The number of free parameters in the optimization problem.
function
Type: SystemFuncDouble, Double
The function to be optimized.
gradient
Type: SystemFuncDouble, Double
The gradient of the function.
See Also