Click or drag to resize

BoundedVariableProblemAddBounds Method (Int32, Double, Double, Double)

Adds upper and lower bound constraints to a variable.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.4
Syntax
public void AddBounds(
	int variableIndex,
	double lowerBound,
	double upperBound,
	double tolerance
)

Parameters

variableIndex
Type: SystemInt32
>The zero-based index of the variable to which the constraint is applied.
lowerBound
Type: SystemDouble
The value of the lower bound for the variable.
upperBound
Type: SystemDouble
The value of the upper bound for the variable.
tolerance
Type: SystemDouble
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_.
See Also