Adds an inequality constraint of the form lowerBound <= constraintFunction(x) < upperBound

Namespace:  CenterSpace.NMath.Analysis
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public void AddConstraint(
	int xDimension,
	Func<DoubleVector, double> constraintFunction,
	double lowerBound,
	double upperBound
)
Visual Basic (Declaration)
Public Sub AddConstraint ( _
	xDimension As Integer, _
	constraintFunction As Func(Of DoubleVector, Double), _
	lowerBound As Double, _
	upperBound As Double _
)
Visual C++
public:
void AddConstraint(
	int xDimension, 
	Func<DoubleVector^, double>^ constraintFunction, 
	double lowerBound, 
	double upperBound
)

Parameters

xDimension
Type: System..::.Int32
The dimension of the domain of the constraintFunction
constraintFunction
Type: System..::.Func<(Of <(DoubleVector, Double>)>)
Constraint function.
lowerBound
Type: System..::.Double
The lower bound of the constraint.
upperBound
Type: System..::.Double
The upper bound of the constraint.

See Also