Click or drag to resize
Accord.NET (logo)

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
)
Request Example View Source

Parameters

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