| LinearConstrainedProblemAddConstraint(ILinearConstraintCoefficients, Double, Double, Double) Method |
Adds a linear inequality constraint of the form
lowerBound <= coefficients'x < upperBound
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public void AddConstraint(
ILinearConstraintCoefficients coefficients,
double lowerBound,
double upperBound,
double tolerance
)
Public Sub AddConstraint (
coefficients As ILinearConstraintCoefficients,
lowerBound As Double,
upperBound As Double,
tolerance As Double
)
public:
void AddConstraint(
ILinearConstraintCoefficients^ coefficients,
double lowerBound,
double upperBound,
double tolerance
)
member AddConstraint :
coefficients : ILinearConstraintCoefficients *
lowerBound : float *
upperBound : float *
tolerance : float -> unit
Parameters
- coefficients ILinearConstraintCoefficients
- Constraint coefficients.
- lowerBound Double
- The lower bound of the constraint.
- upperBound Double
- The upper bound of the constraint.
- tolerance Double
- The tolerance for determining whether or not this
constraint is satisfied at a particular point. For
example the equality constraint
c(x) = 0 will be considered to be satisfied at a point x0
if |c(x0)| < Tolerance, and a inequality constraint
c(x) >= 0 will be considered to be satisfied at a point x0
if c(x0) >= -tolerance_.
Exceptions See Also