Click or drag to resize

NonlinearProgrammingProblemAddConstraint(DoubleFunctional, Double, Double) Method

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

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public void AddConstraint(
	DoubleFunctional constraintFunction,
	double lowerBound,
	double upperBound
)

Parameters

constraintFunction  DoubleFunctional
Constraint function.
lowerBound  Double
The lower bound of the constraint.
upperBound  Double
The upper bound of the constraint.
Exceptions
ExceptionCondition
InvalidArgumentExceptionThrown if either lowerBound or lowerBound is not real - i.e. NaN of Infinity.
See Also