|
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
)
Public Sub New (
function As Expression(Of Func(Of Double)),
Optional gradient As Expression(Of Func(Of Double())) = Nothing
)
Request Example
View SourceParameters
- 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