  | NonlinearProgrammingProblemAddConstraint(Int32, FuncDoubleVector, Double, Double, Double) Method | 
            Adds an inequality constraint of the form
            lowerBound <= constraintFunction(x) < upperBound
            
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic void AddConstraint(
	int xDimension,
	Func<DoubleVector, double> constraintFunction,
	double lowerBound,
	double upperBound
)
Public Sub AddConstraint ( 
	xDimension As Integer,
	constraintFunction As Func(Of DoubleVector, Double),
	lowerBound As Double,
	upperBound As Double
)
public:
void AddConstraint(
	int xDimension, 
	Func<DoubleVector^, double>^ constraintFunction, 
	double lowerBound, 
	double upperBound
)
member AddConstraint : 
        xDimension : int * 
        constraintFunction : Func<DoubleVector, float> * 
        lowerBound : float * 
        upperBound : float -> unit Parameters
- xDimension  Int32
 - The dimension of the domain of the constraintFunction
 - constraintFunction  FuncDoubleVector, Double
 - Constraint function.
 - lowerBound  Double
 - The lower bound of the constraint.
 - upperBound  Double
 - The upper bound of the constraint.
 
Exceptions
See Also