Constructs a constraint object with the given constraint type and tolerance.

Namespace:  CenterSpace.NMath.Analysis
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public Constraint(
	ConstraintType ctype,
	double tolerance
)
Visual Basic (Declaration)
Public Sub New ( _
	ctype As ConstraintType, _
	tolerance As Double _
)
Visual C++
public:
Constraint(
	ConstraintType ctype, 
	double tolerance
)

Parameters

ctype
Type: CenterSpace.NMath.Analysis..::.ConstraintType
The constraint type.
tolerance
Type: System..::.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_.

See Also