|
NonlinearConstraint Constructor (IObjectiveFunction, ExpressionFuncDouble, Boolean, FuncDouble, Double)
|
Constructs a new nonlinear constraint.
Namespace:
Accord.Math.Optimization
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public NonlinearConstraint(
IObjectiveFunction objective,
Expression<Func<double[], bool>> constraint,
Func<double[], double[]> gradient = null
)
Public Sub New (
objective As IObjectiveFunction,
constraint As Expression(Of Func(Of Double(), Boolean)),
Optional gradient As Func(Of Double(), Double()) = Nothing
)
Request Example
View SourceParameters
- objective
- Type: Accord.Math.OptimizationIObjectiveFunction
The objective function to which this constraint refers. - constraint
- Type: System.Linq.ExpressionsExpressionFuncDouble, Boolean
A boolean lambda expression expressing the constraint. Please
see examples for details. - gradient (Optional)
- Type: SystemFuncDouble, Double
A lambda expression defining the gradient of the constraint.
See Also