Click or drag to resize
Accord.NET (logo) LinearConstraint Class
Constraint with only linear terms.
Inheritance Hierarchy
SystemObject
  Accord.Math.OptimizationLinearConstraint

Namespace:  Accord.Math.Optimization
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.4.0
Syntax
public class LinearConstraint
Request Example View Source

The LinearConstraint type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCombinedAs
Gets the scalar coefficients combining the variables specified by the constraints.
Public propertyFunction
Gets the left hand side of the constraint equation.
Public propertyGradient
Gets the gradient of the left hand side of the constraint equation.
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. Equality constraints should set this to a small positive value.
Public propertyValue
Gets the value to be compared to the combined values of the variables.
Public propertyVariablesAtIndices
Gets the index of the variables (in respective to the objective function) of the variables participating in this constraint.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetViolation
Gets how much the constraint is being violated.
Public methodIsViolated
Gets whether this constraint is being violated (within the current tolerance threshold).
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberTryParse(String, IObjectiveFunction, LinearConstraint)
Attempts to create a LinearConstraint from a String representation.
Public methodStatic memberTryParse(String, CultureInfo, IObjectiveFunction, LinearConstraint)
Attempts to create a LinearConstraint from a String representation.
Top
Fields
  NameDescription
Public fieldStatic memberDefaultTolerance
Gets the default constant violation tolerance (1e-12).
Top
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodToTOverloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Public Extension MethodToTOverloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by Matrix.)
Top
See Also