Click or drag to resize

LinearConstrainedProblemAddConstraint(ILinearConstraintCoefficients, Double, Double) Method

Adds a linear inequality constraint of the form lowerBound <= coefficients'x < upperBound

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

Parameters

coefficients  ILinearConstraintCoefficients
Constraint coefficients.
lowerBound  Double
The lower bound of the constraint.
upperBound  Double
The upper bound of the constraint.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if the lower bound is greater than the upper bound.
See Also