|
NonlinearConstraint Constructor (Int32, 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(
int numberOfVariables,
Expression<Func<double[], bool>> constraint,
Func<double[], double[]> gradient = null
)
Public Sub New (
numberOfVariables As Integer,
constraint As Expression(Of Func(Of Double(), Boolean)),
Optional gradient As Func(Of Double(), Double()) = Nothing
)
Request Example
View SourceParameters
- numberOfVariables
- Type: SystemInt32
The number of variables in the constraint. - 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