Click or drag to resize
Accord.NET (logo)

NonlinearObjectiveFunction Constructor (ExpressionFuncDouble, ExpressionFuncDouble)

Creates a new objective function specified through a lambda expression.

Namespace:  Accord.Math.Optimization
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public NonlinearObjectiveFunction(
	Expression<Func<double>> function,
	Expression<Func<double[]>> gradient = null
)
Request Example View Source

Parameters

function
Type: System.Linq.ExpressionsExpressionFuncDouble
A ExpressionTDelegate containing the function in the form of a lambda expression.
gradient (Optional)
Type: System.Linq.ExpressionsExpressionFuncDouble
A ExpressionTDelegate containing the gradient of the function.
See Also