Click or drag to resize

NonlinearProgrammingProblemAddUpperBoundConstraint(Int32, FuncDoubleVector, Double, Double) Method

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

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public void AddUpperBoundConstraint(
	int xDimension,
	Func<DoubleVector, double> constraintFunction,
	double upperBound
)

Parameters

xDimension  Int32
The dimension of the domain of the constraintFunction
constraintFunction  FuncDoubleVector, Double
Constraint function.
upperBound  Double
The upper bound.
Exceptions
ExceptionCondition
InvalidArgumentExceptionThrown if upperBound is not real - i.e. NaN of Infinity.
See Also