|
NonlinearObjectiveFunction Constructor (Int32, FuncDouble, Double, FuncDouble, Double)
|
Creates a new objective function specified through a string.
Namespace:
Accord.Math.Optimization
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public NonlinearObjectiveFunction(
int numberOfVariables,
Func<double[], double> function,
Func<double[], double[]> gradient
)
Public Sub New (
numberOfVariables As Integer,
function As Func(Of Double(), Double),
gradient As Func(Of Double(), Double())
)
Request Example
View SourceParameters
- numberOfVariables
- Type: SystemInt32
The number of parameters in the function. - function
- Type: SystemFuncDouble, Double
A lambda expression defining the objective
function. - gradient
- Type: SystemFuncDouble, Double
A lambda expression defining the gradient
of the function.
See Also