![]() |
IConstraint Interface |
Namespace: Accord.Math.Optimization
The IConstraint type exposes the following members.
Name | Description | |
---|---|---|
![]() | NumberOfVariables |
Gets the number of variables in the constraint.
|
![]() | ShouldBe |
Gets the type of the constraint.
|
![]() | Tolerance |
Gets the violation tolerance for the constraint.
|
![]() | Value |
Gets the value in the right hand
side of the constraint equation.
|
Name | Description | |
---|---|---|
![]() | Function |
Calculates the left hand side of the constraint
equation given a vector x.
|
![]() | Gradient |
Calculates the gradient of the constraint
equation given a vector x
|
Name | Description | |
---|---|---|
![]() | GetViolation |
Gets how much the constraint is being violated.
(Defined by ConstraintExtensions.) |
![]() | IsViolated |
Gets whether this constraint is being violated
(within the current tolerance threshold).
(Defined by ConstraintExtensions.) |