| Constraint(ConstraintType, Double) Constructor |
Constructs a constraint object with the given constraint type and
tolerance.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public Constraint(
ConstraintType ctype,
double tolerance
)
Public Sub New (
ctype As ConstraintType,
tolerance As Double
)
public:
Constraint(
ConstraintType ctype,
double tolerance
)
new :
ctype : ConstraintType *
tolerance : float -> Constraint
Parameters
- ctype ConstraintType
- The constraint type.
- 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_.
See Also