Click or drag to resize
Accord.NET (logo)

LinearConstraint Constructor (IObjectiveFunction, ExpressionFuncBoolean)

Constructs a new linear constraint.

Namespace:  Accord.Math.Optimization
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public LinearConstraint(
	IObjectiveFunction function,
	Expression<Func<bool>> constraint
)
Request Example View Source

Parameters

function
Type: Accord.Math.OptimizationIObjectiveFunction
The objective function to which this constraint refers to.
constraint
Type: System.Linq.ExpressionsExpressionFuncBoolean
A ExpressionTDelegate specifying this constraint in the form of a lambda expression.
See Also