Click or drag to resize
Accord.NET (logo)

NonlinearConstraintCreate Method

Creates a nonlinear constraint.

Namespace:  Accord.Math.Optimization
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
protected void Create(
	int numberOfVariables,
	Func<double[], double> function,
	ConstraintType shouldBe,
	double value,
	Func<double[], double[]> gradient,
	double tolerance
)
Request Example View Source

Parameters

numberOfVariables
Type: SystemInt32
function
Type: SystemFuncDouble, Double
shouldBe
Type: Accord.Math.OptimizationConstraintType
value
Type: SystemDouble
gradient
Type: SystemFuncDouble, Double
tolerance
Type: SystemDouble
See Also