Click or drag to resize
Accord.NET (logo)

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

Parameters

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