Click or drag to resize
Accord.NET (logo)

IConstraint Interface

Defines an interface for an optimization constraint.

Namespace:  Accord.Math.Optimization
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public interface IConstraint
Request Example View Source

The IConstraint type exposes the following members.

Properties
  NameDescription
Public propertyNumberOfVariables
Gets the number of variables in the constraint.
Public propertyShouldBe
Gets the type of the constraint.
Public propertyTolerance
Gets the violation tolerance for the constraint.
Public propertyValue
Gets the value in the right hand side of the constraint equation.
Top
Methods
  NameDescription
Public methodFunction
Calculates the left hand side of the constraint equation given a vector x.
Public methodGradient
Calculates the gradient of the constraint equation given a vector x
Top
Extension Methods
  NameDescription
Public Extension MethodGetViolation
Gets how much the constraint is being violated.
(Defined by ConstraintExtensions.)
Public Extension MethodIsViolated
Gets whether this constraint is being violated (within the current tolerance threshold).
(Defined by ConstraintExtensions.)
Top
See Also